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", or units: "metric",. With this set to units: "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 the units: "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
    		}
    		},
    

Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.