Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cast to magic mirror from iPhone #118

Open
molliesmith16 opened this issue Nov 18, 2021 · 1 comment
Open

Cannot cast to magic mirror from iPhone #118

molliesmith16 opened this issue Nov 18, 2021 · 1 comment

Comments

@molliesmith16
Copy link

Hi,

I am trying to set up MMM-Screencast on my raspberry pi 3 (Model B+). I have installed the module as instructed and can see the node_helper.js file. I have set up the config as follows:

let config = {
        address: "localhost",   // 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 left out or empty, is "localhost"
        port: 8080,
        basePath: "/",  // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
                                        // you must set the sub path here. basePath must end with a /
        ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],  // 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: "en",
        locale: "en-GB",
        logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
        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-Screencast",
                        position: "top_center",
                        config:{
                                position: "topCenter",
                                height: 300,
                                width:500,
                                castName:"Magic Mirror",
                        }
                },
                 ]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

I have tried a few variations of this; having this as the only module, and running with other modules. All other modules are running fine. I have also tried changing address to 0.0.0.0 and emptying ip whitelist but no luck.

Here is the log.log file:

> [email protected] start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[18.11.2021 21:53.04.477] [LOG]   Starting MagicMirror: v2.17.1
[18.11.2021 21:53.04.488] [LOG]   Loading config ...
[18.11.2021 21:53.04.500] [LOG]   Loading module helpers ...
[18.11.2021 21:53.05.099] [LOG]   Initializing new module helper ...
[18.11.2021 21:53.05.112] [LOG]   Module helper loaded: MMM-Screencast
[18.11.2021 21:53.05.114] [LOG]   All module helpers loaded.
[18.11.2021 21:53.05.312] [LOG]   Starting server on port 8080 ...
[18.11.2021 21:53.05.338] [LOG]   Server started ...
[18.11.2021 21:53.05.340] [LOG]   Connecting socket for: MMM-Screencast
[18.11.2021 21:53.05.342] [LOG]   Sockets connected & modules started ...
[18.11.2021 21:53.05.749] [LOG]   Launching application.

I am trying to cast from within YouTube app on iPhone, and I am connected to the same wifi network as the raspberry pi, but the option to cast to the device is just not showing up.
Any help would be massively appreciated! Thanks!

@kevinatown
Copy link
Owner

Hi @molliesmith16, sorry about the delay on this. So your log looks short. Can you provide more of the logs? Can you try and run it like:

display=:0 npm start >> log.log

After this wait for a bit and open up your youtube app on your phone, wait for a bit, and then you can kill the MagicMirrior and send me the log.log Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants