OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › OSPi Incorrect Logs. › Re: Re: OSPi Incorrect Logs.
Dan in CA
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