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 8.5k 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
      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
                      • 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
                          sangroma
                          last edited by

                          @sdetweil Oh wow. Many thanks!!
                          Will do this.

                          Topic can be closed

                          KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                          • KristjanESPERANTOK Offline
                            KristjanESPERANTO Module Developer @sangroma
                            last edited by

                            @sangroma Out of curiosity: How come you used a browser version from 4 years ago?

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

                              @KristjanESPERANTO as far as i remember i installed some kind of raspbian light version because i dont need much on the device. just wanted to show the internal webpage of the docker.
                              as it got deprecated i couldnt update to a higher version. need to set up a complete fresh OS :D

                              1 Reply Last reply Reply Quote 1
                              • S sdetweil referenced this topic on
                              • S sdetweil referenced this topic on
                              • S sdetweil referenced this topic on

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1 / 1
                              • 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