MMM-OpenWeatherMapForecast icon indicating copy to clipboard operation
MMM-OpenWeatherMapForecast copied to clipboard

On Data Refresh, Imperial Changes to Metric

Open taeganw opened this issue 1 year ago • 1 comments

Ill try and add some more details, but it seems every 10 minutes (update interval) the pull changes the units value from imperial to metric.

my current config: { module: "MMM-OpenWeatherMapForecast", //https://github.com/MarcLandis/MMM-OpenWeatherMapForecast?tab=readme-ov-file header: "Weather Forecast", position: "top_left", classes: "default everyone", config: { apikey: "", latitude: "XXX", longitude: "XXX",
iconset: "4c", updateInterval:"10", // Every 10 minutes mainIconset : "6fa", // Animated Icons colored: true, concise: true, units:"imperial", showDailyForecast: true, forecastLayout: "tiled" } },

Let me know if I need to supply logs! Thanks

taeganw avatar Nov 03 '24 05:11 taeganw

To fix this issue, I set the main magicMirror class to have units: "imperial" from its default "metric". my guess is the logic for this module checks the main object in the config value, no matter what the OpenWeatherMapForecast object contains. Not an issue, but I do think the child module value should override the parent.

taeganw avatar Nov 03 '24 18:11 taeganw