OpenSprinkler › Forums › Comments, Suggestions, Requests › Request: Weather Adjustment Cutoff
- This topic has 6 replies, 2 voices, and was last updated 10 years, 7 months ago by
Ray.
-
AuthorPosts
-
September 26, 2015 at 10:51 am #40358
AnonymousInactiveI am currently using a WU station and a rain sensor with the Zimmerman method for adjustment. I would like an option to set a cutoff level. I.e., if the watering percentage drops below, say 20%, it will treat it as 0%. For me, it is just a waste if I’m running zones for just a few minutes. I’d rather not be turning my pump on and off that often.
September 28, 2015 at 9:11 am #40376
RayKeymasterThe firmware already cuts off at 10 seconds (i.e. if the adjusted water time is 10 seconds or below it converts it to 0). Do you want to set a cutoff based on the adjusted time, or the watering percentage? You could have a situation that the watering percentage is 20%, but the adjusted water time is still significant (more than a few minutes).
September 29, 2015 at 8:13 pm #40393
AnonymousInactiveI see what your saying. I guess I was just thinking percentage, since that is what’s already used. In my case 10 minutes makes more sense than 10 seconds, but I’m sure would be different for others.
October 19, 2015 at 9:17 am #40566
AnonymousInactiveI see what your saying. I guess I was just thinking percentage, since that is what’s already used. In my case 10 minutes makes more sense than 10 seconds, but I’m sure would be different for others.
Is there somewhere I can change the cutoff time? I’m not afraid of editing some code if I know where/how to do it.
October 22, 2015 at 8:25 am #40583
RayKeymasterIf you want to add a cutoff for the watering percentage, this is probably the best place:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/weather.cpp#L84
this is where the watering percentage received from the weather server is parsed and saved.If you want to add a cutoff for the actual water time, here is the best place:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/main.cpp#L401
this is where the station’s water time is multiplied by the watering percentage, and scheduled into the work queue.October 27, 2015 at 7:31 pm #40628
AnonymousInactiveif (prog.use_weather) { byte wl = os.options[OPTION_WATER_PERCENTAGE]; water_time = water_time * wl / 100; if (wl < 20 && water_time < 10) // if water_percentage is less than 20% and water_time is less than 10 seconds // do not waterSo if I change “if (wl < 20 && water_time <10)” to “if (wl < 20 && water_time < 600)” that would make it not run if percentage was less than 20 AND less than 10 minutes (600 seconds)?
November 1, 2015 at 11:00 pm #40653
RayKeymasterThat’s correct.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Comments, Suggestions, Requests › Request: Weather Adjustment Cutoff