Read the statement by Michael Teeuw here.
Input...What do you think?
-
Hot off the presses … Swedish translation :) Thanks again @Snille
[If anyone would be kind enough to do the German translation I’d appreciate it!! PM me!]
-
@barnosch said in Input...What do you think?:
Looks very nice.
The german translation seems to be wrong ;) and not even added to the MMM-NOAA.js
Guess your are still in the middle of development.
Added it myself but it is not working yet.
Also i would like a 24hours setting, if possible.Thansk for your work
PS: is this correct in the default settings? Guess not.
show: "F".toLowerCase(), // show F or C Temps
Done… in the config file it’s
format: "12" or "24"
-
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.
-
@cowboysdude Ah, Thank you! Looking good. I’ll pull when I have some time. :)
-
@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.
No you did great but I will put in a fix for it and you can do a git pull later :)
Ok the fix is in… the time will automatically read your language in the config.js file and adjust itself accordingly… However you will want to keep your sunrise/sunset ‘fix’ for now because I did not change that. :)
-
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. :)