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.

    Mirror showing not all modules on all devices

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 3 Posters 6.1k Views 3 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
      sangroma
      last edited by

      hello!
      i am running magic mirror in a docker container (karsten13/magicmirror:v2.21.0) on my nas.
      i am opening the site in my local network from different devices (mobile, notebook, pi with mirror os)

      the strange thing: when opening the site on my pi the default weather modules are not shown. on all other devices these two modules are shown as intended.
      so, no error logs etc. because the modules are working.

      i´ve already tested, that the correct version gets called and nothing gets cached, by adding some other modules for testing purpose to see, if they show up - yes, other modules show up.

      does someone has the same issue or any idea how to solve it?

      {
      	module: "weather",
      	position: "top_right",
      	disabled: false,
      	config: {
      		type: "current",
      		location: "XXX",
      		locationID: "XXX",
      		apiKey: "XXX"
      	}
      },
      {
      	module: "weather",
      	position: "top_right",
      	disabled: false,
      	header: "Weather Forecast",
      	config: {
      		type: "forecast",
      		location: "XXX",
      		locationID: "XXX", 
      		apiKey: "XXX"
      	}
      },
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @sangroma
        last edited by sdetweil

        @sangroma yes. that is one of the new es6 idioms. ?., the chaining operator

        see Screenshot_20230321_143721_Chrome.jpg

        on
        https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

        chrome needs version 80, u have only v 72

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • S Offline
          sdetweil @sangroma
          last edited by

          @sangroma on the pi. can u open the developers window, ctrl-shift-i on the keyboard, select the console tab and enter wea in the filter field

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil thank you!

            very strange.
            after

            Load script: modules/default/weather/weather.js
            

            i get the following error

            Uncaught SyntaxError: Unexpected token .
            
            1 Reply Last reply Reply Quote 0
            • S Offline
              sangroma
              last edited by

              @sdetweil thank you!
              Hmmm… on load up after the weather.js the foowing error occure only on the raspi. On all other clients i can call the script without errors

              Load script: modules/default/weather/weatger.js
              
              Uncaught SyntaxError: Unexpected token .
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @sangroma
                last edited by

                @sangroma what version of node do you have installed,

                node -v

                but electron should have the right node version

                what browser are you using?

                the error is that the nodejs version is downlevel, not supporting the es6 idioms we are using

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil
                  currently running v16.19.0 of node
                  browser is chromium latest version 72.0.3626.121
                  Just installed latest version of firefox. Same issue

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

                    @sangroma on the error line, what is the line number next to the name. weather.js:xxx

                    what os version are u running?

                    lsb_release -a
                    uname -a

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil

                      weather.js:159
                      

                      device where the magic mirror docker container is running on

                      Linux nas 6.0.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1~bpo11+1 (2022-12-19) x86_64 GNU/Linux
                      

                      device on which i am trying to call the mirror via chromium

                      Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @sangroma
                        last edited by

                        @sangroma what version of MagicMirror are you running

                        line 159 is empty in the latest release

                        Screenshot_20230321_132841_Chrome.jpg

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil
                          magicmirror:v2.21.0
                          i dont know why, but in your file it is line 165
                          Bildschirmfoto 2023-03-21 um 20.04.20.png

                          S 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