User Tools

Site Tools


en:uploaddw

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:uploaddw [2015/05/25 10:21]
wvdkuil [Specify your correct userid and password]
en:uploaddw [2015/05/26 09:32] (current)
wvdkuil [Create a cronjob]
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 Davis WeatherLink.com =====
 +Using Weatherlink.com as a data source there are no uploads needed and no config program for the template.
 +==== Specify your correct userid and password ====
  
 +You should edit the lines 44-48 in wsUserSettings.php where you have to enter your ID and password for Weatherlink.com. ​
 +
 +<​code>#​ for weatherlink.com users --------------------
 +#​$SITE['​WXsoftware'​] = '​DW';​ // ##### Davis WeatherLink.Com ​ ONLY uncomment after setting the id and password
 +$SITE['​wlink_key'​] ​     = '​xyz';​ // ##### Your weatherlink.com user id
 +$SITE['​wlink_pw'​] ​      = '​xyz';​ // ##### and password.</​code>​
 +
 +Remove the comment mark as your weatherprogram is coded internaly as '​DW'​ for "​**D**avis **W**eatherlink.com"​.
 +Set the **wlink_key** to your userid for the weatherlink.com website and **wlink_pw** to your password for that site.
 +it should look like
 +<​code>​$SITE['​WXsoftware'​] = '​DW';​  ​   // ##### Davis WeatherLink.Com ​ ONLY uncomment after setting the id and password
 +$SITE['​wlink_key'​] ​     = '​herent';​ // ##### Your weatherlink.com user id
 +$SITE['​wlink_pw'​] ​      = '​123456';​ // ##### and password.</​code>​
 +
 +
 +==== Create a cronjob ====
 +There are no "​yesterday'​ values registred by WL.com. So to get those values a small script should be run every day around 23.45 but before 00:00
 +<WRAP important>​
 +The script that has to be run is:  %%www.yourwebdsite.com/​%%**weather27/​yesterday.php**
 +</​WRAP>​
 +
 +The easiest way to do that 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/uploaddw.txt · Last modified: 2015/05/26 09:32 by wvdkuil