MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED This device is not allowed to access your mirror.

    Troubleshooting
    4
    10
    1835
    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
      Julia last edited by

      var config = {
      	address: '0.0.0.0', 
      	port: 8080,
      	ipwhitelist: [],
              . . . . . . . . . . . . . . 
      {
      		    module: "MMM-Remote-Control",
      		    		    config: {
                                                    position: 'right',
                                                   apiKey:  ' '
      		       
      },
      
      

      This is my config file but even If I whitelist every ip address I still can’t connect
      “Thisdevice is not allowed to access your mirror.
      Please check your config.js or config.js.sample to change this.”

      Any ideas?

      Pi 3b+ and mobile hotspot btw

      S bhepler 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @Julia last edited by

        @Julia what device is trying to connect?

        Is it using remote-control apis?

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • J
          Julia last edited by

          @sdetweil I am trying to connect my laptop. What do you mean by “Is it using remote-control apis?”?

          1 Reply Last reply Reply Quote 0
          • bhepler
            bhepler Project Sponsor @Julia last edited by

            @Julia - Where are you receiving that error message? Are you getting that on your mobile device trying to use the configuration app? Or is that on the mirror itself?

            I would try replacing the '0.0.0.0' value with your Pi’s IP address.

            1 Reply Last reply Reply Quote 0
            • J
              Julia last edited by

              The error is on my phone. Replacing the ‘0.0.0.0’ value with my Pi’s ip address makes no difference. I still get the same message.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @Julia last edited by

                @Julia note that the strings in config are case sensitive, it should be

                ipWhitelist

                not

                ipwhitelist

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • D
                  dxfan227 last edited by

                  is an api key required to run properly?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @dxfan227 last edited by

                    @dxfan227 not for the base framework, and most of the default modules. (Weather needs one)

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • D
                      dxfan227 last edited by

                      @sdetweil Ok

                      Perhapes the config is missing the part I bolded here? :

                      modules: [

                      {
                      module: “MMM-Remote-Control”,
                      config: {
                      position: ‘right’,
                      apiKey: ’ ’

                      },
                      ]

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sdetweil @dxfan227 last edited by

                        @dxfan227 that shouldn’t matter.
                        The message the OP posted comes from server.js after checking the ipWhitelist config variable

                        Sam

                        Create a working config
                        How to add modules

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy