Ambient Weather Parser
Pinned FeaturedI made a parser for ambientweather.net which has been working for me, so I figured I'd release it so there's another PWS source option besides WUnderground.
-
Ok, So i am confused... In the 'data' charts for the ambient parser i am showing that it does show properly the 0.02" of rain we just got a little while ago. However the rainmachine mixer is showing '0'. If i enable NOAA it showed 0.04, so i am still not sure it is working properly, or i am just not understanding.
i am presuming on the main dashboard precipitaion should show the actual plus forecast for rest of day? I guess i can understand it being 'higher' but not under? if the ambient is showing 0.02 how can the precipitation on dashboard show 0.00?
-
Umm.. i just rebooted the rainmachine to check something and noticed that the ambient weather parser is no longer installed. Do these custom parsers get removed on a reboot ??
I reuploaded it and the data was still there, but i had to reupload the parser. FYI.
to answer my question which i guess is just me understanding how the system works, the precipitation field on the dashboard is not 'actual+forecast', it is just a forecast and only uses forecast data. thus even if it rains 1" but the NOAA is showing 0.5" the precipation field will show 0.5 because that is the forecast data. I think i noted this before but i really think that for the 'current day', the precipitation record should reflect actual rain amount if 'higher than the forecast.
-
Nicholas, i understand but the 'graph on the dashboard seems like it should reflect 'yesterday' as the accurate rain, not the QPF since it already occurred. that is my point.
So for instance, Thursday it rained - 0.85" and Friday Morning 0.19" so far.
on the graph, Thursday (now yesterday) is showing = 0.14" which is the reading from NOAA. ironically during the rainstorm yesterday it updated to show 0.55" but now updated down to 0.14".
So although the 'data in weather services , Rain (QPF) and Rain (Observed) seems to show the proper results (NOAA not really accurate but whatever its supposed to be a forecast) from their respective sources NOAA and Ambient Weather, the dashboard chart should be revised so 'yesterday' shows Observed, in my opinion and not QPF. Today i still believe should be a formula to show at the least the observed data, PLUS any forecast upcoming. so if itis forecast to rain 0.25 and already rained 0.5, it would show 0.5 since that already is known. just my thought on this...
-
I got this working on my Pro :). sorry, I am not a programmer, but here is what worked. Logged into local IP of rainmachine, using windows 10. using notepad you can use " " around the name to stop microsoft from forcing the txt format. . If I saved as a PY file it would fail to upload. Just for the hell of it, I pointed the Rainmachine at a .txt file that did not have the mac, api or program keys filled out and IT WORKED!!!
Then in the User uploaded section the rain machine shows "Custom:Ambient Weather Network"
It also showed 3 new fields for both keys and mac address. added requested data, saved, enabled and now I am retrieving weather direct from my weather station.just in time, rain season is finally starting and my system keeps giving me errors on weather underground (put url from log in my browser and I can see the error, and it is coming from weather underground.). anyway, thanks for making this Seth.
-
Its been working great, I even see rain observed in screen for both noa and ambientweather. Than around 17:00 last night something caused my system to reboot, now the parser is gone.
I reinstalled it, than rebooted system from GUI and again, parser is gone.
when I reinstall the parser it still remembers the MAC address and keys.
I see WU now requires new API keys so I wonder if they fixed the problem where the website answers with an error most of the time? I would rather use this parser.
and rain season just started in Central FL so now is when I need this.
-
Seth, great job on getting this parser written. I had my station linked to Weather Underground, but that suddenly stopped working on May 20th with no explanation. I have a Pro-16 RainMachine and an Ambient Weather WS-1002. I did have to login through the units IP to get the upload to work. I can see the values updating, so all seems OK. I did have a question related to how the weather station input is handled in RainMachine and it's related to a comment made earlier in this thread. Something was said about the rainfall from the station being applied to the previous days mix. We had a shower on Sunday and I saw this looking at the rain graphs. I don't understand how that works. I can see in the log that each update from the station appears to update some values in RainMachine. I'm hoping that, for example, if I'm scheduled to run my sprinklers 100% starting tomorrow morning(that's around 1am for me) and I get an 1'' of rain before that sprinkler cycle runs, that RainMachine will show a surplus and not run the cycle. Does each update from the weather station immediately impact the necessary watering. Our water supplier requires us to stay on a specific schedule for watering. Right now that's twice a week from 12am-10am and 7pm-11:59pm and I have RainMachine programmed with those restrictions. I'm hoping to convince the water company to allow me to remove those restrictions if I'm using RainMachine. I need to understand what's going on to convince them. Any insight would be appreciated. Thanks again for the parser.
-
so rainmachine mini8 just updated to v 4.0.993. It obviously rebooted, and my weather parser was not there anymore. After reuploading the parser, i didn't have to re-enter the config info, it was already there, so simply reuploading the parser brings it back, but just need to be careful after rebooting it does remove it (at least for me).
-
my Pro 8 did the the same thing when it updated yesterday, it lost the Parser. Had to reinstall it. It also think it might loose any weather history (IE Rain that came down) when this happens. and I am about to go on vacation and would really like to just go away and not worry about it
-
I'm either seeing bad gateway or timeout/no response.
HTTP/1.1 502 Bad Gateway
Date: Mon, 30 Mar 2020 14:38:01 GMT
Content-Length: 0
Connection: closeI use a tool called Paw (https://paw.cloud) for dev work with API interfaces, and it's failing in there outside of the rainmachine environment which means I have no reason to think it's a rainmachine related problem, likely just ambientweather.net having problems.
-
Looks like the only "help" are private Facebook groups and I don't really feel like going that route, but if someone is brave enough they're linked here: https://help.ambientweather.net/help/community/
-
Ambientweather.net is indeed having issues. They've been posting a warning about the problems, but as of this morning, I don't see the warning anymore. I am, though, seeing the same errors in my log. My home automation system also reads data from ambient weather.net and it is having issues as well. I'm sure this is on Ambient's side.
-
We are having an issue with Cloudant / IBM. They are not being responsive, likely COVID-19 related so we will be moving off their servers over the next week. It is the only feature that is still on the Cloudant platform.
I am sure, just like everyone else, they are stressed to the limit due to the virus.The above was taken from their FB group.
-
The error is coming from self.openURL which is part of the library, not the parser itself. I don't see anything wrong with the parser I wrote at this stage, but simply that the API URL is not completing the connection. It looks like they're using Cloudflare so it's possible cloudflare has decided requests from the rainmachines themselves are "bad" in some way but I have no way to determine that. I changed the code on mine to show the error from the rainmachine library instead of the static error message and now I see: "Retrying: URL open fail"
Clearly something changed on Ambient Weather's side but at the moment I can't see what or why it works from my dev test tools but fails from the rainmachine itself.
Please sign in to leave a comment.
Comments
99 comments