2022-04-06, 09:02 AM
Hi macr023,
I think the weird time was caused by the gethhmmss() method in sensors.py: we are using datetime.datetime.now() -- which returns the local time.
GPS is supposed to return time in UTC.
Can you please just replace that call by: datetime.datetime.utcnow() , and of course put back the lines you removed, and test again.
Please report if the time is handled corectly, and if you still see the slow iteration messages.
Thanks !
I think the weird time was caused by the gethhmmss() method in sensors.py: we are using datetime.datetime.now() -- which returns the local time.
GPS is supposed to return time in UTC.
Can you please just replace that call by: datetime.datetime.utcnow() , and of course put back the lines you removed, and test again.
Please report if the time is handled corectly, and if you still see the slow iteration messages.
Thanks !