Weather module does not work (Please set the correct openweather appid in the...)



  • Hi,
    I am a complete newbie to raspberry pi. I installed the MagicMirror and now I have problems with the weather module.

    When I start the MagicMirror I get the following error

    Please set the correct openweather appid in the…

    I have searched here in the forum, but I did not find a solution to my concrete problem.

    The code in my config.js

        module: 'currentweather',
                        position: 'top_right',
                        config: {
                                location: 'New York',
                                appid: '5128581'
                        }
                },
                {
                        module: 'weatherforecast',
                        position: 'top_right',
                        header: 'Wettervorhersage',
                        config: {
                            location: 'New York',
                                locationID: '5128581',  //ID from http://www.openweathermap.org
                    appid: '5128581'
                        }
                },
    

    Is it interesting, that I start the MagicMirror in Germany?

    Thanks for helping me.


  • Moderator

    As the config file suggests you need to go to http://www.openweathermap.org and request an appid from there.



  • Thanks for your answer.

    But I did it. In my example is the correct New York appid.


  • Moderator

    Not really.
    There is a locationID to identify your location if you don’t use the location name field.
    In addition you need an appid. Therefore you go to http://www.openweathermap.org, click on “Sign up” on the top and create an account. Afterwards you can generate a unique appid which should not be shown to anyone and is tight to your useraccount.

    0_1481629515354_api key.JPG



  • Ah, ok! I misunderstood the logic of appid. Now it works!

    Thanks for your help!


 

282
Online

6.0k
Users

4.5k
Topics

37.1k
Posts