Read the statement by Michael Teeuw here.
Default weather module config units issue
-
I can’t get the units value to work. All I want to do is make it display in Fahrenheit. But I can’t get it to work. I put units in the config and all I get is an error. The magic mirror won’t load up the config. Can someone please tell me what I’m doing wrong?
-
@crafttanner said in Default weather module config units issue:
Can someone please tell me what I’m doing wrong?
At the very beginning of your config.js you will see
units: "imperial",
orunits: "metric",
. With this set tounits: "imperial",
there is no need to add the units entry to the weather modules at all. Now, if you want to override the global setting at the top, you would have to add theunits: "imperial",
to the weather modules. In any case, this is how your weather entries should look.{ module: "currentweather", position: "top_right", header: "New York", config: { location: "", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR API KEY GOES HERE", units: "imperial", // default` = Kelvin, `metric` = Celsius, `imperial` =Fahrenheit // your other options can go here. Just remove this line } }, { module: "weatherforecast", position: "top_right", header: "New York", config: { location: "", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR API KEY GOES HERE", units: "imperial" // default` = Kelvin, `metric` = Celsius, `imperial` =Fahrenheit // your other options can go here. Just remove this line } },