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

MMM-Screencast don`t work

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 6 Posters 2.5k Views 6 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.
  • S Offline
    Stevent
    last edited by May 26, 2020, 11:26 AM

    Hello,
    sorry for my bad englisch, here is the config, what do I wrong that the Screencast dont work? I work the last two days on this problem, search the hole Internet and the board

    > > magicmirror@2.11.0 start /home/pi/MagicMirror
    > > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    > 
    > [2020-05-26 13:15:58.517] [LOG]    Starting MagicMirror: v2.11.0
    > [2020-05-26 13:15:58.524] [LOG]    Loading config ...
    > [2020-05-26 13:15:58.528] [LOG]    Loading module helpers ...
    > [2020-05-26 13:15:58.566] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:58.567] [LOG]    Module helper loaded: updatenotification
    > [2020-05-26 13:15:58.568] [LOG]    No helper found for module: clock.
    > [2020-05-26 13:15:58.913] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:58.914] [LOG]    Module helper loaded: calendar
    > [2020-05-26 13:15:58.915] [LOG]    No helper found for module: compliments.
    > [2020-05-26 13:15:58.979] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:58.980] [LOG]    Module helper loaded: MMM-Remote-Control
    > [2020-05-26 13:15:58.981] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:58.982] [LOG]    Module helper loaded: MMM-Remote-Control-Repository
    > [2020-05-26 13:15:58.982] [LOG]    No helper found for module: MMM-OpenmapWeather.
    > [2020-05-26 13:15:58.983] [LOG]    No helper found for module: weatherforecast.
    > [2020-05-26 13:15:59.297] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:59.297] [LOG]    Module helper loaded: MMM-AlexaControl
    > [2020-05-26 13:15:59.319] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:59.319] [LOG]    Module helper loaded: newsfeed
    > [2020-05-26 13:15:59.320] [LOG]    No helper found for module: MMM-pages.
    > [2020-05-26 13:15:59.320] [LOG]    No helper found for module: MMM-page-indicator.
    > [2020-05-26 13:15:59.586] [LOG]    Initializing new module helper ...
    > [2020-05-26 13:15:59.587] [LOG]    Module helper loaded: MMM-Screencast
    > [2020-05-26 13:15:59.587] [LOG]    All module helpers loaded.
    > [2020-05-26 13:15:59.710] [LOG]    Starting server on port 8080 ... 
    > [2020-05-26 13:15:59.715] [INFO]   You're using a full whitelist configuration to allow for all IPs
    > [2020-05-26 13:15:59.732] [LOG]    Server started ...
    > [2020-05-26 13:15:59.733] [LOG]    Connecting socket for: updatenotification
    > [2020-05-26 13:15:59.734] [LOG]    Connecting socket for: calendar
    > [2020-05-26 13:15:59.734] [LOG]    Starting node helper for: calendar
    > [2020-05-26 13:15:59.735] [LOG]    Connecting socket for: MMM-Remote-Control
    > [2020-05-26 13:15:59.735] [LOG]    Starting node helper for: MMM-Remote-Control
    > [2020-05-26 13:15:59.741] [LOG]    Connecting socket for: MMM-Remote-Control-Repository
    > [2020-05-26 13:15:59.742] [LOG]    Connecting socket for: MMM-AlexaControl
    > [2020-05-26 13:15:59.742] [LOG]    MMM-AlexaControl helper, started...
    > [2020-05-26 13:15:59.743] [LOG]    Connecting socket for: newsfeed
    > [2020-05-26 13:15:59.743] [LOG]    Starting module: newsfeed
    > [2020-05-26 13:15:59.743] [LOG]    Connecting socket for: MMM-Screencast
    > [2020-05-26 13:15:59.744] [LOG]    Sockets connected & modules started ...
    > [2020-05-26 13:15:59.750] [LOG]    Whoops! There was an uncaught exception...
    > [2020-05-26 13:15:59.758] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    > [2020-05-26 13:15:59.758] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    > [2020-05-26 13:15:59.915] [LOG]    Launching application.
    
    pi@raspberrypi:~ $ cd MagicMirror/config
    pi@raspberrypi:~/MagicMirror/config $ display=:0 npm start >> log.log
    [2020-05-26 13:15:59.751] [ERROR]  Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
        at Server.setupListenHandle [as _listen2] (net.js:1226:14)
        at listenInCluster (net.js:1274:12)
        at doListen (net.js:1413:7)
        at processTicksAndRejections (internal/process/task_queues.js:84:9) {
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '0.0.0.0',
      port: 8080
    }
    [2020-05-26 13:16:00.304] [ERROR]  ERROR! Could not find main module js file for MMM-API
    

    Thank you very much

    S S 2 Replies Last reply May 26, 2020, 1:47 PM Reply Quote 0
    • J Offline
      JohnBachini
      last edited by May 26, 2020, 11:48 AM

      @Stevent you need to post your conifg minus token/account/password information, dont think you can get much help with just what you have provided.

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stoffbeuteluwe Project Sponsor @Stevent
        last edited by May 26, 2020, 1:47 PM

        @Stevent I have tried the module on Mac and it’s also not working …

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Stevent
          last edited by sdetweil May 26, 2020, 2:29 PM May 26, 2020, 2:28 PM

          @Stevent said in MMM-Screencast don`t work:

          errno: ‘EADDRINUSE’,
          syscall: ‘listen’,
          address: ‘0.0.0.0’,
          port: 8080

          did u specify a port? the default is 8569

          port	Optional A port to run the dialserver on Type number default 8569
          

          you cannot use the same port as MM does

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            JohnBachini
            last edited by May 26, 2020, 2:29 PM

            @Stevent Try changing port to something other than 8080, I’m guessing something else is using that port, Like MagicMirror itself.

            J 1 Reply Last reply May 26, 2020, 2:31 PM Reply Quote 0
            • J Offline
              JohnBachini @JohnBachini
              last edited by May 26, 2020, 2:31 PM

              @JohnBachini

              @sdetweil you beat me to it… :-)

              1 Reply Last reply Reply Quote 0
              • S Offline
                Stevent
                last edited by May 26, 2020, 9:57 PM

                Sorry, here is the config, no custom Port in Screencast configurated.

                var config = {
                	address: "0.0.0.0", // Address to listen on, can be:
                	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                	                      // - another specific IPv4/6 to listen on a specific interface
                	                      // - "0.0.0.0", "::" to listen on any interface
                	                      // Default, when address config is lefthttp://bulk.openweathermap.org/sample/city.list.json.gz out or empty, is "localhost"
                	port: 8080,
                	ipWhitelist: [], // Set [] to allow all IP addresses
                	                                                       // or add a specific IPv4 of 192.168.1.5 :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                
                	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
                	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
                	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
                
                	language: "de",
                	timeFormat: 24,
                	units: "metric",
                	// serverOnly:  true/false/"local" ,
                			     // local for armv6l processors, default
                			     //   starts serveronly and then starts chrome browser
                			     // false, default for all  NON-armv6l devices
                			     // true, force serveronly mode, because you want to.. no UI on this device
                
                	modules: [
                	{
                            module: 'MMM-Remote-Control',  // uncomment the following line to show the URL of the remote control on the mirror
                            position: 'bottom_left',  // you can hide this module afterwards from the remote control itself
                            config: {
                                customCommand: {},  // Optional, See "Using Custom Commands" below
                		customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
                		showModuleApiMenu: true, // Optional, Enable the Module Controls menu
                                pages: 2,
                        },
                        {
                			module: "MMM-Remote-Control-Repository",
                		},
                        {
                            module: 'MMM-AlexaControl',
                            position: 'middle_center',
                            config: {
                            image: false,
                            pm2ProcessName: "mm",
                            monitorToggle: true,
                            vcgencmd: "vcgencmd",
                            deviceName: "Spiegel",
                	        pages: 2
                            }
                        }, 
                	{
                        module: 'MMM-pages',
                        config: {
                                modules:
                                    [[ "MMM-OpenmapWeather","weatherforecast","newsfeed","calendar", "compliments"],
                                     [ "MMM-OpenmapWeather","MMM-Screencast"]],
                                fixed: ["clock", "currentweather", "MMM-AlexaControl", "MMM-page-indicator","MMM-Screencast"],
                                }
                        },
                        {
                        module: 'MMM-page-indicator',
                        position: 'bottom_bar',
                        config: {
                            pages: 2
                                }
                        },
                             {
                		module: 'MMM-Screencast',
                		position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
                		config: {
                			position: 'center',
                			// position: "center",
                			height: 300,
                			width: 500,
                			castName: "SpiegelRasp",
                		}
                        }
                	
                	]
                
                };
                
                JerryPJ 1 Reply Last reply Jun 16, 2021, 5:53 AM Reply Quote 0
                • J Offline
                  JohnBachini
                  last edited by May 27, 2020, 7:56 AM

                  @Stevent

                  I quickly tried that module and it does work, what if you specify different port than 8080 in screencast config.
                  If that makes no difference, what happens if you change ip address on which Magicmirror listens on at top of your config.

                  address: “0.0.0.0”, //Address to listen on - Change this to ip of your MagicMirror.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Stevent
                    last edited by Stevent Jun 15, 2020, 6:48 PM Jun 15, 2020, 6:29 PM

                    Not work change Port,
                    but diferent pm2 log after change

                    address: “0.0.0.0”,
                    to
                    address:“IPfromRASP”,

                    0|MagicMir | [2020-06-15 20:28:02.945] [ERROR]  Error [ERR_SERVER_ALREADY_LISTEN]: Listen method has been called more than once without closing.
                    0|MagicMir |     at Server.listen (net.js:1312:11)
                    0|MagicMir |     at DialServer.start (/home/pi/MagicMirror/modules/MMM-Screencast/DialServer.js:122:17)
                    0|MagicMir |     at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Screencast/node_helper.js:13:21)
                    0|MagicMir |     at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:113:11)
                    0|MagicMir |     at Socket.emit (events.js:200:13)
                    0|MagicMir |     at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
                    0|MagicMir |     at processTicksAndRejections (internal/process/task_queues.js:82:9)
                    
                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JohnBachini
                      last edited by Jun 15, 2020, 7:59 PM

                      @Stevent i notice in your config for pages you have screencast twice , one in second page and one in fixed

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