MMM-OpenWeatherMapForecast Doesn't display imperial units
-
Hello,
Working on OpenWeatherMapForecast and so far have really liked it. One issue, for predicted precipitation I cannot get imperial units to show. I’ve tried changing it within config.js as well as the config file in the module as well. Any suggestions?
{
module: “MMM-OpenWeatherMapForecast”,
header: “Weather”,
position: “bottom_right”,
classes: “default everyone”,
disabled: false,
config: {
apikey: “KEY”,
latitude: “444444”,
longitude: “-4444444”,
iconset: “4c”,
concise: false,
forecastLayout: “table”,
units: “imperial”,
}
}, -
@rslohs the doc says the module config options is units
from
https://github.com/jharttech/MMM-weatherforecast -
@sdetweil I’m not quite sure what you’re saying. The ‘Units:“imperial”,’ is incorrect in the code I shared? What should I try differently?
-
Just a thought: At the top of your config.js file, what are your config
units
set to?Example:
var config = { address: "0.0.0.0", port: 8080, ipWhitelist: [], // Set [] to allow all IP addresses language: "en", timeFormat: 12, units: "imperial",
-
@mykle1 thanks for the suggestion, but that is set to imperial as well.
-
@rslohs its not “Units”, its “units”
this system is case sensitive, every letter matters
-
@sdetweil that’s what I’m using in the config file.
{
module: “MMM-OpenWeatherMapForecast”,
header: “Schoolcraft, MI Weather”,
position: “top_right”,
classes: “default everyone”,
disabled: false,
config: {
apikey: “aaaaaaaa”,
latitude: “aaaaaaa”,
longitude: “aaaaaa”,
iconset: “4c”,
concise: false,
forecastLayout: “table”,
units: “imperial”,
}
},