Forum Replies Created
-
AuthorPosts
-
Jonas ArndtParticipantHi Zenonm,
Yes, when I have my python script changing the water level using the API the GUI reflects that. We had rain here for 2 days and this morning my watering level was set to 0%. I update the watering level at 4 AM in the morning and 10 PM in the evening.
Jonas ArndtParticipanthttp://<ip/host>/co?pw=<md5hashed password>&wl=<integer>
Jonas ArndtParticipantI ended up getting rid of the weather-service. The weather station sends stuff out on a radio frequency that can be intercepted. I then dump it on an MQTT bus. Then I use some Telegraf service that dumps it into InfluxDB. Then I have a Python script that:
1. Queries InfluxDB for 24h data
2. Calculate Zimmerman
3. Use the API to set the watering levelI run this twice a day. All good, problem solved.
Jonas ArndtParticipantHi Walderama,
No answer. I switched to update every hour and it seems to have made things better. The thing is that I live in Colorado and the way we typically get rain here is like events. We don’t get the trickling rain for days that you can see in other places. It seems to me that if we have multiple rain events the same day it becomes inaccurate, but that’s more of a gut feeling than anything else. I have tried to look at the code but it is solving a lot of stuff for different situations and configurations, which makes it a bit complicated to follow. I am thinking about simply implementing Zimmerman in my own python script that currently is extracting the data from Influx and feeding it to the weather service. Then I can set the watering level manually via APIs.
Jonas ArndtParticipantIt seems there is not a lot of knowledge in this area and I am still scratching my head. I am now updating every 5 minutes and that is wrong! The issue I am getting is that when I send along rain for 24 hours and 1 hour every 5 minutes the weather-service is somehow adding it up incorrectly. I get 3.84 inches in the Opensprinkler GUI (System Status) when in real life I just had 0.685 inches over the last 24 hours. I will switch to updating once an hour and report back
Jonas ArndtParticipantAnother thing that is not completely clear is if temp and humidity should be live values or average over some time. The dailyrainin and rainin properties are well defined, but for tempf it just says “Outdoor temperature in fahrenheit”. It is somewhat confusing to have to average out measurements for two properties but not for the rest. Should tempf be the value that comes in from the weather station at that time, or should it be the average value over 24 hours? Same question for humidity
-
AuthorPosts