Read the statement by Michael Teeuw here.
MMM-Multimonth
-
Hello everybody!
A few months ago I installed MMM-Multimonth. It worked without problems but lately it behaves strangely. The date does not change at 24.00, it change at 12.00. I did not change anything in the configuration. Has anyone had this problem before?
Thanks,
-
@george That is an odd one. I’m not experiencing that one myself. It might be a cache issue.
By the way, I’m the (co) author and the maintainer.
I’ll look at it to see if there’s a reason, but I’m not sure why it would happen.
-
@bkeyport I did some checking, and MMM-M sets up the trigger to reset at 0 hours, 0 minutes, 0 seconds every day, so it’s not something I can fix. Do you have your system clock off from the Mirror’s clock or something like that?
-
@bkeyport , The watch is ok. Yesterday I restarted it in the afternoon and now it works correctly. When I restarted it in the morning, the date did not change correctly. Could this be a problem? I use this calendar in two mirrors. I restarted the second mirror last time in the afternoon and it works correctly.
-
@george I honestly don’t know. Let’s summon some help here - @sdetweil - can you explain this situation above?
start: function (){ var timer = setInterval(()=>{ this.updateDom() }, moment().add(1, 'days').hours(0).minutes(0).seconds(0)-moment()) },
it seems to me this would work to reset at midnight, but according to George here, it’s not working - can you help me figure it out, or summon in someone that can?
Thanks.
-
@bkeyport that will fire a day from now. whenever now is…
-
@sdetweil Thanks.
@George I think I got a solution, it’s working on my end.
To test - on your pi’s console (preferably from SSH so you can watch the Mirror’s screen) :
update the software:
cd ~\magicmirror\modules\MMM-Multimonth git pull
Restart your Mirror software via whatever method you use to load it. (Example:
pm2 restart mm
)timedatectl set-ntp false
You’ll have to authenticate. On my system, the usual login is #1.
Then,
sudo date -s "23:59:00"
Watch your Pi Mirror screen, it’ll switch to a minute before midnight, and track. At midnight, it should move the highlight to the next day.
sudo date -s "11:59:00"
Watch again, it shouldn’t move to the next day at noon.
timedatectl set-ntp true
This will reset your time & date to correct time again, and resume normal operation. Like the above operation, you’ll need to authenticate.
That way you don’t have to stay up. :)
Please let me know.
-
@bkeyport , work, thanks, good job! :)
-
@bkeyport , hi, after you made the last change to the module, I deleted it and installed it again. Everything was OK. A few days ago, I restarted the mirror. It’s been a day late since then. If I restart it in the morning (am) it’s ok. The problem occurs if I restart it in the afternoon (pm).
-
@george Odd. I didn’t change anything except add a file for MMM-Config. I’ll look at it.
Confirmed. Nothing changed, nothing I can do can make it break.
@sdetweil @cowboysdude @Mykle1 – anyone wanna help with this? Please? I’m pretty sure at this point it’s not my module.