Plugin WLIP
Posted: Sat Jan 04, 2020 8:42 am
Two concerns with the WLIP plugins.
To retrieve the data from WL, add a line to the file: setting.php
$ tokenID = '3557167274C874BF09454634831031D5A';
and modify file wlIPupdate.php,
line 67 : $url = "https://api.weatherlink.com/v1/NoaaExt. ... ".$tokenID;
Another concern the gusts are not correct.
on weatherlink there are no bursts and meteotemplateLive.txt
what he records
{ "T" 5.9, "H": 93, "P": 1032.6, "B": 221, "W": 1609, "G": 4827, "R": 0.20066, "RR" 0, " S "0," U ": 1577901058," TIN ": 22.2," HIN ": 38," SW ":" Wlip "," TTIME ": 1577901105," HTime ": 1577901105," ptime ": 1577901105," btime ": 1577901105," WTIME ": 1577901105," gtime ": 1577901105," RTime ": 1577901105," RRTime ": 1577901105," sTime ": 1577901105," utime ": 1577901105," TINTime ": 1577901105," HINTime " : 1577901105, "SWTime": 1577901105, "D": 4.8 "dTime": 1577901105, "A" 4.4 "atime": 1577901105}
modify the file:
In your file ..plugins \ WIIP \ wlIPupdate.php,
you have the link between the database fields and the xml tags of the weatherlink API:
For Gust you should have:
$ rawUpdate ['G'] = floatval ($ xml-> wind_mph) * 1.609; // km / h
which you can replace with:
Line 80 ; $ rawUpdate ['G'] = floatval ($ xml-> davis_current_observation-> wind_ten_min_gust_mph) * 1.609; // km / h
You have to put the cron on 1 minute, so that the maximum burst is recorded since they recorded in alldata every five minutes.
I attach the modified files thanks to the forum which allowed me to make this plugin work properly
Best wishes
To retrieve the data from WL, add a line to the file: setting.php
$ tokenID = '3557167274C874BF09454634831031D5A';
and modify file wlIPupdate.php,
line 67 : $url = "https://api.weatherlink.com/v1/NoaaExt. ... ".$tokenID;
Another concern the gusts are not correct.
on weatherlink there are no bursts and meteotemplateLive.txt
what he records
{ "T" 5.9, "H": 93, "P": 1032.6, "B": 221, "W": 1609, "G": 4827, "R": 0.20066, "RR" 0, " S "0," U ": 1577901058," TIN ": 22.2," HIN ": 38," SW ":" Wlip "," TTIME ": 1577901105," HTime ": 1577901105," ptime ": 1577901105," btime ": 1577901105," WTIME ": 1577901105," gtime ": 1577901105," RTime ": 1577901105," RRTime ": 1577901105," sTime ": 1577901105," utime ": 1577901105," TINTime ": 1577901105," HINTime " : 1577901105, "SWTime": 1577901105, "D": 4.8 "dTime": 1577901105, "A" 4.4 "atime": 1577901105}
modify the file:
In your file ..plugins \ WIIP \ wlIPupdate.php,
you have the link between the database fields and the xml tags of the weatherlink API:
For Gust you should have:
$ rawUpdate ['G'] = floatval ($ xml-> wind_mph) * 1.609; // km / h
which you can replace with:
Line 80 ; $ rawUpdate ['G'] = floatval ($ xml-> davis_current_observation-> wind_ten_min_gust_mph) * 1.609; // km / h
You have to put the cron on 1 minute, so that the maximum burst is recorded since they recorded in alldata every five minutes.
I attach the modified files thanks to the forum which allowed me to make this plugin work properly
Best wishes