OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Possible Bug : Negative Integer

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35265

    baldacchino
    Participant

    Hi Guys,

    I use OpenSprinkler with automation system in my house. To add even more smarts to OpenSprinkler I have disabled all of the functions and just use the HTTP GET’s to activate my zones. I do this as I take a lot more information in to consideration such as rainfall in the last 48 hours, humidty and what the weather forecast is.

    Based on this I then make a call to Opensprinkler which looks similar to

    http://” & OpenSprinkler & “/sn” & Zones(intcount) & “=1&t=”& (ZoneRuneTime(intcount) – args.Item(2)) * 60

    Which translates to

    http://IP_Address/sn(x)=1&t=numberofseconds

     

    If number of seconds is a negative value it just runs for ever.

    Whilst I fixed my coding error it would be great if negative values aren’t allowed.

     

    Shane

     

    The other night I made a coding error and then discovered a wet front yard as I had an infinite run time

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Possible Bug : Negative Integer