• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.0k 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 Jun 5, 2017, 12:47 AM

    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?

    M 1 Reply Last reply Jun 5, 2017, 2:07 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @crafttanner
      last edited by Mykle1 Jun 5, 2017, 2:14 AM Jun 5, 2017, 2:07 AM

      @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
      1 / 1
      • First post
        1/2
        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