-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect localTime when enabling countdown #4197
Comments
What makes you think Scrolling text will display countdown? |
It used to in previous versions I've had other people test. Looks like it has not worked for a few versions. Unless you have instructions on how to make the countdown timer work. |
I am the author of Scrolling text effect and I know I never implemented "coundown" of any kind. 😄 |
But if you developed it then it must be a different item or setup. But I guess it needs to be a feature request then. |
@HackerShurf It is actually working if you play with the date ( the calculation is wrong though ) but scrolling text will do countdown , feature it is but it is a bug Countdown_b6_FIX.mov |
"countdown mode" is actually a feature of the "analog clock overlay". This is an overlay effect for 1D rings. So it has no relation with 2D scrolling text. |
then this is a bug? if its just for analog clock overlay it should not change the behaviour of scrolling text IMHO. A good fix would be to allow it in scrolling text instead of braking it. |
@DedeHai I wouldn't say it's a bug, but a feature that could be added to scrolling text. Right now I have no idea which "tag" could be used - maybe append a "Z" so that "#MMDD" shows month and date, but "#MMDDZ" shows countdown months and days. I wouldn't change the display automatically based on a checkbox in time settings - this relation would be hard to understand for users who are running their digital clocks with WLED. |
isn't that what it is currently doing i.e. what the issue was opened for? |
Scrolling text is displaying |
With my none existing experience I have gone over ntp.cpp and that is not a code but all math . Please do not close this , marked it any way you like and if code correction is not possible then I will plot multiple dates and will provide an accurate value to use in ui to get scrolling text to do the count down at least for date . If you see that as a silly way of doing it then I agree and please do not shot the messenger as myself and DedeHai do not use it and this is the first |
After a few tests the countdown TIME seems to work fine. The DATE is offset by 1.1.1970. I also found that during effect transitions the localtime is displayed instead of the countdown time. (flickering) |
This is my thinking as well since it globally effects the time/other effects. |
I see two solutions: personally I prefer option a). This "bug" of countdown mode changing the global time has been present for a long time and apparently there were no requests to fix it up to now. It will not break any existing setups and makes it easy to display a countdown. |
It might also make sense to add (or chage the meaning of) some tags. e.g. having #DDDD display the total days so target instead of days to end of month requiring the display of month and years in addition. I'dd prefer a) as well. |
|
What happened?
When I set the feature to turn on the countdown timer it sets the date to some time in the 1970s
To Reproduce Bug
Turn on the NTP
set to scrolling text
let it establish the correct time and date
Turn on countdown timer option with any date in 2025 I was using august 25, 2025
Expected Behavior
To show a count down timer to the date
Install Method
Binary from WLED.me
What version of WLED?
0.15.0-b6
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: