Page 1 of 1

Wind gust with plugins WLIP

Posted: Mon Dec 30, 2019 9:33 am
by PNCATTE
Hello,

With the WLIP plugin the wind gusts do not match
When I check what WEATHERLINK sends me:
https://api.weatherlink.com/v1/NoaaExt. ... rie69820&a

There is only one line that takes the bursts from the line above
<Wind_ten_min_gust_mph> 5.0 </ wind_ten_min_gust_mph>

But this value is not taken over for the database

How to take into account this line which seems to correspond to the last 10 minutes

Thanks in advance for the help

My site :http://www.fleurie-meteolive.ovh

cordially

Re: Wind gust with plugins WLIP

Posted: Wed Jan 01, 2020 11:26 am
by Olinet
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:
$rawUpdate['G'] = floatval($xml->davis_current_observation->wind_ten_min_gust_mph)*1.609; //km/h

Re: Wind gust with plugins WLIP

Posted: Wed Jan 01, 2020 5:59 pm
by Jolumarali
Bonjour

Ma question ton cron est réglé à combien de minutes.
perso : 1 minute

Image
et sur data
Image
sur weatherlink il n'y a pas les rafales et meteotemplateLive.txt
ce qu'il enregistre
{"T":5.9,"H":93,"P":1032.6,"B":221,"W":1.609,"G":4.827,"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}
Donc c'est une idée, si tu mets le cron sur 1 minute, tu as des chance que ta rafale maxi soit enregistrée vu qu''elles ont enregistrée dans alldata toutes les cinq minutes.
perso cela fonctionne (Tout cela est une observation) à voir
si ton cron est déjà sur 1 minute , aucune autre idée, en espérant que tu es compris HUmmm
après tout cela Bonne et heureuse année
José Luis

Re: Wind gust with plugins WLIP

Posted: Wed Jan 01, 2020 7:15 pm
by Olinet
je confirme, avec le Cron sur 1 minute, cela va fonctionner de la manière que tu décris Jolumarali

Re: Wind gust with plugins WLIP

Posted: Thu Jan 02, 2020 6:52 am
by Jolumarali
Bonjour
petite modif de mon current

Image

José Luis

Re: Wind gust with plugins WLIP

Posted: Sat Jan 04, 2020 8:18 am
by PNCATTE
Hello,

After modifying the file:
..plugins \ WIIP \ wlIPupdate.php
line:
$ rawUpdate ['G'] = floatval ($ xml-> davis_current_observation-> wind_ten_min_gust_mph) * 1.609; // km / h

and set the CRON to 1 minute
gusts are taken into account

Putting the CRON one minute also allows to have the mini / maxi each time before they were all identical
Thank you again for your precious help for having a fair database.

Happy new year 2020

Pascal

Re: Wind gust with plugins WLIP

Posted: Sat Jan 04, 2020 8:23 am
by PNCATTE
Bonjour,
Après avoir modifié le fichier:
..plugins \ WIIP \ wlIPupdate.php
ligne:
$ rawUpdate ['G'] = floatval ($ xml-> davis_current_observation-> wind_ten_min_gust_mph) * 1.609; // km / h

et réglez le CRON sur 1 minute
les rafales sont bien prises en compte

Mettre le CRON une minute permet aussi d'avoir les mini / maxi à chaque releves de 5 minutes pour ma base avant elles étaient toutes identiques.

Merci encore pour votre aide précieuse pour avoir une base de données juste

Bonne année 2020
Pascal