User Tools

Site Tools


en:uploadcw

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:uploadcw [2015/05/23 15:25]
wvdkuil [consoleWD - file upload settings]
en:uploadcw [2015/07/13 09:29]
wvdkuil [Copy files into consolewdfiles folder]
Line 1: Line 1:
 +====== Install the Leuven-Template step 5 of 7 ======
 +<WRAP tabs>
 +  * [[how_to_install|1]]
 +  * [[folder_contents|2]]
 +  * [[test_program|3]]
 +  * [[settings|4]]
 +  * [[upload|Configure the upload of weather-data]]
 +  * [[menu|6]]
 +  * [[how_to_install7|7]]
 +</​WRAP>​
 +===== Setup consoleWD =====
 +==== More information ====
 +The WeatherDisplay [[http://​www.weather-display.com/​index.php|website]].\\ ​
 +There is not much information available about consoleWD and even less for the rapsberryPI version.
  
 +Most of the info is at the  [[http://​www.weather-watch.com/​smf/​index.php/​board,​33.0.html|WeatherDisplay forum / FAQ]]
 +
 +==== Assumptions ====
 +The following assumptions are made for all text / examples on this page about locations of data:
 +
 +  * Default upload folder on your webserver:​\\ **%% www.your-web-site.com/​weather27/​uploadCW/​ %%**
 +
 +  * Your consolewdfiles folder on your raspberryPI is /​homes/​pi/​consolewdfiles/​
 +
 +===== consoleWD - Which files are needed =====
 +
 +^file to be used for^consoleWD file name^where to get that file^template file name^upload frequency ​  ^
 +|**Weather-data values for all pages of the template**| wxlocal.html |scriptsCW/ ​  ​|tagsCW.txt ​ |5 minutes|
 +|**Realtime weather-data values **  |WD-Live ​ |built into consoleWD\\ no customization needed |clientraw.txt ​ |set by CW  |
 +|:::   ​|WD-Live extra  |:::   ​|clientrawextra.txt ​ |:::   |
 +|:::   ​|WD-Live hour  |:::   ​|clientrawhour.txt ​ |:::   |
 +|:::   ​|WD-Live daily  |:::   ​|clientrawdaily.txt ​ |:::   |
 +
 +There are no graphs created by ConsoleWD.
 +
 +==== Copy files into consolewdfiles folder ​ ====
 +In the weather27/​scriptsCW/​ folder ​ there should be 
 +
 +  * wxlocal.html ​  (= which will be read by consoleWD which will thencreate the file tagsCW.txt )
 +
 +The files should be **copied** to the consolewdfiles folder so consoleWD can use them.
 +==== Restart consoleWD ​ ====
 +If the program is processing the file **wx.html** correctly you will see **tagsCW.txt** appearing in the consolewdfiles folder on the RaspberryPI.
 +==== consoleWD -  file upload settings ​ ====
 +All changes are done in the config.txt in the consolewdfiles folder on your raspberryPI.
 +
 +
 +===  WD-Live ​ / realtime data ===
 +For WeatherDisplay-Live files such as **clientraw.txt** set:
 +<​code>​Do clientraw FTP=Y</​code>​
 +You have to set this setting, even if you do not plan to use WD-Live. The files are needed to get realtime values AND to generate the graphs for the Steelseries pop-ups.
 +
 +=== For all FTP ===
 +These are the FTP settings which should always be set:
 +<​code>​FTP server=your_serve_name
 +FTP username=your_user_name
 +FTP password=your_password
 +FTP port=21
 +FTP remote dir=/​weather27/​uploadCW/ ​                               ​
 +FTP remote dir wx.html=/​weather27/​uploadCW/​
 +FTP use passive=Y
 +FTP use remote file rename=
 +FTP time interval=180</​code>​
 +
 +Check your FTP settings. Sometimes one has to add extra info like /httpdos/ or /​public_html/​ before the root of your website specification. So these lines could also be:
 +<​code>​FTP remote dir=/​public_html/​weather27/​uploadCW/​
 +FTP remote dir wx.html=/​public_html/​weather27/​uploadCW/​
 +or
 +FTP remote dir=/​httpdocs/​weather27/​uploadCW/​
 +FTP remote dir wx.html=/​httpdocs/​weather27/​uploadCW/</​code>​
 +
 +Try to reach the website first with an FTP program to be sure.
 + 
 +=== tagsCW.txt ===
 +<​code>​Create custom file=Y
 +Use this filename instead of wx.html=tagsCW.txt
 +Use this filename instead of wx2.html=
 +Use this filename instead of wx3.html=
 +Use this filename instead of wx4.html=
 +Use this filename instead of wx5.html=
 +FTP the custom file=Y
 +Units for custom tag file output:
 +Temp in celsius=Y
 +Wind in=kts
 +Baro in metric=Y
 +Rain in metric=Y
 +</​code>​
 +=== Remove unnecessary uom parts ===
 +To remove &deg; and other units in the output specify:
 +<​code>​
 +include units tags=N
 +</​code>​
 +
 +==== Check all uploads ​ ====
 +Time to check if everything works OK. The weather27/​uploadCW folder should contain <wrap hi>​recent copies</​wrap>​ of:
 +
 +  * tagsCW.txt
 +  *cientraw??​.txt (4 files)
 +
 +==== consoleWD - Copy of a working config.txt ​ ====
 +<code - config.txt>​Weather station type=31 // WMII=33,​Irox=59,​WMR100=232,​WMR200=233,​WMR968=8,​WMR918=3,​Davis VP=31,Davis WMMII=4, WH1081=166,​2310=60,​WXT510=190,​3600=61,​Davis IP=32, OWWfile=71
 +OWW file location=
 +Davis VP IP port=22222 ​                      // Port        for Davis VP IP data logger
 +Davis VP IP address=192.168.2.3 ​          // IP address ​  " ​  " ​   " ​ " ​  " ​    "​
 +Release VP IP=           // set to Y to release IP data logger every minute to allow davis web site to be updated
 +latitude=50.895 ​         // latitude, e.g -38.375 for southern hemisphere
 +longitude=-4.697 ​        // e.g -175.456 for east of UTC/London
 +Station name=consolewd
 +Start up daily rain(mm)=0.0
 +Start up monthly rain(mm)=0.0
 +Do custom clientraw=Y
 +Customclientraw update rate=1
 +Do wunderground=N //For updating wunderground.com (set to Y for yes, N for no) (every 5 minutes)
 +Wunderground username=
 +Wunderground password=
 +Wunderground timezone=-5 ​   // e.g 12 for 12 hours ahead of GMT, -12 for - 12 hours
 +timezone= (to change the local PC hour used)
 +Direction offset (whole degrees)=0
 +Barometer offset(hpa)=0
 +Comport number (e.g 1)=U //For non USB stations (e.g Davis, OS WMR968), use U for ttyUSB0 (i.e usb to serial)
 +Davis com method=2 ​  // 1 for regular ​ 2 for special davis serial read
 +Revb Davis VP=Y (Y for Yes (new model (default) ) N for No)
 +Davis rain gauge=3 (1 for 0.1 inch, 2 for 0.01 inch, 3 for 0.2mm)
 +Do mysql=N //for mysql updates (see the readme for the table structure), every 5 minutes
 +Mysql username=
 +Mysql password=
 +Mysql server=
 +Mysql databasename=
 +Mysql tablename=
 +Mysql metric=Y (set N for oF, inches of rain, inches for baro)
 +Mysql time=300 ​   (time interval between mysql update in seconds from 60 to 10000 sec)
 +Do CWOP updates=N
 +CWOP station id=
 +CWOP ham call sign=-1
 +CWOP Latitude=
 +CWOP Longitude=
 +Do clientraw FTP=Y
 +FTP server=188.121.47.1
 +FTP username=leuven3698
 +FTP password=xxxxxxxxxxxxxxx
 +FTP port=21
 +FTP remote dir=/​weather27/​uploadCW/ ​                               ​
 +FTP remote dir wx.html=/​weather27/​uploadCW/​
 +FTP use passive=Y
 +FTP use remote file rename=
 +FTP time interval=180
 +Save logfile=Y
 +Logfile metric=Y
 +Create custom file=Y
 +Use this filename instead of wx.html=tagsCW.txt
 +Use this filename instead of wx2.html=
 +Use this filename instead of wx3.html=
 +Use this filename instead of wx4.html=
 +Use this filename instead of wx5.html=
 +FTP the custom file=Y
 +Units for custom tag file output:
 +Temp in celsius=Y
 +Wind in=kts
 +Baro in metric=Y
 +Rain in metric=Y
 +run cron files=Y
 +do custom log=N
 +custom log out=customlogout.txt
 +copy clientraw/​customclient raw to this directory=
 +copy datafiles to this directory=
 +copy logfiles to this directory=
 +wmr200 data read delay=
 +create wxnow.txt file=
 +wxnow.txt directory output=
 +update WOW=
 +WOW id=
 +WOW pass=
 +Modified rain gauge=
 +include units tags=N
 +copy custom files to this directory=</​code>​
en/uploadcw.txt · Last modified: 2015/07/13 09:29 by wvdkuil