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.

    Difficulty getting MMM-Transitfeed working

    Scheduled Pinned Locked Moved Solved Troubleshooting
    31 Posts 2 Posters 2.6k Views 2 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 Do not disturb
      sdetweil @UncleRoger
      last edited by

      @UncleRoger hm… I installed, did the npm install gtfs

      ran, failed as version mismatch
      I then did the

      ../../node_modules/.bin/electron-rebuild 
      ✔ Rebuild Complete
      

      restart mm and no problems, using the default config

      Screenshot at 2024-06-21 15-31-57.png

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      UncleRogerU 1 Reply Last reply Reply Quote 0
      • UncleRogerU Offline
        UncleRoger @sdetweil
        last edited by

        @sdetweil

        I appreciate the help, as always… I wiped the system again, reinstalled the OS and MM, did the rebuild. Still the same error except the version numbers are different:

        [2024-06-21 15:30:32.001] [ERROR] (node:53456) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
        was compiled against a different Node.js version using
        NODE_MODULE_VERSION 127. This version of Node.js requires
        NODE_MODULE_VERSION 121. Please try re-compiling or re-installing
        the module (for instance, using `npm rebuild` or `npm install`).
        

        I should mention that this is on a Pi4 (probably 2gb) with no other modules installed.

        Maybe it’s just not meant to be.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @UncleRoger
          last edited by

          @UncleRoger what folder are you in when you do the electron-rebuild?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          UncleRogerU 1 Reply Last reply Reply Quote 0
          • UncleRogerU Offline
            UncleRoger @sdetweil
            last edited by

            @sdetweil

            The MMM-transitfeed module directory:

            {
              cd ~/MagicMirror
              npm install @electron/rebuild
              cd ~/MagicMirror/modules/MMM-transitfeed
              ../../node_modules/.bin/electron-rebuild
              cd ~/MagicMirror
            }
            

            I basically copy-and-pasted that.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @UncleRoger
              last edited by sdetweil

              @UncleRoger and when the electron-rebuild ran it should have said
              something about sqllite
              and rebuild complete, like mine above

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              UncleRogerU 1 Reply Last reply Reply Quote 0
              • UncleRogerU Offline
                UncleRoger @sdetweil
                last edited by

                @sdetweil

                Nothing about sqlite but it did say “Rebuild Complete”:

                pi@MagicMirrorDev:~/MagicMirror $ {
                  cd ~/MagicMirror
                  npm install @electron/rebuild
                  cd ~/MagicMirror/modules/MMM-transitfeed
                  ../../node_modules/.bin/electron-rebuild
                  cd ~/MagicMirror
                }
                
                added 81 packages in 11s
                
                253 packages are looking for funding
                  run `npm fund` for details
                ✔ Rebuild Complete
                pi@MagicMirrorDev:~/MagicMirror $ 
                

                This time around, I didn’t do the sqlite update:

                {
                  cd ~/MagicMirror
                  rm -r node_modules/better-sqlite3/
                  npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force
                }
                

                But I don’t think it worked any better when I did. I’ll try that and then do the rebuild.

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @UncleRoger
                  last edited by

                  @UncleRoger don’t install sql again, else you have to rebuild again

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  UncleRogerU 1 Reply Last reply Reply Quote 0
                  • UncleRogerU Offline
                    UncleRoger @sdetweil
                    last edited by

                    @sdetweil

                    Oops. I did the rebuild again. Still doesn’t say anything about the sqlite3 but it does say rebuild complete.

                    Thanks

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @UncleRoger
                      last edited by

                      @UncleRoger and? does it run.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      UncleRogerU 1 Reply Last reply Reply Quote 0
                      • UncleRogerU Offline
                        UncleRoger @sdetweil
                        last edited by

                        @sdetweil

                        Sadly, no. Same error.

                        UncleRogerU 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • 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