On Fri, Nov 25, 2016 at 11:04 AM, gustl319 <[email protected]> wrote:

> On Dekay Lib:
> A GETTIME command is always responded with the same static time (Januar
> 1st 2016 1:00:00).
> On weewx:
> getConsoleTime() gets an answer on GETTIME and causes no errors.
> getTime() corrects the time to time.time() + 0.5
>
> At the moment this works for me. But getConsoleTime() is also used for
> setting console_time. I think it would be good to move 'time.time() + 0.5'
> from getTime() to getConsoleTime(). But it has a different format and
> should only be used when the syslog entry is triggered.
>
>
​Ah! Now I understand.

Yes, alternatively getConsoleTime could be implemented as:

​    def getConsoleTime(self):
​        return datetime.datetime()

If you go this route, you should revert getTime()​ to its original
implementation.



> BTW is the offset '+0.5' neccessary?
>
>
​It's there to round the time to the nearest integral value. No, it's not
necessary.

-tk​

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to