User Tools

Site Tools


en:uploadws

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:uploadws [2015/05/26 09:29]
wvdkuil [Create a cronjob]
en:uploadws [2015/05/26 09:38] (current)
wvdkuil [Assumptions about locations of data]
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>​
 +===== WSWIN - Which files are needed =====
 +<WRAP info>
 +This document is based on version **2.97.13** of WSWIN available when writing this WiKi part.
 +</​WRAP>​
 +==== More information ====
 +WSWIN has an on-line manual at [[http://​www.pc-wetterstation.de/​wswinen.pdf]]
 +
 +The website is at [[http://​www.pc-wetterstation.de/​en1index.html]]
 +
 +And there is also a forum: [[http://​www.pc-wetterstation.de/​en6index.html]]
 +
 +==== Assumptions about locations of data ====
 +
 +^what  ^where ​ ^
 +|WSWIN is installed in:    |C:​\wswin ​  |
 +|Files to be uploaded are stored then in: |C:​\wswin\ ​  |
 +|Default upload folder on your webserver:​\\ %%www.your-web-site.com/​%% ​ |weather27/​uploadWS/ ​ |
 +
 +=== Which files are needed ===
 +
 +^file to be used for^WSWIN name ^where to find^template name^upload frequency ​  ^
 +|Today actual and history min max values |**tags.ws.txt** |scriptWS/ folder ​  ​|uploaded as tagsws.txt |5 minutes |
 +|Yesterday values ​   |n/a |generated by cron-job ​  ​|tagsydayWS.txt ​ |at 23:45 |
 +|Realtime weather-data values ​  ​|**wswin_nrt.txt** |scriptWS/ folder ​   |clientraw.txt ​  ​|every minute |
 +|:::  |ws_clientrawhour.txt ​  ​|::: ​ |clientrawhour.txt ​  ​|wswin setting ​ |
 +|:::  |ws_clientrawextra.txt ​  |::: |clientrawextra.txt ​  ​|::: ​ |
 +|:::  | ws_clientrawdaily.txt ​  |::: |clientrawdaily.txt ​  ​|::: ​ |
 +
 +=== control file ===
 +In the folder scriptWS/ you fibnd the important control file **wswin_customfiles.cfg**. You should check this first and maybe read the documentation if this kind of upload-control is new to you.
 +<WRAP alert  100%>​Here you find only basic information on the setup of WSWIN. Please study the documentation and /or ask your questions on the WSWIN specific parts of the forum.</​WRAP>​
 +===== Instruct WSWIN to generate / upload ​  "​custom"​ files =====
 +{{:​wswin_custom.jpg?​nolink |}}  Before we can anything else we have to check if wswin is instructed to process"​**custom files**"​.
 +
 +There are three settings to check in WSWIN: ​
 +    * is a target folder specified to contain the files, normaly it is c:​\wswin\html
 +    * Activate the processing of customized html files
 +    * set the time between processing to zero (every standard time) or 5 minutes.
 +
 +===== Let wswin process our realtime data file =====
 +{{:​wswin_nrt.jpg?​nolink ​ |}}First we have to check if wswin knows that it has to process realtime files.
 +Go to wswin menu => Control (UK) or Sturing (Dutch) => Template/​... => tab NearRealTime
 +
 +Check box next to **Near Real Time File** ​ The file-name should be also checked automatically
 +
 +We now have to check if there is already a wswin-nrt.txt file present. If so we can add ours <wrap hi>with a different name</​wrap>​ or replace the current file.
 +
 +Why replace? Often the wswin-nrt.txt file is a file to produce a  clientraw.txt file. The one you downloaded is the same but includes the necessary tags for WD-live version 6.09.
 +
 +==== Move the realtime file to the wswin folder ====
 +Download using your FTP program th4 4 files from the scriptWS/ folder (or use the ones in the template download, if it is still on your PC). Move these files to the C:\wswin\ folder, if that is the folder your wswin program is runbnig from.
 +   * tags.ws.txt
 +   * wswin_nrt.txt
 +   * ws_clientrawhour.txt
 +   * ws_clientrawextra.txt
 +   * ws_clientrawdaily.txt
 +
 +===== check the custom configuration file =====
 +Check if you already have a **wswin_customfiles.cfg** in your C:\wswin\ folder.
 +==== Yes, there is one ====
 +you now have to compare the lines 2 to 5 from the template version (in the scriptsWS/ folder) with your own version and add the missing lines. ​ At least 1 line should be added as **tags.ws.txt** can not be there already.
 +<​code>​[custom.txt]
 +#=4
 +1=ws_clientrawextra.txt
 +2=ws_clientrawdaily.txt
 +3=ws_clientrawhour.txt
 +4=tags.ws.txt
 +[wap.txt]
 +. . . shortened . . . </​code>​
 +==== No, there is no wswin_customfiles.cfg in C:\wswin\ ====
 +Copy the file from scriptsWS/ to C:\wswin\ and WSWIN will generate the files from now on.
 +===== Create a cronjob =====
 +There are no "​yesterday'​ values registred by WSWIN. So to get those values a small script should be run every day around 23.45 but before 00:00
 +
 +<WRAP important>​
 +The name of that script %%www.yourwebsite.com/​%%**weather27/​yesterday.php**
 +</​WRAP>​
 +
 +The easiest way to run that script is to use cron [[http://​en.wikipedia.org/​wiki/​Cron]]
 +
 +{{ :​cron-provider.jpg?​nolink&​600 |}}
 +You can either use your providers facilities if the support specifying cronjobs
 +
 +Or you could use your first =  free cron job at [[https://​www.cronjob.de/​]]
 +{{ :​cronjob_de.jpg?​nolink&​600 |}}
  
en/uploadws.txt · Last modified: 2015/05/26 09:38 by wvdkuil