Current weather appid



  • 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.


  • Moderator

    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.



  • @KirAsh4 unfortunately that didn’t work



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


  • Moderator

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


Log in to reply
 

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