• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.0k 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 Mar 19, 2023, 5:41 PM

    @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 Mar 19, 2023, 6:59 PM

      @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 Mar 19, 2023, 8:56 PM

        @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 Mar 20, 2023, 2:00 AM Reply Quote 0
        • S Offline
          sdetweil @sangroma
          last edited by Mar 20, 2023, 2:00 AM

          @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 Mar 20, 2023, 6:17 PM

            @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 Mar 21, 2023, 12:45 PM Reply Quote 0
            • S Offline
              sdetweil @sangroma
              last edited by Mar 21, 2023, 12:45 PM

              @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 Mar 21, 2023, 5:47 PM Reply Quote 0
              • S Offline
                sangroma @sdetweil
                last edited by Mar 21, 2023, 5:47 PM

                @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 Mar 21, 2023, 6:29 PM Reply Quote 0
                • S Offline
                  sdetweil @sangroma
                  last edited by Mar 21, 2023, 6:29 PM

                  @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 Mar 21, 2023, 7:05 PM Reply Quote 0
                  • S Offline
                    sangroma @sdetweil
                    last edited by Mar 21, 2023, 7:05 PM

                    @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 Mar 21, 2023, 7:38 PM Reply Quote 0
                    • S Offline
                      sdetweil @sangroma
                      last edited by sdetweil Mar 21, 2023, 7:40 PM Mar 21, 2023, 7:38 PM

                      @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
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/14
                        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