This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iteration running too slow
#8
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 !
Reply


Messages In This Thread
iteration running too slow - by macr023 - 2022-04-04, 08:32 PM
RE: iteration running too slow - by macr023 - 2022-04-05, 02:15 PM
RE: iteration running too slow - by stelian - 2022-04-05, 08:45 PM
RE: iteration running too slow - by macr023 - 2022-04-05, 09:39 PM
RE: iteration running too slow - by seandepagnier - 2022-04-06, 01:38 AM
RE: iteration running too slow - by macr023 - 2022-04-06, 03:04 AM
RE: iteration running too slow - by seandepagnier - 2022-04-06, 06:18 AM
RE: iteration running too slow - by stelian - 2022-04-06, 09:02 AM
RE: iteration running too slow - by macr023 - 2022-04-06, 02:19 PM
RE: iteration running too slow - by stelian - 2022-04-06, 02:19 PM
RE: iteration running too slow - by macr023 - 2022-04-06, 04:03 PM
RE: iteration running too slow - by stelian - 2022-04-06, 04:11 PM
RE: iteration running too slow - by macr023 - 2022-04-06, 06:08 PM
RE: iteration running too slow - by stelian - 2022-04-06, 06:31 PM
RE: iteration running too slow - by seandepagnier - 2022-04-07, 02:14 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)