OpenWeather hangorazvan / onecall
-
OpenWeather OneCall
I’m trying to install the OpenWeather OneCall module hangorazvan / onecall
I had my mirror working just fine but when I add just this much of the module on my mirror all I get is a blank screen when I restart MagicMirror./*
{
module: “MMM-OneCallWeather”,
position: “top_right”, // This can be any of the region
// Best results in bottom_bar region due to horizontal$
config: {
// See ‘Configuration options’ for more information.
latitude: “37.971”, //Longitude from https://www.latlong.net/
longitude: “122.398”, //Longitude from https://www.latlong.net/ - is $
apikey: “425d9f429396abcdeabcdeabcde5b4443bba3” //Not my real apikey of course.
//openweathermap.org API k$
},
},
*/Any help
-
@n6ng read carefully readme.md in my repository, I was as explicit as possible. I don’t know where you got the configuration from. The name of the module and folder must be “onecall” without MMM or other wierd name, it is not mandatory that all modules have MMM as I see most have.
first you need to put in config.js Onecall API loader
{ module: "onecall/loader", config: { lat: "", // your location latitude, lon: "", // your location longitude, appid: "", // your Openweathermap appid appid2: "", // optional backup: "", // optional backup appid dayUpdateInterval: 10 * 60 * 1000, // every 10 minutes nightUpdateInterval: 15 * 60 * 1000, // every 15 minutes } },
then put the module instance you need, for current weather
{ module: "onecall", position: "top_right", header: "Current Weather", classes: "current weather", config: { endpointType: "current", // "current", "hourly", "daily" or "aqi" oneLoader: true, // very important for just one API call } },
for hourly forecast
{ module: "onecall", position: "top_right", header: "Hourly Weather Forecast", classes: "hourly forecast", config: { maxNumberOfDays: 3, fullday: "HH.mm", // "HH.mm" for hourly endpointType: "hourly", // "current", "hourly", "daily" or "aqi" oneLoader: true, // very important for just one API call } },
for daily forecast
{ module: "onecall", position: "top_right", header: "Daily Weather Forecast", classes: "daily forecast", config: { maxNumberOfDays: 6, fullday: "dddd", // "dddd" for full day name endpointType: "daily", // "current", "hourly", "daily" or "aqi" oneLoader: true, // very important for just one API call } },
Check the other settings but do not make any changes in the module, copy what you want to change in config.js to the respective instance of the module. I also mentioned how you can add specific compliments in config.js and styles in custom.css
-
So sorry… Your right of course…I don’t know how I got it confused either… I’ll check it again and won’t make that mistake again…
Again I apologize for the error… I should know better than that and be more careful.
Thank you for replying.
Dennis N6NG -
This post is deleted!