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.

    Current weather appid

    Scheduled Pinned Locked Moved Solved Troubleshooting
    weathertroubleshoot
    7 Posts 4 Posters 6.2k Views 3 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.
    • I Offline
      IArentBen
      last edited by paviro

      So I almost have my mirror up and running, Im having issues with the weather and I cant seem to figure it out.
      It populates on the screen loads then says my appid is incorrect.
      0_1463579271103_upload-5f23048b-591c-45ac-89d8-ffdb4eed7fce
      Ive made an account and tried several API keys, Ive tried it in a browser and received the data in the browser

      http://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=*MYIDHERE*

      {"coord":{"lon":-0.13,"lat":51.51},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"base":"cmc stations","main":{"temp":286.022,"pressure":1006.2,"humidity":100,"temp_min":286.022,"temp_max":286.022,"sea_level":1015.94,"grnd_level":1006.2},"wind":{"speed":3.71,"deg":208.506},"rain":{"3h":2.055},"clouds":{"all":56},"dt":1463577839,"sys":{"message":0.0051,"country":"GB","sunrise":1463544189,"sunset":1463601105},"id":2643743,"name":"London","cod":200}
      

      This is the code I have in my config:

      {
      			module: 'currentweather',
             				 position: 'top_right',  // This can be any of the regions.
                                          // Best results in left or right regions.
           			  	 config: {
                  			// See 'Configuration options' for more information.
                  			location: 'Amsterdam,Netherlands',
                 			 appid: 'YOUR_ID_HERE'  }
      			},
      

      Any help would be appreciated greatly! thanks again!


      Edit from admin: Removed your appid since it should probably not be public.

      1 Reply Last reply Reply Quote 0
      • KirAsh4K Offline
        KirAsh4 Moderator
        last edited by

        Just shear curiosity, can you remove the comments and see if that makes any difference? Basically trim it down to just:

        		{
        			module: 'currentweather',
        			position: 'top_right',
        			config: {
        				location: 'Amsterdam,Netherlands',
        				appid: 'YOUR_ID_HERE'
        			}
        		},
        

        Not that I can think of any reason why it would fail, but I have had issues with stuff placed in odd places in the config file and causing it to fail.

        A Life? Cool! Where can I download one of those from?

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          IArentBen @KirAsh4
          last edited by

          @KirAsh4 unfortunately that didn’t work

          1 Reply Last reply Reply Quote 0
          • I Offline
            IArentBen
            last edited by

            I tried several more ids and it finally worked. Thanks for you’re help

            1 Reply Last reply Reply Quote 0
            • KirAsh4K Offline
              KirAsh4 Moderator
              last edited by

              That indicates you had an issue with your ID, which may not have been valid then.

              A Life? Cool! Where can I download one of those from?

              1 Reply Last reply Reply Quote 0
              • D Offline
                dcimag
                last edited by

                How do you find out what your appid is.

                S 1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @dcimag
                  last edited by sdetweil

                  @dcimag u have to register with openweather to get one. it’s in the readme for the module, from the readme

                  The OpenWeatherMap API key, which can be obtained by creating an OpenWeatherMap account
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 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