MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Problems with CurrentWeather, WeatherForecast working fine..



  • Hi there,

    It’s driving me nuts but I probably have only a small mistake I just can’t see. All software up to date, just checked. The Weatherforecastmodule is working fine but the Currentweather module isn’t showing up. What’s wrong with my config ?

    {
    module: “currentweather”,
    position: “top_right”,
    config: {
    location: “Kerkrade”,
    locationID: “27529922”,
    appid:“bdb47df57bd63562bb11xxxxxxxxxx”
    }
    },
    {
    module: “weatherforecast”,
    position: “top_right”,
    header: “Weersverwachting”,
    config: {
    location: “Kerkrade”,
    locationID: “2752922”,
    appid:“bdb47df57bd63562bb11xxxxxxxxxx”
    }
    },

    Thnx for the help…
    Grtz, Haab


  • Module Developer

    @haab said in Problems with CurrentWeather, WeatherForecast working fine..:

    {
    module: “currentweather”,
    position: “top_right”,
    config: {
    location: “Kerkrade”,
    locationID: “27529922”,
    appid: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
    }
    },
    {
    module: “weatherforecast”,
    position: “top_right”,
    header: “Weersverwachting”,
    config: {
    location: “Kerkrade”,
    locationID: “2752922”,
    appid: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
    }
    },

    Your current weather location ID has one too many 9’s and the type of quotes you are using is causing syntax errors. This will work for you. Notice the difference in quotes.

    {
    module: "currentweather",
    position: "top_right",
    config: {
    location: "Kerkrade",
    locationID: "2752922",
    appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
    },
    {
    module: "weatherforecast",
    position: "top_right",
    header: "Weersverwachting",
    config: {
    location: "Kerkrade",
    locationID: "2752922",
    appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
    },
    

    0_1540410982641_Screenshot from 2018-10-24 15-51-33.png



  • @mykle1 Thank you very much m8 for your very fine eyes. The nin solved the problem, I overlooked it probably a thousand times. Thank you very much.

    The quotes I use are the same you use , just a copy & paste thing that changed the quotes.

    Thnx again Mykle1


  • Module Developer

    @haab

    You’re welcome, mate. Now edit your post to remove your API key. I’ve already done so in mine. You should keep those private