Nexus6 wrote: Sun Sep 23, 2018 1:22 pm
Hi vortexya, I have raised it in the Weatherflow forum and I also agree... I thought Meteobridge should just forward / bridge what is reported by the Weatherflow hub.. If Weatherflow reports via hub to Weatherflow server 4.5 mm, I would expect Meteobridge forwarding the same.. or am I wrong?
Cheers
Maybe you are wrong.
The hub uses a
TCP protocol to upload the data to the WF servers. That is end-to-end checked including retransmissions when errors occur. The SKY data including the rain is uploaded once /minute. Calculations for "todays rain", "yesterdays rain", "rain-rate" and so on are done on the WF server.
But the hub uses also once/minute an
UDP protocol for the local listeners, in our case the Meteobridge .
If the receiving devices(MB) are not listening (doing other things) or there is a transmission error, that data packet is lost forever. For rain that is the rain in the last minute is lost forever.
When the MB does not receive a correct package, it will never now how much rain there was. All summaries will be slightly lower.
The
https://weatherflow.github.io/SmartWeather/api/udp/v94/ docs also specify a "Local Day Rain Accumulation " value but that has a "null" value.
I tested this evening using Wireshark and a browser showing the WF-API data, MB Live data tab and WF website.
It started to rain for a short period and the UDL packets contained following values (extra decimals removed) 0.044 0.022 0.013 0.011 0.013 up to a total of 0.105 mm.
The website received and displayed the same values as in the UDP packets and all data was on the WF dashboard also.
The MB did not increase its "Rain total" with 0.1 as it should have. I suspect because of the numerous network errors I saw also passing by in Wireshark, which was only checking the WF UDP port 50222.
IMHO, it is a design error to broadcast important data without any backup possibility. The UDP packet should contain a "total last 24 hours " or "running total since last reboot" for the rain value. The rain values are just to important to get lost. Missing an UV or solar value is no big deal as the next value is as good as the previous one. They do not change that fast. And there is no "total UV today" calculation. But a lost rain-measurement every few minutes invalidates todays rain, yesterdays rain, last month rain a.s.o.
I hope to catch some more rain tonight/tomorrow and report back here,
Wim