MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Default weather module config units issue

    Scheduled Pinned Locked Moved Troubleshooting
    insteon
    2 Posts 2 Posters 6.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      crafttanner
      last edited by

      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?

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @crafttanner
        last edited by Mykle1

        @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
        		}
        		},
        

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy