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

How to separate the server Magic Mirror app runs on with the Webcam server?

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 914 Views 1 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.
  • C Offline
    caldecy
    last edited by Dec 9, 2017, 2:39 PM

    I have this issue after downloading the fswebcam package (https://www.raspberrypi.org/documentation/usage/webcams/). Whenever I turn on my Raspberry Pi, my webcam turns on as well (which is what I want). However upon running the MagicMirror app, there will always be this error code that looks like this:

    Whoops! There was an uncaught exception...
    { Error: listen EADDRINUSE 127.0.0.1:8080
        at Object.exports._errnoException (util.js:1050:11)
        at exports._exceptionWithHostPort (util.js:1073:20)
        at Server.setupListenHandle [as _listen2] (net.js:1263:14)
        at listenInCluster (net.js:1304:12)
        at doListen (net.js:1428:7)
        at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:10)
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '127.0.0.1',
      port: 8080 }
    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    Launching application.
    
    

    And the screen loads a live stream of my webcam video. I understand that the issue is with the server being shared by the two apps that cause the issue, however when I change the server port of the MagicMirror app in the config.js file to a different server, the fswebcam server runs on the same server of the MagicMirror. It’s like the fswebcam server is coded to always use the same server as my MagicMirror app.

    Hopefully, someone can share with me on how to change the code for the fswebcam such that an individual server for the webcam can be created and I can have the two apps running simultaneously.

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