• 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.

Difficulty getting MMM-Transitfeed working

Scheduled Pinned Locked Moved Solved Troubleshooting
31 Posts 2 Posters 1.5k 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.
  • U Offline
    UncleRoger @sdetweil
    last edited by Jun 21, 2024, 7:55 PM

    @sdetweil

    I gave that a bash and am still getting the same error. I even wiped the system and started from scratch just in case I’d done something to make things worse.

    S 1 Reply Last reply Jun 21, 2024, 8:33 PM Reply Quote 0
    • S Away
      sdetweil @UncleRoger
      last edited by Jun 21, 2024, 8:33 PM

      @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

      U 1 Reply Last reply Jun 21, 2024, 10:39 PM Reply Quote 0
      • U Offline
        UncleRoger @sdetweil
        last edited by Jun 21, 2024, 10:39 PM

        @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 Jun 21, 2024, 11:21 PM Reply Quote 0
        • S Away
          sdetweil @UncleRoger
          last edited by Jun 21, 2024, 11:21 PM

          @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

          U 1 Reply Last reply Jun 21, 2024, 11:31 PM Reply Quote 0
          • U Offline
            UncleRoger @sdetweil
            last edited by Jun 21, 2024, 11:31 PM

            @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 Jun 21, 2024, 11:42 PM Reply Quote 0
            • S Away
              sdetweil @UncleRoger
              last edited by sdetweil Jun 21, 2024, 11:43 PM Jun 21, 2024, 11:42 PM

              @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

              U 1 Reply Last reply Jun 21, 2024, 11:51 PM Reply Quote 0
              • U Offline
                UncleRoger @sdetweil
                last edited by Jun 21, 2024, 11:51 PM

                @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 Jun 22, 2024, 12:00 AM Reply Quote 0
                • S Away
                  sdetweil @UncleRoger
                  last edited by Jun 22, 2024, 12:00 AM

                  @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

                  U 1 Reply Last reply Jun 22, 2024, 12:16 AM Reply Quote 0
                  • U Offline
                    UncleRoger @sdetweil
                    last edited by Jun 22, 2024, 12:16 AM

                    @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 Jun 22, 2024, 12:19 AM Reply Quote 0
                    • S Away
                      sdetweil @UncleRoger
                      last edited by Jun 22, 2024, 12:19 AM

                      @UncleRoger and? does it run.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      U 1 Reply Last reply Jun 22, 2024, 12:35 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        8/31
                        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