-
I've just put everything together and the winder works with the control buttons. However, the "Cycle Start Time" function doesn't seem to be functioning. I have it enabled, but it does not start the winder at the designated time. I've triple checked my wiring and made sure everything else was correct. I think it may be a software issue? Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi mate, apologies for not answering sooner. I didn’t see a notification for this. That’s interesting. What time did you have it set for? I noticed a bug in the code for the cycle start timer earlier this week, and pushed a fix for it yesterday. Besides that, it could be that it isn’t detecting your locale correctly. It determines your time offset with an IP geo lookup… could’ve gone wrong there. It highly likely it’s a software bug, as there’s no wiring dependency for this to work.
This is where it gets your local time and syncs itself; the ESP32 has a notoriously inaccurate RTC: winderoo/src/platformio/osww-server/src/main.cpp Lines 122 to 139 in 3895e75
Lastly, this is where it determines whether to begin winding, when the timer is enabled: winderoo/src/platformio/osww-server/src/main.cpp Lines 537 to 546 in 3895e75 In the above, it’s asking
If all of these evaluate correctly, the winder should begin at your desired time. |
Beta Was this translation helpful? Give feedback.
-
Hey,
Thanks for the reply. I actually figured it out. It was the latter: the program seems to think it's in a different time zone. It is 17 hours ahead for some reason. Right now I've just adjusted the time accordingly and it's worked for the past 3 days.
To use your new code, should I re-flash the board?
…________________________________
From: mwood77 ***@***.***>
Sent: Monday, August 14, 2023 3:23:36 PM
To: mwood77/winderoo ***@***.***>
Cc: Whynolove ***@***.***>; Author ***@***.***>
Subject: Re: [mwood77/winderoo] Cycle Start Time Not working (Discussion #10)
Hi mate, apologies for not answering sooner. I didn’t see a notification for this.
That’s interesting. What time did you have it set for? I noticed a bug in the code for the time earlier this week, and pushed a fix for it yesterday.
Besides that, it could be that it isn’t detecting your locale correctly. It determines your time offset with an IP geo lookup… could’ve gone wrong there.
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BB2MM2ETGGKZC2UVS5DNNNDXVKQORANCNFSM6AAAAAA3KOWHZY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Are you behind a VPN? To fix the bug, pull the new code, then re-flash the code & file system to the board. The bug was in the frontend code, which is stored in the filesystem. |
Beta Was this translation helpful? Give feedback.
-
Nope, no VPN.
What was the bugfix?
…________________________________
From: mwood77 ***@***.***>
Sent: August 15, 2023 12:12 AM
To: mwood77/winderoo ***@***.***>
Cc: Whynolove ***@***.***>; Author ***@***.***>
Subject: Re: [mwood77/winderoo] Cycle Start Time Not working (Discussion #10)
That's very strange - are you behind a VPN or something?
________________________________
To fix the bug, pull the new code, then re-flash the code & file system to the board. The bug was in the frontend code, which is stored in the filesystem.
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BB2MM2D7ENABTNJYWCDIDHTXVMOMFANCNFSM6AAAAAA3KOWHZY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
When selecting the hour |
Beta Was this translation helpful? Give feedback.
-
This was an issue with instantiating the rtc using an epoch/offset. I've moved this to using local datestamp time in #49 |
Beta Was this translation helpful? Give feedback.
This was an issue with instantiating the rtc using an epoch/offset. I've moved this to using local datestamp time in #49