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.8k 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.
    • J Offline
      JohnBachini
      last edited by

      @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
      • StoffbeuteluweS Offline
        Stoffbeuteluwe Project Sponsor @Stevent
        last edited by

        @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

          @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

            @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 Reply Quote 0
            • J Offline
              JohnBachini @JohnBachini
              last edited by

              @JohnBachini

              @sdetweil you beat me to it… :-)

              1 Reply Last reply Reply Quote 0
              • S Offline
                Stevent
                last edited by

                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 Reply Quote 0
                • J Offline
                  JohnBachini
                  last edited by

                  @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

                    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

                      @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
                      • S Offline
                        Stevent
                        last edited by

                        @JohnBachini said in MMM-Screencast don&#x60;t work:

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

                        I change it but no change in the log

                        A 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