New WiFiLogger Parser
Pinned FeaturedI just wrote a custom parser to read data from WiFiLogger device connected to Davis Vantage Vue. I currently have this set to read every 10 minutes. What is the recommend schedule to read from a PWS?
-
Hi George,
That's great, we usually recommend at least 1h refresh time for a parser since the RainMachine Mixer that sets the final results runs hourly. You can get data every 10 minutes but it only be read by the RainMachine Mixer in hourly intervals.
But if you want for example to use this parser as a hardware wifi rain sensor you can let it run every 10 minutes and if rain is detected execute an API call to snooze the device.
If you would like to share your parser with others or get help with code you can use https://github.com/sprinkler/rainmachine-developer-resources to make a fork and issue a pull request after you added your parser.
Also with current beta we've added a new API call: POST parser/data which can be used to feed RainMachine with weather data from an external source (for example Weewx or Cumulus software). Let me know if you need more information about this.
-
thank you, I'll get a pull request in this week...
regarding using the weather station as a rain sensor, is it possible to do this through the "rules" engine. I would love more info/documentation on that feature. I can think of many use cases for the rules engine... rain, high wind, high temp...
-
I have my code working to identify if it's raining outside from the Davis weather station. It's working great. How do I call the API to snooze the water programs that have been setup? I guess it's like the Freeze Protect function. I could not find any examples with existing plug-ins.
-
Probably the easiest way (from your parser which runs on the same machine as main code) would be to send a POST request to http://127.0.0.1:18080/api/4/restrictions/raindelay with body a json {"rainDelay": <nr of days>}
Please sign in to leave a comment.
Comments
5 comments