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.2k 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

      @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

        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

        Mykle1M bheplerB 2 Replies Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @erik72
          last edited by

          @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 Reply Quote 0
          • E Offline
            erik72 @Mykle1
            last edited by

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

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @erik72
              last edited by

              @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
              • bheplerB Offline
                bhepler Module Developer @erik72
                last edited by

                @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 Reply Quote 0
                • E Offline
                  erik72 @bhepler
                  last edited by

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

                  bheplerB 1 Reply Last reply Reply Quote 0
                  • bheplerB Offline
                    bhepler Module Developer @erik72
                    last edited by

                    @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 Reply Quote 0
                    • E Offline
                      erik72 @bhepler
                      last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        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