Change Weather units #48
Replies: 6 comments 7 replies
-
|
The weather information is derived from default |
Beta Was this translation helpful? Give feedback.
-
|
Hmmm... This is very weird. Can I see your config of the weather module (without your private key)? Because there is no conversion logic between imperial/metric in this module. This module only shows the data from the weather module directly. |
Beta Was this translation helpful? Give feedback.
-
| Hmmm... With my test, the unit of temperature is coming from the weather module directly. |
Beta Was this translation helpful? Give feedback.
-
|
I uploaded // GOTO MMM-CalendarExt3 directory
git pull
git checkout temp_testThen go to MM directory npm run start:dev
You can see I modified the codes to spit out some more information there. Check |
Beta Was this translation helpful? Give feedback.
-
|
As you can see the dev-console, original weather information from API itself seems set as metric unit (9.5 and 2.72 : max/minTemperature) So nothing wrong on my module. But I don’t know why the weather module could show Farhenheit with Celcius data. |
Beta Was this translation helpful? Give feedback.
-
|
This was fixed in MagicMirror² core with PR #3519 (released in v2.29.0, October 2024) 🙂 |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
I have the weather module all configured, and it shows imperial units, but when I show the weather information on the calendar it all seems to be in metric. I have defined units within the MMM-CalendarExt3 config module. I have setup my locate to:
locale: 'en-US-u-ca-iso8601-hc-h23'I will be honest I would not be surprised if the key to unlocking the imperial units is hidden in the locale code. Maybe an easier way to convert time to 23h or just drop the AM/PM to save some room on the calendar. Sorry this is about weather units not time.
Beta Was this translation helpful? Give feedback.
All reactions