Read the statement by Michael Teeuw here.
Problems with weather modules on new install
-
I have tried several times installing and it all goes fine.
No errors during updates or install.
MM starts fine and most works, but weather and forecast is not there.
I have followed the complete install guide.
I’m running default config.js, no changesAny ideas would be nice, thanks
-
@erik72 you need an openweather.org API key, see documentation of for example currentweather-Module:
appid
The OpenWeatherMap API key, which can be obtained by creating an OpenWeatherMap account.
This value is REQUIRED -
Thanks that worked, but every other time i change something i change something in config.js. I get the following error during startup :100:
Whoops! There was an uncaught exception…
{ Error: listen EADDRINUSE :::8080
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1262:14)
at listen (net.js:1298:10)
at Server.listen (net.js:1376:9)
at new Server (/home/pi/MagicMirror/js/server.js:27:9)
at /home/pi/MagicMirror/js/app.js:219:18
at loadNextModule (/home/pi/MagicMirror/js/app.js:168:5)
at /home/pi/MagicMirror/js/app.js:163:6
at Class.loaded (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:19:3)
code: ‘EADDRINUSE’,
errno: ‘EADDRINUSE’,
syscall: ‘listen’,
address: ‘::’,
port: 8080 }first time it was the default config.js where i changed this line:
ipWhitelist: [], // Set [] to allow all IP addresses.then i can copy config.js.sample to config,js and it works again
i edit in nano
-
Paste your config.js file here. Remove your API keys first and precede the paste with three back ticks.
-
@Mykle1
Got it working somehow :-) thanks for taking the time -
@erik72 said in Problems with weather modules on new install:
Got it working somehow thanks for taking the time
Even better. Enjoy your mirror.
-
@erik72 said in Problems with weather modules on new install:
EADDRINUSE
This usually means that you already have the mirror process running and attempted to start it again.
-
@bhepler
Perhaps I am starting/stopping in a wrong way.
Because often when I have made a config change it will fail, but work after a reboot.
I use npm start and Ctrl-Z in terminal to quit. -
@erik72 If you’re working directly on the pi, you can use
ctrl+qto stop the interface and return to the terminal. If you’re using SSH to remote into the pi, thenctrl+cshould stop it right nicely.You can always check to see if the mirror is running by typing
ps ax | grep node. If you get anything in response more than6957 pts/19 S+ 0:00 grep --color=auto node(where 6975 will be some random number) then the MM process is running and you’ll need to shut it down in order for it to process your changes. -
@bhepler
Thanks, will give it a try.
This is a really friendly forum :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login