Read the statement by Michael Teeuw here.
weather forecast and current weather modules
-
hello, I have been working on my mirror for a while now but I just got home from college so I have been able to finally finish it. when I start up the mirror the only thing that does not come up are both the default weather modules. I updated the location, app ID, and location ID, even watched YouTube videos but everything I’ve done there is still no display of it. if someone could please help that would be great, thank you :)
-Lexi -
You need to post your config, so people can see it.
-
@lpassamonte said in weather forecast and current weather modules:
if someone could please help that would be great, thank you
If you used the example config entries (which you should) you’ll find an api key already in place. This number will NOT work. You need to go sign up for a free key at OpenWeather. Also, you don’t NEED a
locationID
for the modules to work but you do need alocation
Here is an example working bare minimum config entry for both
{ module: "weatherforecast", position: "top_right", config: { // See 'Configuration options' for more information. location: "New York, US", locationID: "", appid: "YOUR API KEY GOES HERE" //openweathermap.org API key. } }, { module: "currentweather", position: "top_right", config: { // See 'Configuration options' for more information. location: "New York, US", locationID: "", appid: "YOUR API KEY GOES HERE" //openweathermap.org API key. } },
-
@Mykle1
I believe that there may be a new issue. I’ve spent the last few days with the same problem. Current weather does not show but forcast does… I’m also very new… just started MM2 this weekend from knowing nothing to knowing very little … anyway from the very first try the forcast was working but not the current weather.{ //disabled: true, module: "currentweather", position: "top_right", config: { location: "Silverdale", locationID: "5810490", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "getyourownapikey" } }, { //disabled: true, module: "weatherforecast", position: "top_right", header: "5-Day Weather Forecast", config: { location: "Silverdale", locationID: "5810490", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "getyourownapikey", colored:'true', roundTemp:'true', maxNumberOfDays:'14', initialLoadDelay: '1000', iconTable: { '01d': 'wi-day-sunny', '02d': 'wi-day-cloudy', '03d': 'wi-cloudy', '04d': 'wi-cloudy-windy', '09d': 'wi-showers', '10d': 'wi-rain', '11d': 'wi-thunderstorm', '13d': 'wi-snow', '50d': 'wi-fog', '01n': 'wi-night-clear', '02n': 'wi-night-cloudy', '03n': 'wi-night-cloudy', '04n': 'wi-night-cloudy', '09n': 'wi-night-showers', '10n': 'wi-night-rain', '11n': 'wi-night-thunderstorm', '13n': 'wi-night-snow', '50n': 'wi-night-alt-cloudy-windy' } } },
I am using Geany for an editor on my RPI4 … it just showed up… like magic.
thanks for any help you may have -
@popeye2002 said in weather forecast and current weather modules:
it just showed up… like magic.
Are you saying it’s working now? I just copied your entry, put in my api key, and both fired right up for me
-
sadly no, only the forecast works, not the current weather :( that’s why jumped in this thread because it should work but the current weather does not so there may be a problem elsewhere. That’s where i don’t know where to begin to troubleshoot since it’s a brand new install.
BTW, I ran your current weather code for NY and that did not work either -
wow… RESOLVED… smart me somewhere along the way I entered my location into the currentweather.js file… that was a mistake I made and I shall remember!! @Mykle1 Thank you for your patients and I give to you something to smile and laugh about… betting you may have touched something you shouldn’t have as well… but that was a tough lesson!
-
Perfect! Learning is the reason I am here, too. Enjoy yourself
-
@Mykle1 hi how to get appid for current weather module
-
@ramanasha said in weather forecast and current weather modules:
hi how to get appid for current weather module
From the readme:
‘API key, which can be obtained by creating an OpenWeatherMap account.’