Page 1 of 1

Snow Data support for API

Posted: Mon Dec 11, 2017 1:05 pm
by MonyMony
For some weather data software, like WeatherCat, you can add in daily snow totals. Then the software allows this snow data to be pulled via a variable for use in what ever manner might be wanted. I will put my wish out there to include this in the API so that the snow data can be automatically populated in Meteotemplate and I can avoid the double data entry in my weather software and Meteotemplate.

Oh, and snow totals on the stickers too. :D

Re: Snow Data support for API

Posted: Mon Dec 11, 2017 9:20 pm
by Jachym
Hi,

check if meteotemplateLive.txt has data for SN and SD

Re: Snow Data support for API

Posted: Mon Dec 11, 2017 11:20 pm
by MonyMony
Jachym wrote: Mon Dec 11, 2017 9:20 pm check if meteotemplateLive.txt has data for SN and SD
Currently my version does not:

{"U":1513034276,"B":262,"W":1.600000000000000088817841970012523233890533447265625,"G":3.20000000000000017763568394002504646778106689453125,"H":81,"T":0.5,"HIN":37,"TIN":21.39999999999999857891452847979962825775146484375,"RR":0,"R":0,"P":1015.740000000000009094947017729282379150390625,"LW4":0,"SW":"WeatherCatV2.44B2","UTime":1513034276,"BTime":1513034276,"WTime":1513034276,"GTime":1513034276,"HTime":1513034276,"TTime":1513034276,"HINTime":1513034276,"TINTime":1513034276,"RRTime":1513034276,"RTime":1513034276,"PTime":1513034276,"LW4Time":1513034276,"SWTime":1513034276,"D":-2.399999999999999911182158029987476766109466552734375,"DTime":1513034276,"A":-2.100000000000000088817841970012523233890533447265625,"ATime":1513034276}

Re: Snow Data support for API

Posted: Tue Dec 12, 2017 1:22 am
by Jachym
Right, ok, in that case however Im afraid it wont be possible

Re: Snow Data support for API

Posted: Tue Dec 12, 2017 1:01 pm
by MonyMony
I'm I correct that this is a limitation from WeatherCat and how it interacts with the API?

Re: Snow Data support for API

Posted: Tue Dec 12, 2017 11:46 pm
by Jachym
Yes, the API already has support for this... theoretically. It is not used by any block or plugin because AFAIK no software actually uses it

Re: Snow Data support for API

Posted: Sat Dec 16, 2017 9:21 am
by weather display
weather display software does allow daily input of snow data
so that could be add to MT via the api ?

Re: Snow Data support for API

Posted: Sat Dec 16, 2017 10:12 am
by Jachym
This is a bit more complicated because it would have to be overwritten each time until midnight to get the value for the whole day. This would require changes in the api.php.

What exactly does WD report for SN and SD? Current values? Yesterday´s values?

Re: Snow Data support for API

Posted: Sat Dec 16, 2017 5:35 pm
by weather display
WD has ability for a user to input current and daily/month/season
yesterday snow is also available
WD can also read live a lazer snow level sensor

Re: Snow Data support for API

Posted: Sat Dec 16, 2017 6:05 pm
by Jachym
Yes, so what exactly is sent as SN and SD via the API? Daily as in "today"? "Yesterday" ?