Question: Help formatting HTTP service for Opensprinkler Weather Service

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
bekesizl
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Wed Apr 21, 2021 5:33 pm

Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by bekesizl »

After the death of an SD card on my Raspberry Pi running WeeWX I decided to give Meteobridge a try.
I was surprised how well it worked out.
I own my weather station since last summer. The dedicated hardware versions were to expensive for me, but the cost for this RPi version is reasonable.

Until my SLC card arrives, I wanted to set up the trial version to feed my Opensprinkler Weather Service running on another RPi.
The Official Meteobridge forum didn't allow me to register with a gmail e-mail address, so I try it here.

I added following as a HTTP event.
Temperature and Humidity gets through to the service, but rain data doesn't.

Code: Select all

http://192.168.1.25:80/weatherstation/updateweatherstation.php?tempf=[th0temp-act=F.0:0]&humidity=[th0hum-act.0:--]&rainin=[rain0total-sum1=inch.0:0]&dailytainin=[rain0total-sumday=inch.0:0]&dateutc=now
Here is the article about the format.
https://github.com/OpenSprinkler/OpenSp ... rotocol.md

Here is an example from above site:

Code: Select all

https://<Local Weather Service IP:Port>/weatherstation/updateweatherstation.php?tempf=70.5&humidity=90&rainin=0&dailytainin=0.54&dateutc=2000-01-01+10%3A32%3A35
Here is, how rain data should be formatted:
rainin 0.34 Accumulated rainfall in inches over the last 60 min
dailyrainin 1.45 Accumulated rainfall in inches for the current day (in local time)
An Ecowitt GW1000/Froggit DP1500 is attached with a Froggit WH3000SE is feeding the data.
It was raining today and I see rain data on Meteobridge.

Could somebody help me to get the formatting of the rain data right?
andlil
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Jan 20, 2018 1:13 pm

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by andlil »

dailytainin?
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by Mattk »

andlil wrote: Wed Apr 21, 2021 11:45 pmdailytainin?
Explain please?
andlil
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Jan 20, 2018 1:13 pm

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by andlil »

Mattk wrote: Wed Apr 21, 2021 11:59 pm
andlil wrote: Wed Apr 21, 2021 11:45 pmdailytainin?
Explain please?
There is most likely a typo in the URL provided, both in the example and the URL OP is using, just guessing that it should be dailyrainin and *not* dailytainin...
bekesizl
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Wed Apr 21, 2021 5:33 pm

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by bekesizl »

With an approved memory card I was able to make some test runs with a html file, where I was able to see the results.

I changed the code to following, where rain data is also a floating point number.
It was accepted by the service, but I also changed the "dailytainin" to "dainlyrainin".
I might have to wait another day until the service gathers enough data to see, if the changes were successful.
I will submit new results.

Code: Select all

http://192.168.1.25:80/weatherstation/updateweatherstation.php?tempf=[th0temp-act=F.1:0]&humidity=[th0hum-act.0:--]&rainin=[rain0total-sum1=inch.2:0]&dailyrainin=[rain0total-sumday=inch.2:0]&dateutc=[UYYYY]-[UMM]-[UDD]+[Uhh]%3A[Umm]%3A[Uss]
bekesizl
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Wed Apr 21, 2021 5:33 pm

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by bekesizl »

It was that typo that caused my problem.
The weather service for the sprinkler is now up and running.

Thank you!
andlil
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Jan 20, 2018 1:13 pm

Re: Question: Help formatting HTTP service for Opensprinkler Weather Service

Post by andlil »

bekesizl wrote: Fri Apr 23, 2021 8:04 pm It was that typo that caused my problem.
Great that it worked, I fixed the typo in the source on Github as well.

//A
Post Reply