forked from jgoerzen/wview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wview-User-Manual.html
executable file
·5198 lines (4625 loc) · 214 KB
/
wview-User-Manual.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>wview User Manual</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Mark Teel">
<meta name="email" content="[email protected]">
<style type="text/css">
a { text-decoration: underline }
a:link { color: #525D76; text-decoration: underline; }
body { background-color: #ffffff; color: #000000; margin-left: .5in; margin-right: .5in;}
h1 { color: #ffffff; background: #525D76; font-family: arial,helvetica,sanserif; font-size: medium; padding-top: 5pt; padding-bottom: 5pt; margin-left: -.3in; margin-right: -.3in;}
h1.section { color: #ffffff; background: #828DA6; font-family: arial,helvetica,sanserif; font-size: medium; padding-top: 0; padding-bottom: 0; }
h2 { color: #ffffff; background: #828DA6; font-family: arial,helvetica,sanserif; font-size: medium; padding-top: 0; padding-bottom: 0; }
</style>
</head>
<body>
<!-- wview Image -->
<div style="text-align: center;">
<a href="http://www.wviewweather.com">
<img src="http://www.wviewweather.com/wview-200x200.png" alt="wview Logo"
border="0">
</a>
</div>
<h1>
<a name="title"><strong> wview User Manual
June 26, 2011</strong></a></h1>
<!-- Table of Contents -->
<h1 class="section">
<a name="contents"><strong> Table of Contents</strong></a>
</h1>
<!-- Table of Contents Entries -->
<ul>
<li>
<a href="#Introduction">Chapter 1: Introduction</a>
<br><br>
<ul>
<li>
<a href="#Introduction-whatis">What is wview?</a>
</li>
<li>
<a href="#Introduction-reqs">System Requirements</a>
</li>
<li>
<a href="#Introduction-get">Where to Get wview</a>
</li>
<li>
<a href="#Introduction-help">Getting Help and Reporting Problems</a>
</li>
</ul>
</li>
<br>
<li>
<a href="#Installation">Chapter 2: Installation</a>
<br><br>
<ul>
<li>
<a href="#Installation-overview">Overview</a>
</li>
<li>
<a href="#Installation-debian">Debian/ubuntu/kubuntu</a>
</li>
<li>
<a href="#Installation-osx">Mac OSX</a>
</li>
<li>
<a href="#Installation-build">Build/Install From Sources</a>
<ul>
<li>
<a href="#Installation-build-prereqs">Prerequisites</a>
</li>
<li>
<a href="#Installation-build-procedure">Procedure</a>
</li>
<li>
<a href="#Installation-build-cross">Building for Non-Native Targets (Cross Compilation)</a>
</li>
<li>
<a href="#Installation-build-troubleshooting">Troubleshooting</a>
</li>
</ul>
</li>
</ul>
</li>
<br>
<li>
<a href="#Configuration">Chapter 3: Configuration</a>
<br><br>
<ul>
<li>
<a href="#Configuration-overview">Overview</a>
</li>
<li>
<a href="#Configuration-cli">Command Line Interface</a>
</li>
<li>
<a href="#Configuration-wviewmgmt">HTML Interface (wviewmgmt)</a>
<ul>
<li>
<a href="#Configuration-wviewmgmt-setup">Getting It to Work</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-login">Logging In</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-status">System Status Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-services">Services Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-station">Station Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-generation">File Generation Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-alarms">Alarms Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-ftp">FTP Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-ssh">SSH Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-cwop">CWOP Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-http">HTTP Services Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-calibrate">Calibration Page</a>
</li>
<li>
<a href="#Configuration-wviewmgmt-sql">SQL Export Page</a>
</li>
</ul>
</li>
</ul>
</li>
<br>
<li>
<a href="#StationConfig">Chapter 4: Station Setup</a>
<br><br>
<ul>
<li>
<a href="#StationConfig-sim">Simulator</a>
</li>
<li>
<a href="#StationConfig-virtual">Virtual</a>
</li>
<li>
<a href="#StationConfig-vpro">Davis Vantage Pro</a>
</li>
<li>
<a href="#StationConfig-wxt510">Vaisala WXT510</a>
</li>
<li>
<a href="#StationConfig-twi">Texas Weather Instruments (TWI)</a>
</li>
<li>
<a href="#StationConfig-wmr918">Oregon Scientific WMR918/928NX/968</a>
</li>
<li>
<a href="#StationConfig-wmrusb">Oregon Scientific WMR88/WMR88A/WMR100/WMR100N/WMR200/WMRS200/RMS300/RMS600</a>
</li>
<li>
<a href="#StationConfig-ws2300">La Crosse WS-2300/2308/2310/2315</a>
</li>
<li>
<a href="#StationConfig-wh1080">Fine Offset WH1080 (and many variants)</a>
</li>
<li>
<a href="#StationConfig-te923">Honeywell TE923W (and many variants)</a>
</li>
</ul>
</li>
<br>
<li>
<a href="#Generation">Chapter 5: File Generation</a>
<br><br>
<ul>
<li>
<a href="#Generation-overview">Overview</a>
</li>
<li>
<a href="#Generation-customize">Customization</a>
</li>
</ul>
</li>
<br>
<li>
<a href="#Export">Chapter 6: Exporting Generated Files</a>
<br><br>
<ul>
<li>
<a href="#Export-ftp">FTP</a>
</li>
<li>
<a href="#Export-ssh">SSH</a>
</li>
</ul>
</li>
<br>
<li>
<a href="#Advanced">Chapter 7: Advanced Topics</a>
<br><br>
<ul>
<li>
<a href="#Advanced-sqlite">Data Stored in SQLite3 (And How
to Use It)</a>
</li>
<li>
<a href="#Advanced-cwop">CWOP - Submitting Your Data to NOAA
and the CWOP System</a>
</li>
<li>
<a href="#Advanced-wunder">Wunderground/Weatherforyou -
Submitting Your Data to Weather Underground and/or Weatherforyou</a>
</li>
<li>
<a href="#Advanced-awekas">AWEKAS - Providing Your Data to
Awekas</a>
</li>
<li>
<a href="#Advanced-sensor">Sensor Calibration</a>
</li>
<li>
<a href="#Advanced-alarms">Alarms</a>
</li>
<li>
<a href="#Advanced-socket">Socket-Based Data Feeds</a>
</li>
<li>
<a href="#Advanced-db">Using a MySQL or PostgreSQL Server
to Store Data</a>
</li>
<li>
<a href="#Advanced-wlk">Existing Weatherlink Archive Files</a>
</li>
<li>
<a href="#Advanced-run">Run Environment Description</a>
</li>
<li>
<a href="#Advanced-gw21e">Ethernet Setup for the GW21E Serial
Server</a>
</li>
<li>
<a href="#Advanced-mss1">Ethernet Setup for the Lantronix
MSS1-T</a>
</li>
<li>
<a href="#Advanced-endian">Endian Conversion Utilities</a>
</li>
</ul>
</li>
<br>
<li>
<a href="#Troubleshooting">Chapter 8: Troubleshooting</a>
<br><br>
<ul>
<li>
<a href="#Troubleshooting-processes">wview Processes</a>
</li>
<li>
<a href="#Troubleshooting-operation">Observing wview Operation</a>
</li>
<li>
<a href="#Troubleshooting-ipc">SYS V IPC (Interprocess Communication)</a>
</li>
<li>
<a href="#Troubleshooting-startup">wview Startup</a>
</li>
<li>
<a href="#Troubleshooting-verbose">Log Verbosity</a>
</li>
<li>
<a href="#Troubleshooting-vpro">Vantage Pro</a>
</li>
<li>
<a href="#Troubleshooting-wxt510">WXT510</a>
</li>
<li>
<a href="#Troubleshooting-raddebug">Using raddebug</a>
</li>
<li>
<a href="#Troubleshooting-foreground">Running In the Foreground</a>
</li>
</ul>
</li>
</ul>
<hr> <!-- to break main chapters from appendices. -->
<ul>
<li>
<a href="#Appendix1">Appendix 1: Distribution Contents</a>
</li>
<li>
<a href="#Appendix2">Appendix 2: Adding New Weather Stations to wview</a>
<br><br>
<ul>
<li>
<a href="#Appendix2-required">Required Functions</a>
</li>
<li>
<a href="#Appendix2-notes">Notes</a>
</li>
</ul>
</li>
</ul>
<hr size="5">
<!-- Chapter 1 -->
<h1>
<a name="Introduction"><strong> Chapter 1: Introduction</strong></a>
</h1>
<!-- Section 1 -->
<!-- Title -->
<h1 class="section">
<a name="Introduction-whatis"><strong> What is wview?</strong></a>
</h1>
<!-- Text -->
<p>
wview is a collection of linux/unix daemons which interface with a supported
weather station to retrieve archive records (if generated by the station) and
current conditions. If the station does not generate archive records internally,
wview will auto-generate archive records based on the sensor readings collected
for that interval. The archive records and High/Low (HILOW) data are stored in
SQLite3 databases. At a configurable interval, wview will utilize the archive
history and current conditions to generate weather images (buckets, dials and
graphs) and HTML web pages based on user-configurable HTML templates. XML, PHP,
Perl, Python, etc. template files can also be defined using wview meta-tags which
will be replaced with current values when generated by wview.
</p>
<p>
Features:<br>
</p>
<ul>
<li>24x7x365 reliability.</li>
<li>Fast image and HTML/XML file generation.</li>
<li>Non-GUI, headless, lightweight (size and resources).</li>
<li>Embeddable - can be deployed on low-power embedded systems such as the Linksys
NSLU2.</li>
<li>Multi-Lingual - HTML/XML templates, labels and text.</li>
<li>US (Imperial) or Metric Units - can be easily configured for metric or US units
of measure.</li>
<li>SQLite Archive Storage - archive data is stored in an SQLite3 relational database.</li>
<li>Remote Upload - web pages and images can be transferred to a remote web server or other
<a href="http://www.webhostingsearch.com/dedicated-server.php">dedicated server</a>
via an ftp or secure ssh process included with wview.</li>
<li>Alarms - the wview alarm daemon wvalarmd can be enabled to deliver current
conditions to TCP socket clients as a near real-time data feed engine. wvalarmd
can also be configured to function as a weather data alarm generator to user
specified scripts or binaries.</li>
<li>CWOP - can be configured to submit data to CWOP.</li>
<li>Wunderground - can be configured to submit data to Wunderground.</li>
<li>Awekas - can be configured to submit data to Awekas.</li>
<li>Weatherforyou - can be configured to submit data to Weatherforyou.</li>
<li>RSS Feeds - processes XML template files and includes a default weather data
RSS feed template.</li>
</ul>
<!-- Section 2 -->
<!-- Title -->
<h1 class="section">
<a name="Introduction-reqs"><strong> System Requirements</strong></a>
</h1>
<!-- Text -->
<p>
wview should work on any system with a unix or unix derivative operating system.
These include: linux, Mac OSX (Darwin), FreeBSD, NetBSD, Solaris. Your platform
should support ethernet and either RS-232 or USB for the station interface.
</p>
<ul>
<li>
<strong>ntp/xntp</strong> - Network Time Protocol - a configured and functional NTP
daemon should be enabled on the host system to keep system and weather
station time accurate and in sync.
</li>
<li>
<strong>apache</strong> - in order to serve your weather site to the world,
an http server is required - other http servers will work too. If you are
going to export your site to another server or to your ISP account site,
then an http server is not required on the wview server.
</li>
<li>
<strong>php5 and php5-sqlite</strong> - optionally needed for browser-based
configuration (requires apache or similar).
</li>
<li>
<strong>Serial/Ethernet/USB port</strong> - an available interface port
is required to connect to the Weather Station.<br><br>
<ul>
<li>Serial</li>
<li>Ethernet - a terminal server or <a href="http://www.business.att.com/enterprise/Family/network-services/ethernet/"><b>ethernet</b></a>
to serial server or WeatherlinkIP datalogger is required -
set up as decribed above for the serial port and configured in transparent
data mode (no control character processing) with no packet delimiter.
wview allows you to specify the hostname and port of your serial server or WeatherlinkIP datalogger.
The <a href="http://www.neteon.net/"><b><font color="#0044ff">Neteon</font></b></a>
GW21E, Lantronix MSS1-T
and Xyplex Maxserver 1600 have been confirmed to work with wview. See
the <a href="#Advanced"><b>Advanced Topics</b></a> section for configuration
notes on the GW21E and the MSS1-T.</li>
<li>USB</li>
</ul>
</li>
</ul>
<!-- Section 3 -->
<!-- Title -->
<h1 class="section">
<a name="Introduction-get"><strong> Where to Get wview</strong></a>
</h1>
<!-- Text -->
<p>
wview and some utility install and upgrade scripts can be obtained from the
<a href="http://sourceforge.net/projects/wview/"><b>
<font color="#0044ff">wview Sourceforge Homepage</font></b></a>.
</p>
<!-- Section 4 -->
<!-- Title -->
<h1 class="section">
<a name="Introduction-help"><strong> Getting Help and Reporting Problems</strong></a>
</h1>
<!-- Text -->
<p>
The wview user's group is hosted on Google Groups:
<a href="http://groups.google.com/group/wview"><b>
<font color="#0044ff">wview User's Group</font></b></a><br>
There you will find a mailing list archive and helpful pages including
<a href="http://groups.google.com/group/wview/web/frequently-asked-questions">
<b><font color="#0044ff">Frequently Asked Questions (FAQ)</font></b></a>.
You may join the group or just search the archives or pages. The mailing
list can be used to request help if you cannot find answers in the list
archive or group pages.<br><br>
To report problems or vote on enhancements you can use the
<a href="http://www.wviewweather.com/mantis/login_page.php">
<b><font color="#0044ff">wview Mantis Database</font></b></a>.
<br><br>
</p>
<!-- Chapter 2 -->
<h1>
<a name="Installation"><strong> Chapter 2: Installation</strong></a>
</h1>
<!-- Section 1 -->
<!-- Title -->
<h1 class="section">
<a name="Installation-overview"><strong> Overview</strong></a>
</h1>
<!-- Text -->
<p>
To use wview, you must:
<ul>
<li>Obtain a binary package for your operating system, or</li>
<li>Obtain the source and build wview for your operating system.</li>
</ul>
Currently the binary distributions available are:<br>
<ul>
<li>MacPorts for OSX</li>
<li>RedHat/Fedora repositories</li>
<li>Debian Packages (radlib and wview) via the wviewweather.com repository</li>
</ul>
If your platform is not one of these or you want to install from source,
you will need to know where to get the latest version of wview and how
to install it.<br><br>
This chapter shows you how to obtain source and binary packages and how to
build wview from source should you choose to do so.<br><br>
The following are the general steps you would use:<br>
<ol>
<li>Download the relevant package for your needs, e.g. source or binary
distribution.</li>
<li>Build the source into a binary, if you have downloaded the source.
This may involve building and/or installing other necessary packages.</li>
<li>Install the binaries into their final destinations.</li>
</ol><br>
<p>
<b>Run Environment:</b><br>
There are several configuration variables which affect the location of the
wview run environment. "--prefix=xxx" (defaults to /usr/local for source
builds) is the top-level root for wview install. If "--sysconfdir=xxx" is
given to the configure script, it will override the $prefix value for
location of the configuration files. If "--localstatedir=xxx" is given, it
will override the $prefix value for location of the data files for wview.<br>
Most source installs will want to use the default prefix "/usr/local" (by
not specifying any location parameters to configure).<br><br>
There are two file system installation locations of importance for wview.
The configuration "tree" is found at: $prefix/etc/wview and the data "tree"
is located at: $prefix/var/wview. The configuration tree includes the
SQLite3 configuration database, file generation configuration including
templates and several file to support SQL export activities. The data tree
contains the generated web site (img), all archived weather data (archive)
and NOAA files.<br>
Each installation section below will indicate the default locations for
these trees.
</p>
<!-- Section 2 -->
<!-- Title -->
<h1 class="section">
<a name="Installation-debian"><strong> Debian/ubuntu/kubuntu</strong></a>
</h1>
<!-- Text -->
<p>
The Debian Advanced Packaging Tool (APT) is the most comprehensive and
mature unix package management system in existence. APT is the compelling
reason many linux users (such as me) use Debian or a Debian derivative for
their linux distribution of choice.<br>
radlib and wview are now available in the wviewweather.com APT repository.<br>
You may also install radlib and wview from source.<br>
</p>
<h2>
<a name="Installation-deb-apt"><strong> APT Installation</strong></a>
</h2>
<p>
The easiest method to install wview on a debian or ubuntu/kubuntu
server is to use the debian packages provided by the wviewweather.com
APT repository:
<ol>
<li>Architectures supported: i386, amd64, armel, powerpc</li>
<li>Add the wviewweather.com repository to your /etc/apt/sources.list:<br>
Edit /etc/apt/sources.list and add the following lines to the bottom of
the file:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
<b>For debian lenny:</b><br>
deb http://www.wviewweather.com/apt/lenny lenny main<br>
deb-src http://www.wviewweather.com/apt/lenny lenny main<br>
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free<br><br>
<b>For debian squeeze:</b><br>
deb http://www.wviewweather.com/apt/squeeze squeeze main<br>
deb-src http://www.wviewweather.com/apt/squeeze squeeze main<br>
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free<br><br>
<b>For ubuntu/kubuntu jaunty:</b><br>
deb http://www.wviewweather.com/apt/jaunty jaunty main<br>
deb-src http://www.wviewweather.com/apt/jaunty jaunty main<br><br>
<b>For ubuntu/kubuntu karmic:</b><br>
deb http://www.wviewweather.com/apt/karmic karmic main<br>
deb-src http://www.wviewweather.com/apt/karmic karmic main<br><br>
<b>For ubuntu/kubuntu lucid:</b><br>
deb http://www.wviewweather.com/apt/lucid lucid main<br>
deb-src http://www.wviewweather.com/apt/lucid lucid main<br><br>
<b>For ubuntu/kubuntu maverick:</b><br>
deb http://www.wviewweather.com/apt/maverick maverick main<br>
deb-src http://www.wviewweather.com/apt/maverick maverick main<br><br>
<b>For ubuntu/kubuntu natty:</b><br>
deb http://www.wviewweather.com/apt/natty natty main<br>
deb-src http://www.wviewweather.com/apt/natty natty main
</td>
</tr>
</table>
<!-- Shell Box End -->
</li>
<li>Note: important messages are output as part of the wview package install
which might be hidden when using a GUI tool for APT such as synaptic.
The command line tool apt-get allows you to see all installation messages.<br>
Use your favorite APT tool, such as apt-get, aptitude, synaptic, adept,
etc. to upgrade your package list and install wview:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
<b>apt-get method:</b><br>
#> sudo apt-get update<br>
#> apt-cache search wview<br>
(wview should be listed now)<br><br>
#> sudo apt-get install wview<br>
(this will install radlib and any other missing prerequisites)<br>
(when done, wview will be fully installed, configured and running
as the station simulator)<br>
(you can stop it any time using "sudo /etc/init.d/wview stop")
</td>
</tr>
</table>
<!-- Shell Box End -->
</li>
<li>wview will be running the simulator once installation is complete. When
you are ready to "go live" with your station, use the "wviewcleardata"
utility to purge all simulated data:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo wviewcleardata<br>
(this will purge all archive records, delete the HILOW, history and NOAA databases)<br>
(leaving a clean weather data environment for your station)
</td>
</tr>
</table>
<!-- Shell Box End -->
<b>WARNING - take care using this utility, it does not backup data so you should
do that yourself prior to running it if there is any possibility you want
to recover/keep the old weather data!</b>
</li>
</ol>
That's it! It could not be easier and all tasks included in the source script
described below have been done for you. It has the added benefit of extremely
easy upgrades (the debian APT way). This is the recommended installation
method.<br><br>
<!-- Info Box Begin -->
<table border="1" bgcolor="#e8a8a8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
<b>wview Run Environment:</b><br>
Configuration: /etc/wview<br>
Data: /var/lib/wview<br>
wviewmgmt: /var/lib/wviewmgmt linked at /var/www/wviewmgmt<br>
Weather web site: /var/lib/wview/img linked at /var/www/weather
</td>
</tr>
</table>
<!-- Info Box End --><br><br>
<b>Upgrading an APT Install</b><br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo apt-get update (this updates the package list)<br>
#> sudo apt-get -u upgrade (this upgrades any out of date packages,
including wview or radlib)<br>
(if you are asked if you want to replace certain "config" files,
it is safe to say "Y")
</td>
</tr>
</table>
<!-- Shell Box End --><br><br>
<b>Converting a Source Install (tarball) to an APT Install</b><br><br>
The debian packages install to different locations than the old default
/usr/local prefix. Avoid running "make uninstall" with the old distro
until you have secured your data. Make backups of your config and data
trees to somewhere safe - like your home directory.<br>
For example:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo mkdir -p ~/wview-save<br>
#> sudo mkdir -p ~/wview-save/etc<br>
#> sudo mkdir -p ~/wview-save/var<br>
#> sudo /etc/init.d/wview stop<br>
#> sudo rm -rf /usr/local/var/wview/archive/wview-history.sdb<br>
#> sudo rm -rf /etc/init.d/wview<br>
#> sudo cp -rf /usr/local/etc/wview ~/wview-save/etc<br>
#> sudo cp -rf /usr/local/var/wview ~/wview-save/var<br>
#> sudo rm -f /var/www/weather (this should be a symbolic link)<br>
#> sudo rm -rf /var/www/wviewmgmt (this should be a symbolic link)<br>
#> cd [radlib_old_source_location] (the old distro source directory, typically /usr/local/src/radlib-X.Y.Z)<br>
#> sudo make uninstall<br>
#> cd [wview_old_source_location] (the old distro source directory, typically /usr/local/src/wview-X.Y.Z)<br>
#> sudo make uninstall<br>
#> sudo apt-get install wview<br>
(if it asks about replacing /etc/init.d/wview, say "Y")<br>
(at this point the simulator will be configured and running)<br>
#> sudo /etc/init.d/wview stop<br>
#> sudo cp -f ~/wview-save/var/wview/archive/*.* /var/lib/wview/archive<br>
#> sudo cp -rf ~/wview-save/etc/wview/* /etc/wview<br>
#> sudo wviewconfig<br>
(or use wviewmgmt to update the generation and html paths)<br>
HTMLGEN_IMAGE_PATH - /var/lib/wview/img<br>
HTMLGEN_HTML_PATH - /etc/wview/html<br>
(You may need to update Alarm or FTP or SSH paths as well)<br>
#> sudo /etc/init.d/wview start<br>
</td>
</tr>
</table>
<!-- Shell Box End --><br>
That should do it. Just don't use uninstall without securing your config
and database files first.<br><br>
<b>Removing or Purging APT Installs</b><br><br>
You can remove the wview installation *without* removing your data and
configuration files:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo apt-get remove wview
</td>
</tr>
</table>
<!-- Shell Box End --><br>
You can also purge everything including generated data and configuration:<br><br>
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo apt-get --purge remove wview
</td>
</tr>
</table>
<!-- Shell Box End --><br>
<p>
Just be aware that "purge" removes everything. It will prompt you first
to make sure that is what you want to do. It is pretty idiot-proof.<br>
</p>
<br>
<!-- Title -->
<h2>
<a name="Installation-deb-source"><strong> Source Installation</strong></a>
</h2>
<p>
The wview distribution includes a Debian install script and an upgrade
script which greatly simplify installing and keeping wview up to date
the old-fashioned way: from source. The latest versions of these scripts
can always be downloaded from Sourceforge:<br><br>
<b>
<a href="http://sourceforge.net/projects/wview/files/wview/wview-install-debian/download">
<font color="#0044ff">wview-install-debian</font></a><br>
<a href="http://sourceforge.net/projects/wview/files/wview/wview-update/download">
<font color="#0044ff">wview-update</font></a>
</b><br><br>
There is no need to download or build wview or its prerequisites directly
as the install script will take care of all that for you.<br>
The wview-update script can be used for any unix system with tar, wget and
a reasonable build environment installed.<br><br>
To use the wview-install-debian script:
<ol>
<li>Download <b><a href="http://sourceforge.net/projects/wview/files/wview/wview-install-debian/download">
<font color="#0044ff">wview-install-debian</font></a></b><br><br></li>
<li>Make the script executable:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> chmod +x wview-install-debian
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Execute the script with root permissions:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo ./wview-install-debian
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
</ol>
<p>
There will be a few choices to make along the way. Answer "yes" to any
package management questions.<br>
The script will invoke wviewconfig and wviewhtmlconfig to do initial
configuration for your station, environment and desired features. These
will also require input in order to proceed.<br><br>
</p>
<!-- Info Box Begin -->
<table border="1" bgcolor="#e8a8a8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
<b>wview Run Environment:</b><br>
Configuration: /usr/local/etc/wview<br>
Data: /usr/local/var/wview<br>
wviewmgmt: /usr/local/var/wviewmgmt linked at /var/www/wviewmgmt<br>
Weather web site: /usr/local/var/wview/img linked at /var/www/weather
</td>
</tr>
</table>
<!-- Info Box End -->
<p>
To update wview installations of version 5.4.0 or later:
</p>
<ol>
<li>Download <b><a href="http://sourceforge.net/projects/wview/files/wview/wview-update/download">
<font color="#0044ff">wview-update</font></a></b><br><br></li>
<li>Make the script executable:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> chmod +x wview-update
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Stop wview:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo /etc/init.d/wview stop
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Execute the script with root permissions:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo ./wview-update
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Start wview:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo /etc/init.d/wview start
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
</ol>
<!-- Section 3 -->
<!-- Title -->
<h1 class="section">
<a name="Installation-osx"><strong> Mac OSX</strong></a>
</h1>
<!-- Text -->
<p>
The MacPorts package management system for Mac OSX (Darwin) includes source
packages for radlib and wview. This greatly simplifies installing wview and
keeping it up to date.<br><br>
Note: For a step-by-step procedure to install wview and all prerequisites
(including configuration of apache2 and PHP) please see the excellent
tutorial:<br>
<a href="http://www.clarkwx.net/MacPorts/wviewInstallationAdvanced.html">
<b><font color="#0044ff">Mac OS X (10.6.x) Installation Instructions (Advanced)</font></b></a><br><br>
To install wview:
<ol>
<li>Install XCode for your OSX version:
<a href="https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20505">
<b><font color="#0044ff">Download XCode</font></b></a><br><br></li>
<li>Install MacPorts:
<a href="http://distfiles.macports.org/MacPorts/">
<b><font color="#0044ff">Download MacPorts</font></b></a><br><br></li>
<li>Update the ports list:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo port -d selfupdate
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Update your ports:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo port upgrade outdated
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Install wview (and all prerequisites):
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo port install wview
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
</ol>
<p>
This will install all prerequisites and wview.<br><br>
</p>
<!-- Info Box Begin -->
<table border="1" bgcolor="#e8a8a8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
<b>wview Run Environment:</b><br>
Configuration: /opt/local/etc/wview<br>
Data: /opt/local/var/wview<br>
wviewmgmt: /opt/local/var/wviewmgmt<br>
Weather web site: /opt/local/var/wview/img
</td>
</tr>
</table>
<!-- Info Box End --><br>
<p>
To update OSX wview installations:
</p>
<ol>
<li>Stop wview:
<!-- Shell Box Begin -->
<table border="1" bgcolor="#d8d8d8" width="65%" cellspacing="0" cellpadding="2">
<tr>
<td>
#> sudo /sbin/SystemStarter stop "wview"
</td>
</tr>
</table>
<!-- Shell Box End --><br>
</li>
<li>Update the ports list:
<!-- Shell Box Begin -->