Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Average Water Level > 100% #63979

    vk2tds
    Participant

    Hi Ray

    Thanks for this. And sorry for the delay. I wanted to check the fix I came up with and see how well it worked. Once again, great work on OpenSprinkler. The more I use it, the more I really do love it.

    In order to fix my issue with the weather algorithm providing greater than 100% (and in fact up to 200%), I have made a single line modification that is working for me. Rather than implementing a different weather algorithm, I have modified my code for getweather_callback() in weather.cpp. This is working really well for me, and dropping the water usage as appropriate.

            if (wt_errCode==0 && findKeyVal(p, tmp_buffer, TMP_BUFFER_SIZE, PSTR("scale"), true)) {
    

    v = atoi(tmp_buffer);

                    if (v > 100) v = 100; //vk2tds: Regardless of the value returned, limit it to 100%
    

    if (v>=0 && v<=250 && v != os.iopts[IOPT_WATER_PERCENTAGE]) {

    I just wanted to close the loop, and let others who may have this issue how I solved it. Thanks

    in reply to: Average Water Level > 100% #63829

    vk2tds
    Participant

    Looking through the code, it appears that Zimmerman can be between 0 and 200%. The manual doesn’t document the extents.

    For me, a configuration limit for the computed % Watering factor would be great, so that I could configure it. I could set it at a max of 100% with 15 minutes of watering or a max of 150% with 10 minutes of watering, and comply with the local water restrictions. I am happy to do the coding if that helps.

Viewing 2 posts - 1 through 2 (of 2 total)