OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) OSPi Incorrect Logs.

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22635

    djagerif
    Participant

    Hi Dan,

    I noticed that my logs incorrectly reflect the running times as per my actual programs. See below where all my programs seem to en at exactly the same time.

    Program Zone Duration Finish Time Date
    4 S32AABBCCDDE 15m0s 06:00:01 Fri. 13 Sep 2013
    4 S30 15m0s 06:00:01 Fri. 13 Sep 2013
    3 S03 15m0s 06:00:01 Fri. 13 Sep 2013
    2 S02Pi 15m0s 06:00:01 Fri. 13 Sep 2013
    1 S01OSPiLongN 15m0s 06:00:01 Fri. 13 Sep 2013

    I have 4 programs, each running at 15 minute intervals but the Log shows them finishing at the same time.

    Here is P2 running at the moment. It should have logged P1 finish time at 06:15 but it didn’t.

    Firmware version: 1.8.3
    Device time: Fri, 13 Sep 2013 06:28:06 UTC+2:00
    CPU Temp: 49.8°C


    Program Preview Stop All Stations Run-Once Program

    Station Status:

    S01OSPiLongN: (closed)
    S02Pi: Running P2 (01:55 remaining)
    S03: (closed)

    Waiting the 1:55 of P2 to finish produced this:

    Station Status:

    S01OSPiLongN: (closed)
    S02Pi: Running P0 (00:00 remaining) <- Strange this one and also No Log entries at this point in time. With "Device time: Fri, 13 Sep 2013 06:31:31 UTC+2:00" already. Also P0? Should be P2.
    S03: Running P3 (14:22 remaining)
    S04: (closed)
    S05: (closed)
    S06: (closed)

    Ingo

    #25530

    Dan in CA
    Participant

    Hi Ingo,

    I have not been able to reproduce the log error you describe.

    I ran 4 programs @ 15 min. ea. and the times show correctly.
    [attachment=0:3irvykz3]Log-9-13.jpg[/attachment:3irvykz3]

    One time related change that was made recently was to add a new var (gv.now) which is used for current time throughout the program including the log function. Its value is created from the Pi’s UTC time and adjusted by the time zone setting from the Options page. It is updated once per second at the top of the main loop.

    In the log function the finish time is added as:
    time.strftime(“%H:%M:%S, %a. %d %b %Y”, time.gmtime(gv.now))+’n’
    which gives the current time.

    Dan

    #25531

    djagerif
    Participant

    I am getting this at the moment. In the second one I have all three stations running.

    Ingo

    #25532

    Dan in CA
    Participant

    Ingo,

    I made a couple of changes to the way Station status is displayed and pushed the update to GitHub.

    See if it works better for you.

    I still haven’t seen the problem of a run not being logged.

    Dan

    #25533

    djagerif
    Participant

    Dan,

    Still the same. I think the issue is with the new concurrent mode. In sequential mode it works fine.

    Ingo

    #25534

    chochy
    Participant

    I ‘m also having the same problem as djagerif. I’m running in concurrent mode.

    #25535

    Dan in CA
    Participant

    I just pushed an update to GitHub with a fix.

    Dan

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) OSPi Incorrect Logs.