Irrigation Last & Next Run time

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by 7iron, Mar 10, 2012.

  1. 7iron

    7iron

    Joined:
    Dec 18, 2008
    Messages:
    59
    Likes Received:
    0
    Location:
    Melbourne
    Hi

    I've got a Iriggation Manager schedule that runs every 3 days. Wondering how I can display the last time an irrigation manager schedule ran and the next time its due to run ??

    I
    Thanks
     
    7iron, Mar 10, 2012
    #1
  2. 7iron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    There is no in-built way of displaying the last time that the irrigation ran. You can do it by creating a couple of user system IO variables and using logic to store the date and time that the irrigation last started in them:

    Code:
    once GetBoolIBSystemIO("Irrigation Running") then
    begin
      SetIntSystemIO("Irrigation Day Last Ran", Date);
      SetIntSystemIO("Irrigation Time Last Ran", Time);
    end;
    These system IO variables can then be displayed on a page.

    The next due time can be displayed using the schedule in-built system IO variables "Schedule Day Text" and "Schedule Time Text". You will need to select the schedule (in-built system IO "Schedule Number") which triggers the irrigation so that these display the data for the correct schedule.
     
    Darren, Mar 11, 2012
    #2
  3. 7iron

    7iron

    Joined:
    Dec 18, 2008
    Messages:
    59
    Likes Received:
    0
    Location:
    Melbourne
    Many Thanks Darren

    Got the logic working - thanks

    Need to to work on the schedule I/O stuff
     
    7iron, Mar 12, 2012
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.