Snow Data support for API

Post Reply
User avatar
MonyMony
Forecaster
Forecaster
Posts: 192
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Snow Data support for API

Post by MonyMony » Mon Dec 11, 2017 1:05 pm

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
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Snow Data support for API

Post by Jachym » Mon Dec 11, 2017 9:20 pm

Hi,

check if meteotemplateLive.txt has data for SN and SD

User avatar
MonyMony
Forecaster
Forecaster
Posts: 192
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Snow Data support for API

Post by MonyMony » Mon Dec 11, 2017 11:20 pm

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}
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Snow Data support for API

Post by Jachym » Tue Dec 12, 2017 1:22 am

Right, ok, in that case however Im afraid it wont be possible

User avatar
MonyMony
Forecaster
Forecaster
Posts: 192
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Snow Data support for API

Post by MonyMony » Tue Dec 12, 2017 1:01 pm

I'm I correct that this is a limitation from WeatherCat and how it interacts with the API?
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Snow Data support for API

Post by Jachym » Tue Dec 12, 2017 11:46 pm

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

weather display
Observer
Observer
Posts: 27
Joined: Mon Oct 02, 2017 7:08 pm
Station model: Davis VP2
Software: weather display

Re: Snow Data support for API

Post by weather display » Sat Dec 16, 2017 9:21 am

weather display software does allow daily input of snow data
so that could be add to MT via the api ?
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Snow Data support for API

Post by Jachym » Sat Dec 16, 2017 10:12 am

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?

weather display
Observer
Observer
Posts: 27
Joined: Mon Oct 02, 2017 7:08 pm
Station model: Davis VP2
Software: weather display

Re: Snow Data support for API

Post by weather display » Sat Dec 16, 2017 5:35 pm

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
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Snow Data support for API

Post by Jachym » Sat Dec 16, 2017 6:05 pm

Yes, so what exactly is sent as SN and SD via the API? Daily as in "today"? "Yesterday" ?

Post Reply