Read the statement by Michael Teeuw here.
MagicMirror using the wrong time
-
@sdetweil
Locale is:

-
@blissb great info!!! thanks.
this sounds like a bad moment lib. -
@blissb can you show me the list of active modules, in the order in config.js
thx
-
Is there an easier way to get them other than just scrolling through the config.js?
Modules in order:
alert
clock (correct after adding the timezone: option)
calendar
weather (Sunrise time is also 5 hours off - sorry if I failed to mention that earlier) -
@blissb you could grep for ‘module:’
-
@sdetweil
Doh!

-
@blissb I can’t tell you how many times I do that in a week! 😆
how did you upgrade mm?
-
@sdetweil I have a script that moves the MM directory to backup, gets rid of the various package-lock.json files, then does a git pull && npm install --only=prod --omit=dev
-
@blissb ok. see these
https://github.com/sdetweil/MagicMirror_scriptsand
https://github.com/sdetweil/MagicMirror-backup-restore
I’m wondering if the npm install in the vendor folder failed. that is where moment is loaded
the fact that clock and weather and calendar are all messed up., is pretty interesting
-
I renamed the MagicMirror directory, and re-installed using the install script – iirc that’s what I used initially.
Sadly, no change.
Giving up for now – may poke at it more tomorrow. Thanks again.
-
@blissb would you be willing to share your config.js, send to me as a text file
same userid as here, at gmail
-
I think I can do that. I’ll send it after work.
-
-
If this is a red-herring / rabbit-hole, I apologize in advance. I haven’t done any javascript in 10+ years… all this is sorcery to me. :beaming_face_with_smiling_eyes:
I configured it to allow remote access via a browser on my desktop machine. On the pi running the newer (wrong time) version of MM, the browser displays the correct time, while the pi displays the wrong time. That’s kind of fascinating to me… clearly the browser is calculating the times on its own.
-
@blissb yes, someone else reported similar issue
the Midori/Firefox only work if the start line is changed in package.json
-
@blissb would you be willing to send me one of the extracted ics files
curl -sL the cal_url >somefile.ics.txtbecause those are the ones causing the shift problem…
I want to see how the ICS is codedsame email ias the config
-
@sdetweil I sent the ics file – forgot to rename it with .txt. Let me know if I need to resend.
B
-
@blissb I have it. need to test.
-
@blissb i can’t recreate it on any system…
if you’ve got time, could you make another sde card and reinstall mm using my script?
and use your config.js -
@sdetweil Just wanted to let you know, I’m working on this between other tasks. I’m also prepping for the Thanksgiving holiday tomorrow, so if I don’t get it finished tonight, it may be Friday before I get back with you.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
