Read the statement by Michael Teeuw here.
Input...What do you think?
-
This post is deleted! -
@cowboysdude Looking forward to this but it should be prognos and not prognås right? In the swedish translation.
-
@planet4 “Prognås” is my bad… :) Sorry… You are correct. I thought it looked strange. :)
-
@barnosch said in Input...What do you think?:
Thanks. I already fixed it at my mirror with
(config was already in 24hours mode)
changeing this line// time = time.toLocaleString('en-US', { hour: 'numeric',minute:'numeric', hour12: true }); time = time.toLocaleString('de-DE', { hour: 'numeric',minute:'numeric', hour24: true });
which did the job
And for the sunset and sunrise i just changed to
H:mm
Ugly and hardcoded but worked for me. with my low programming skills.
How is the correct way to update the repository via git? I’m kind of new to this stuff.
Ok so it’s all updated.
As I said above the time zone will adjust automatically and to show the AM/PM on the Sunrise/Sunset time is now a config option [See Readme on Github].
To update go to:
~MagicMirror/modules/MMM-NOAA
type: git pullThat should update for you ;)
-
@cowboysdude Hmm… I’m thinking maybe you are working double here… There should be a “global” locale variable you can use. That’s set in the top of the config file. You should be able to use that one some how. I just don’t know how. :)
-
@Snille said in Input...What do you think?:
@cowboysdude Hmm… I’m thinking maybe you are working double here… There should be a “global” locale variable you can use. That’s set in the top of the config file. You should be able to use that one some how. I just don’t know how. :)
Not sure either :) So what I did was to use the ‘language’ and ‘format’ from the top of the config.js file because it was there … HAHA. So I took advantage of this:
language: 'en', timeFormat: 12, units: 'imperial'
If something comes to mind please feel free! Always looking for a better way :) Honestly I dislike making config options … too many is not a good thing I think.
-
@cowboysdude you can access the global config by
config.timeFormat
instead of the local module configthis.config.timeFormat
-
@strawberry-3.141 said in Input...What do you think?:
config.timeFormat
Thank you for that!!! One config option gone :) There now the time function is all automatic :) ALL controlled by the users input here:
language: 'en', timeFormat: 12,
Ok I’ve had my tea and toast so I must head out the door for the day :)