WXforum.net
Weather Software => WeatherLink/weatherlink.com by Davis Instruments => Topic started by: wvdkuil on October 03, 2018, 08:14:33 AM
-
At September 28 my weatherlink-ip uploads were moved to the version 2 weatherlink.com site.
As with all others I lost my "blue-page" and "summary page". They are still there (https://www.weatherlink.com/user/herent/index.php?view=summary&headers=0&type=1) but are not updated.
So I wrote a stand-alone PHP script to "mimic" the summary page using the API.
You can check how it looks at https://www.weerstation-herent.be/load_wl2.php?lang=nl
I added translation of the sensor names for English and Dutch using the standard "langlookup". Other languages will follow. At least we can now give those sensors a more meaningful name, just translate "Extra Temp1" => "Swimming pool". Or "Soil Temp1" => "Soil temp at -5"
I do not have those extra sensors. If you have multiple extra sensors I would like to get your xml file to test with.
As the files are identical in version 1 or 2 you can use the old xml.php or the new API
http://www.weatherlink.com/xml.php?user=USERNAME&pass=PASSWORD
http://api.weatherlink.com/v1/NoaaExt.xml?user=DID&pass=PASSWORD&apiToken=APIKEY
If you downloaded that file once, please zip it and sent it by PM.
I attached the current version of the script. The first 50 lines are settings. Do not change below line 50 yet, as it is still in beta. Just post your remarks here and I will try to adapt the script for you.
EDIT 2018-10-06
Attached new version 1 of the script.
Thanks for the remarks and the xml files to test with.
Changes:
Removed key/password/api settings from the script and moved them to a separate file
Added another script to generate the "blue page" as used in WeatherLink.com v1
Add 'fr' and 'de' languages besides 'en' and 'nl'
Added optional enclosing html for stand-alone use
Added more comments for the settings
Wim
-
Thanks Wim,
Looks good http://www.komokaweather.com/weatherlink/load_wl2.php
I do not have extra sensors
Enjoy,
Paul
-
Seeing the old summary page again, I realize how much easier it is on the eyes than the 2.0 version. The new version text is too gray, doesn't stand out like the black.
-
I have it running at http://www.rogerscityweather.com/load_wl2.php (http://www.rogerscityweather.com/load_wl2.php)
It is working well. I have multiple sensors, but I am OK with the "Extra Temp" nomenclature.
Greg H.
-
PM sent with XML
-
I just don't know php very well yet, working on it.
Anyway, I can't find where/how to change some of the commas to decimal points. Such as those under the rainfall amounts, temp., heat index. My page https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Greg, I see you have changed yours, any hints? :-)
-
I can't find where/how to change some of the commas to decimal points.
Line 40 $wl_comma_dec = false; # false = 5.40 true = 5,40
Also, just put this up and it contains the extra sensors for the Leaf/Soil Sensors
http://weather.brien.com.au/summary.php
-
I can't find where/how to change some of the commas to decimal points.
Line 40 $wl_comma_dec = false; # false = 5.40 true = 5,40
Oh just perfect, thanks a lot for the prompt reply.
-
:oops: I hasn't even noticed the comma decimal... need to get replacement for my new glasses :(
Thanks Paul
-
I just don't know php very well yet, working on it.
Anyway, I can't find where/how to change some of the commas to decimal points. Such as those under the rainfall amounts, temp., heat index. My page https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Greg, I see you have changed yours, any hints? :-)
Sorry I saw this too late to help. I see that others stepped in with the correct answer.
Greg H.
-
I just don't know php very well yet, working on it.
Anyway, I can't find where/how to change some of the commas to decimal points. Such as those under the rainfall amounts, temp., heat index. My page https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Greg, I see you have changed yours, any hints? :-)
No worries Greg, thanks.
Sorry I saw this too late to help. I see that others stepped in with the correct answer.
Greg H.
-
Thank you so much for this! I have all 3 of my stations in Florence, Alabama using it.
http://shoalsweather.net/fhs/load_wl2.php
http://shoalsweather.net/harbor/load_wl2.php
http://shoalsweather.net/northflorence/load_wl2.php
-
Added the first "official" version of the two scripts.
One for the summary page, one for the "blue" page.
Check the first post for the download.
Summary demo: www.weerstation-herent.be/wl2/load_wl2.php
Blue clouds demo: www.weerstation-herent.be/wl2/load_wl2-blue.php
For this demo I "upped" the cache time from 5 minutes to 15 minutes. Less loads for the Davis server.
Wim
-
Again, thanks Wim. Both working good.
http://www.komokaweather.com/weatherlink/load_wl2.php
http://www.komokaweather.com/weatherlink/load_wl2-blue.php
Enjoy,
Paul
-
I like the new "blue" one. I have made it my starting page for Firefox.
Also, thanks for removing the key, DID and PW to a separate file.
Users may also want to change the permissions of the _your_keys.php file to eliminate "public" access (0640) or check the permissions boxes as required in FileZilla.
UPDATE: (maybe not, I re-enabled the public permission and I could not see it then either...) I am leaving it as above in an abundance of caution.
Greg H.
-
Agree with Greg, thanks for the update removing the "access" data to a separate file.
Also, I have tried several ways to view the new _your_keys file but have not been able to do so through a browser (FF). I was also concerned about public eyes on that file. Are there other ways the public can view it?
One other, I like to have an "icon" associated with my site so I added the necessary info down between line 96 and 99. I also changed the page title here to reflect my site. Yes I know - it said not to modify below line 66 but could not restrain my self, and it works. https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Thanks a lot Wim (and others) this is a great go-to page.
-
Agree with Greg, thanks for the update removing the "access" data to a separate file.
Also, I have tried several ways to view the new _your_keys file but have not been able to do so through a browser (FF). I was also concerned about public eyes on that file. Are there other ways the public can view it?
One other, I like to have an "icon" associated with my site so I added the necessary info down between line 96 and 99. I also changed the page title here to reflect my site. Yes I know - it said not to modify below line 66 but could not restrain my self, and it works. https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Thanks a lot Wim (and others) this is a great go-to page.
It is a fully supported release, so you can change and move around as you wish. There is that warning, but just to make sure that one uses a little extra precaution. The language lines and the enclosing html is also below that line and changing those takes a little more "know-how" than changing a setting from true to false.
_your_keys file
As far as I know there is no way for a website-visitor to inspect php scripts. As soon as the webserver loads a script it is parsed. Script authors therefor nearly always include a "sce=view" facility in the scripts to check scripts for support.
That your_keys file has no "sce=view" and therefore can only be viewed when there is no PHP support at your webserver.
Wim
-
Agree with Greg, thanks for the update removing the "access" data to a separate file.
Also, I have tried several ways to view the new _your_keys file but have not been able to do so through a browser (FF). I was also concerned about public eyes on that file. Are there other ways the public can view it?
One other, I like to have an "icon" associated with my site so I added the necessary info down between line 96 and 99. I also changed the page title here to reflect my site. Yes I know - it said not to modify below line 66 but could not restrain my self, and it works. https://lakehuronweather.org/wxWeatherLinkSummary.php (https://lakehuronweather.org/wxWeatherLinkSummary.php)
Thanks a lot Wim (and others) this is a great go-to page.
It is a fully supported release, so you can change and move around as you wish. There is that warning, but just to make sure that one uses a little extra precaution. The language lines and the enclosing html is also below that line and changing those takes a little more "know-how" than changing a setting from true to false.
_your_keys file
As far as I know there is no way for a website-visitor to inspect php scripts. As soon as the webserver loads a script it is parsed. Script authors therefor nearly always include a "sce=view" facility in the scripts to check scripts for support.
That your_keys file has no "sce=view" and therefore can only be viewed when there is no PHP support at your webserver.
Wim
Thanks Wim for the explanation. I have seen the lines that control the "view" option, but I wasn't sure if it precluded anyone from viewing them at all.
It looks like we are safe.
Greg H.
-
I have had the notification that our data will be moved from 1.0 to 2.0. I knew nothing about 2.0 and we only use the online data to A) download to weatherlink and B) put on our intranet. this script is ideal to sort B) out so thank you. Currently I get "File loaded from wl.com has no valid contents - program ends. Check your key settings." even with my DID, password and freshly generated API key. Im assuming I need to wait until the transition to 2.0 has completed first (I can log into 1.0 and 2.0 at the moment).
EDIT - nevermind, I used the DID listed in weatherlink 1.0 and it works fine. The DID listed in my weatherlink 2.0 is wrong (no idea why) so perhaps that will change when the migration happens (I only got the email this morning)
-
I combined both scripts on one page: https://wx.ctreno.com/
@Wim please provide a link to your tip jar.
Thank you!
Sent from my iPhone using Tapatalk
-
I also combined both scripts into one page. Thank you so much for this! Perfect setup!
http://shoalsweather.net/harbor
http://shoalsweather.net/oaklandvfd
http://shoalsweather.net/northflorence
-
Do we know if this script will continue to display all information if on the Weatherlink 2.0 Basic/Free tier, or is a Pro or higher subscription required to display all the data displayed in the script?
-
Do we know if this script will continue to display all information if on the Weatherlink 2.0 Basic/Free tier, or is a Pro or higher subscription required to display all the data displayed in the script?
There is no paid-subscription needed. Just the API-token to retrieve your own data.
I do not think that Davis will ever charge you to retrieve your own data.
Wim
-
Thanks Wim
works perfectly
-
=D> thanks, both work flawlessly
-
I was pointed in this direction from uk.sci.weather after I was asking a few questions after my VP2 WeatherLink had been migrated from V.1 to V.2. I like the old display they previously used and see that someone has found a way of maintaining this.
I have downloaded the WL.zip from this thread but need a bit of advice from here.
I have tinkered with Pearl so not a complete novice, but just wondered what I need to do from here. I assume I will need to download and install PHP? Is there a particular version?
Any help would be very much appreciated.
Many thanks
Keith (Southend)
-
I was pointed in this direction from uk.sci.weather after I was asking a few questions after my VP2 WeatherLink had been migrated from V.1 to V.2. I like the old display they previously used and see that someone has found a way of maintaining this.
I have downloaded the WL.zip from this thread but need a bit of advice from here.
I have tinkered with Pearl so not a complete novice, but just wondered what I need to do from here. I assume I will need to download and install PHP? Is there a particular version?
Any help would be very much appreciated.
Many thanks
Keith (Southend)
These scripts can only be used on your own website.
And that website must support PHP. At least 5.3.xx, preferably 7.1
If you have a website you can mail me the ftp userid/passw and I can install the script for you if you have no experience with that.
Wim
-
Hi Wim,
Thank you for your quick reply.
I need to get the ok from the person who hosts my webspace, but will get back to you. Just off on a late shift at work so it maybe tomorrow morning when I next reply.
Many thanks
Keith (Southend)
-
Hi Wim,
Thank you for your quick reply.
I need to get the ok from the person who hosts my webspace, but will get back to you. Just off on a late shift at work so it maybe tomorrow morning when I next reply.
Many thanks
Keith (Southend)
Hi Wim,
Apparently I have PHP version 5.6 on the shared server where my website is hosted.
Just looked at the files in 'wl2' zip folder and I imagine it is the '_your_keys.php' I need to modify and subsequently upload, I just tried to view using Notepad, but I guess this isn't the right way.
Hopefully with a little help I should be able to do this :?
Keith (Southend)
-
I just tried to view using Notepad
Notepad++ is the one to use! It is free.
You need to edit two files, load_wl2.php and _your_keys.php
and load_wl2-blue.php if you want this as well.
Enjoy,
Paul
-
I just tried to view using Notepad
Notepad++ is the one to use! It is free.
You need to edit two files, load_wl2.php and _your_keys.php
and load_wl2-blue.php if you want this as well.
Enjoy,
Paul
Ah yes, I have that, just updated my version.
Right I've extracted all the component into it's own folder and opened up on Notepad++:
1. _your_keys.php
I've edited the DID and Password for my system, but what is the API Token?
2. load_wl2.php
What do I need to edit for this one?
And then assuming I have all my correct settings what elements need uploading to my webspace and what do I look for to see the display. Let me know if there's anything else I've forgotten?
**PHP Version 5.6 is on the shared webserver I have been told.**
This is the screen I want to get, incase I've chosen the wrong file:
http://www.weatherlink.com/user/keithharris1960/index.php?view=summary&headers=0
Many thanks for all the help.
Ps: A thoroughly wet morning here at Southend-on-Sea.
Keith (Southend)
-
The procedure to generate your API-token (key) is down here in the screenshot:
-
. . . shortened . . .
2. load_wl2.php
What do I need to edit for this one?
check the lines 7 - 66 in load_wl2.php
You have to change
line 12 => your time zone as "Europe/London"
line 19 => you want to use " Mph" for wind
line 39 => change to true only if you want to show your inside temperature, nice feature for burglars
line 50 => as you have extra temp it must be changed to true And then assuming I have all my correct settings what elements need uploading to my webspace and what do I look for to see the display.
. . .
First test with
http://www.southendweather.net/wl2/load_wl2.php
If all is OK, you have to "include" it on your website.
Your main page is http://www.southendweather.net/index.html
If you want it on your main page you have to use an iFrame check here https://www.w3schools.com/tags/tag_iframe.asp
If you want it in the menu, a link to http://www.southendweather.net/wl2/load_wl2.php is all you need
This is the screen I want to get, incase I've chosen the wrong file:
http://www.weatherlink.com/user/keithharris1960/index.php?view=summary&headers=0
. . . .
Keith (Southend)
Success, Wim
-
The procedure to generate your API-token (key) is down here in the screenshot:
Got the token, thanks for pointing me in the right direction.
So that's the _your_keys.php sorted.
Lot's of stuff on the load_wl2.php file. I've changed Km/h Mph. Now I have an extra sensor that I use for my grass minimum 'Extra Temp 2' I read somewhere this can read Grass minimum on the script. I'm guessing another array needs adding somewhere?
Keith (Southend)
http://www.southendweather.net/
-
The procedure to generate your API-token (key) is down here in the screenshot:
Got the token, thanks for pointing me in the right direction.
So that's the _your_keys.php sorted.
Lot's of stuff on the load_wl2.php file. I've changed Km/h Mph. Now I have an extra sensor that I use for my grass minimum 'Extra Temp 2' I read somewhere this can read Grass minimum on the script. I'm guessing another array needs adding somewhere?
Keith (Southend)
http://www.southendweather.net/
PLEASE go step by step.
First make sure that all keys are set
AND TEST http://www.southendweather.net/wl2/load_wl2.php
If the test is OK, change one or two lines in load_wl2.php
AND TEST http://www.southendweather.net/wl2/load_wl2.php
Doing multiple / a lot of changes
and
the first test at the end
EQUALS to disaster
Wim
-
The procedure to generate your API-token (key) is down here in the screenshot:
Got the token, thanks for pointing me in the right direction.
So that's the _your_keys.php sorted.
Lot's of stuff on the load_wl2.php file. I've changed Km/h Mph. Now I have an extra sensor that I use for my grass minimum 'Extra Temp 2' I read somewhere this can read Grass minimum on the script. I'm guessing another array needs adding somewhere?
Keith (Southend)
http://www.southendweather.net/
PLEASE go step by step.
First make sure that all keys are set
AND TEST http://www.southendweather.net/wl2/load_wl2.php
If the test is OK, change one or two lines in load_wl2.php
AND TEST http://www.southendweather.net/wl2/load_wl2.php
Doing multiple / a lot of changes
and
the first test at the end
EQUALS to disaster
Wim
Nearly there, view link...
http://www.southendweather.net/wl2/load_wl2.php
Many thanks Wim
-
Warning: file_put_contents(./cache/001D0A00C313.xml): failed to open stream: No such file or directory in /mounted-storage/home117a/sub001/sc47724-APCU/southendweatherdotnet/wl2/load_wl2.php on line 179
Script load_wl2.php could not save file to cache => check settings
Line 179 { $return = file_put_contents ($cachefile_wl,$string);
Looking at the files uploaded on the webserver the new ones are in their own folder e.g.
/wl2/load_wl2.php and _your_keys.php
I don't think it's anything I have changed on the php files.
Does the message mean more to you?
Thanks
Keith (Southend)
-
. . . shortened . . .
Nearly there, view link...
http://www.southendweather.net/wl2/load_wl2.php
Many thanks Wim
This message:
file_put_contents(./cache/001D0A00C313.xml . . . .
Script load_wl2.php could not save file to cache => check settings
It seems you removed the cache/ folder from the wl2/ folder.
1. make sure that the folder is there
if the folder wl2/cache/ exists
2. make sure it is writable and use your ftp program to set it at 755
AND do not run the script without cache as the Weatherlink API does not allow frequent loads of the data.
Wim
-
Good job =D>
-
. . . shortened . . .
Nearly there, view link...
http://www.southendweather.net/wl2/load_wl2.php
Many thanks Wim
This message:
file_put_contents(./cache/001D0A00C313.xml . . . .
Script load_wl2.php could not save file to cache => check settings
It seems you removed the cache/ folder from the wl2/ folder.
1. make sure that the folder is there
if the folder wl2/cache/ exists
2. make sure it is writable and use your ftp program to set it at 755
AND do not run the script without cache as the Weatherlink API does not allow frequent loads of the data.
Wim
Thank you, I hadn't copied the that over, so atm I don't have the other contents clouds1.jpg, spacer.gif etc, should I put those in as well?
Keith (Southend)
-
This may answer the question:
$cache_age_OK = 300; // in seconds , 300 = Davis minimum allowed value
The page can only update every 5 minutes due to Davis constraints?
I kept going backwards and forwards with Europe/London and the changing the comma to a point thinking what I had done was stopping it updating. :lol:
Keith (Southend)
-
This may answer the question:
$cache_age_OK = 300; // in seconds , 300 = Davis minimum allowed value
The page can only update every 5 minutes due to Davis constraints?
Yes I kept going backwards and forwards with Europe/London and the changing the comma to a point thinking what I had done was stopping it updating. :lol:
Keith (Southend)
The scripts-output always immediately reflects the changes such as comma/decimal you made. But the data from weatherlink.com is retrieved only when it is older than the set 5 minutes.
Wim
-
All seems to be working fine and looks good.
The last thing that I need a little help with is I have a. 'Extra Temp 2' sensor, which I use for grass minimum.
Old version:
http://www.weatherlink.com/user/keithharris1960/index.php?view=summary&headers=1
Just want to be sure I am changing/adding the correct bits.
$wl_is_t_extra1 = false; // extra temp 1 set to true or false
$wl_is_t_extra2 = false; // add more lines if you have more then 2, max = 7
extra2 = true?
Then I'm a bit lost as I imagine I need to add another array or two lower down.
Many thanks
Keith (Southend)
-
All seems to be working fine and looks good.
The last thing that I need a little help with is I have a. 'Extra Temp 2' sensor, which I use for grass minimum.
Old version:
http://www.weatherlink.com/user/keithharris1960/index.php?view=summary&headers=1
Just want to be sure I am changing/adding the correct bits.
$wl_is_t_extra1 = false; // extra temp 1 set to true or false
$wl_is_t_extra2 = false; // add more lines if you have more then 2, max = 7
extra2 = true?
Then I'm a bit lost as I imagine I need to add another array or two lower down.
Many thanks
Keith (Southend)
You only have extra temp 2, so there is already a line for that sensor. As from a previous post
line 50 => as you have extra temp it must be changed to true
so change that line 50 from $wl_is_t_extra2 = false; // add more lines if you have more then 2, max = 7
to$wl_is_t_extra2 = true; // add more lines if you have more then 2, max = 7
After you tested it and all is OK, we need to change the default description "Extra Temp2" to the description you want.
We do that by using the built-in translate code and adding for the English language the needed translation:
As the de fault english words need no translation, line 793 now readselseif ($wl_lang == 'en') {$string = '';}
Change that line tho these lineselseif ($wl_lang == 'en') {$string = '
langlookup|Extra Temp2|Grass minimum|
';}
Every translation line you want to add should contain three parts divided by the | character..
The second part is the string to translate.
The translation is the third part. I used Grass minimum in the example.
Wim
-
Hi Wim,
I've been at work all day, so just home and made the changes.
http://www.southendweather.net/wl2/load_wl2.php
Displays good, but getting 'n/a' as values atm, any ideas what I've missed?
Many thanks
Keith (Southend)
-
Hi Wim,
I've been at work all day, so just home and made the changes.
http://www.southendweather.net/wl2/load_wl2.php
Displays good, but getting 'n/a' as values atm, any ideas what I've missed?
Many thanks
Keith (Southend)
I think I've sorted it. I changed the two bits to Extra temp 1. Logically I only have one extra temperature setting, even though Davis originally always listed it as 2?
http://www.weatherlink.com/user/keithharris1960/index.php?view=summary&headers=1
Just in time for the grass frost =D>
Keith (Southend)
-
Hi,
First of all I'd like to compliment you on your replacement script, your expertise is very much appreciated.
I've uploaded your script to my website
www.northlaoiswr.info/wl2/load_wl2.php
One thing I have noticed that the 10 minute max gust seems to be the same as the 10 minute average wind speed . It's not a criticism, I just thought I'd let you know.
Thanks again,
Anthony.
-
...One thing I have noticed that the 10 minute max gust seems to be the same as the 10 minute average wind speed...
Change line 375 to read:
$wl_lines[] = 'detail|Wind Gust Speed| |wl_wind_gust_10m| | | |';
Also, I noticed than the rain totals were showing 3 decimals (thousandths of an inch, instead of hundredths). Therefore I changed line 272 to:
{ $value = wl_number ($value,2).$uomRain;}
Here's a link to my WL2 scripts https://wx.ctreno.com
What I haven't been able to figure out is to change the Barometer inHg from 3 to 2 decimals (thousandths of an inch to hundredths). If anyone knows how to change that, please advise.
I figured it out. I changed line 309 to:
$value = wl_number ($value,2).$uomBaro;
-
Just made the change to the 10 minute gust, works fine now.
I don't think I need to change the 'rain total' or 'barometer' as I use 'mm' and 'mb' and it looks fine for me atm.
http://www.southendweather.net/wl2/load_wl2.php
I do so much like that format to what Davis now have with the upgrade, which is not so easy on the eye.
Many thanks
Keith (Southend)
-
Love the script, any thought of placing it on GitHub for easier collaboration?
Another thing, anyone know why I'm not seeing 'wind_ten_min_gust_mph' in the XML?
Best regards
//Anders
-
Excellent script, thank you for coding this. Only issue I am having is with one of my extra sensors not display the temp correctly, any ideas?
Any way to change the name of the sensors?
-
Excellent script, thank you for coding this. Only issue I am having is with one of my extra sensors not display the temp correctly, any ideas?
Any way to change the name of the sensors?
I can only look at it if i have the URL of the page.
I have to check if it is in the data or in the script
Wim
-
opps sorry;
http://www.nitram-media.com/weather/wl2/load_wl2.php
-
opps sorry;
http://www.nitram-media.com/weather/wl2/load_wl2.php
The loaded data http://www.nitram-media.com/weather/wl2/cache/001D0AE057D9.xml
has soil-moist 1,2,3,4 and temp-soil 2,3
Your settings in http://www.nitram-media.com/weather/wl2/load_wl2.php have
$wl_is_t_soil1 = true; // soil temp sensors 1 set to true or false
$wl_is_t_soil2 = true; // add more lines if you have more then 2, max = 4
#
$wl_is_m_soil1 = true; // soil moisture sensors 1 set to true or false
$wl_is_m_soil2 = true; // add more lines if you have more then 2, max = 4
If you only have soil sensors 2 and 3 you should change that to
$wl_is_t_soil1 = false; // soil temp sensors 1 set to true or false
$wl_is_t_soil2 = true; // add more lines if you have more then 2, max = 4
$wl_is_t_soil3 = true; // add more lines if you have more then 2, max = 4
#
$wl_is_m_soil1 = false; // soil moisture sensors 1 set to true or false
$wl_is_m_soil2 = true; // add more lines if you have more then 2, max = 4
$wl_is_m_soil3 = true;
Wim
-
Added the first "official" version of the two scripts.
One for the summary page, one for the "blue" page.
Check the first post for the download.
Summary demo: www.weerstation-herent.be/wl2/load_wl2.php
Blue clouds demo: www.weerstation-herent.be/wl2/load_wl2-blue.php
For this demo I "upped" the cache time from 5 minutes to 15 minutes. Less loads for the Davis server.
Wim
Great, thanks. If you need it... background attached. Looks like that: http://casacota.dynalias.com/weatherlink/wlblau.htm
-
Summary page, which you can share, is under Share & Uploads within WeatherLink 2.0
I am sure someone else has posted about it, but just found it myself
-
Hi,
Just some information if you want to integrate the "load_wl2.php" as an include.
because I'm changing some webpages, I decided to integrate "load_wl2.php" in a page and not to use the standalone version anymore.
Because I try no to use the HTML <iframe> tag, I decided to use the PHP "include" statement.
First thing I did is :
$wl_standalone = false; // true = include enclosing html head
// false= only the div and table
Then a in my "wxwl2.php" page :
<div id="main-copy">
<br/>
<?php
include("load_wl2.php");
?>
</div><!-- end main-copy -->
<?php
############################################################################
include("footer.php");
############################################################################
Result was a html page that stopped after the "load_wl2.php" script, my "footer.php" was not executed
After some "research" I found in "load_wl2.php" line 498 -501 :
if (!isset ($wl_standalone) || $wl_standalone == true) {
echo '</body>
</html>'.PHP_EOL;}
exit;
I changed this to the code hereunder, in that case the "exit" statement would only be executed for the "non standalone"
if (!isset ($wl_standalone) || $wl_standalone == true) {
echo '</body>
</html>'.PHP_EOL; exit;}
Now it's ok, I hope this is the correct way to do it otherwise let me know please.
Thanks
-
Any support for weatherlink live versions?
-
Any support for weatherlink live versions?
The data used is available on wl.comv1API, so all "old" WLIP and weatherlink.exe uploads can use this script.
But not with WL .comv2API as there are no high-lows in the data=> https://weatherlink.github.io/v2-api/
And WeatherLinkLive is only accessible using WL.comv2API
There is a bulletin from weatherlink .com which can be included on your website.
Wim