• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Problems with weather modules on new install

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 4 Posters 4.5k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    Anhalter42 @erik72
    last edited by Jun 1, 2017, 4:33 PM

    @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

    1 Reply Last reply Reply Quote 0
    • E Offline
      erik72
      last edited by Jun 1, 2017, 5:55 PM

      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

      M B 2 Replies Last reply Jun 1, 2017, 6:31 PM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @erik72
        last edited by Jun 1, 2017, 6:31 PM

        @erik72

        Paste your config.js file here. Remove your API keys first and precede the paste with three back ticks.

        Create a working config
        How to add modules

        E 1 Reply Last reply Jun 1, 2017, 7:41 PM Reply Quote 0
        • E Offline
          erik72 @Mykle1
          last edited by Jun 1, 2017, 7:41 PM

          @Mykle1
          Got it working somehow :-) thanks for taking the time

          M 1 Reply Last reply Jun 1, 2017, 8:10 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @erik72
            last edited by Jun 1, 2017, 8:10 PM

            @erik72 said in Problems with weather modules on new install:

            Got it working somehow thanks for taking the time

            Even better. Enjoy your mirror.

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • B Offline
              bhepler Module Developer @erik72
              last edited by Jun 2, 2017, 1:02 PM

              @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.

              E 1 Reply Last reply Jun 2, 2017, 1:16 PM Reply Quote 0
              • E Offline
                erik72 @bhepler
                last edited by Jun 2, 2017, 1:16 PM

                @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.

                B 1 Reply Last reply Jun 2, 2017, 2:29 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @erik72
                  last edited by Jun 2, 2017, 2:29 PM

                  @erik72 If you’re working directly on the pi, you can use ctrl+q to stop the interface and return to the terminal. If you’re using SSH to remote into the pi, then ctrl+c should 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 than 6957 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.

                  E 1 Reply Last reply Jun 2, 2017, 4:22 PM Reply Quote 0
                  • E Offline
                    erik72 @bhepler
                    last edited by Jun 2, 2017, 4:22 PM

                    @bhepler
                    Thanks, will give it a try.
                    This is a really friendly forum :-)

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      6/10
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy