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

Need Help with magicmirror

Scheduled Pinned Locked Moved Solved Troubleshooting
15 Posts 2 Posters 2.1k 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.
  • W Offline
    WM1600
    last edited by Apr 25, 2024, 1:07 AM

    I tried installing majic mirror pictureframe from Tomshardware.

    Purchsed a rasberry pi 4
    assembled updated and got the unit functioning.
    installed MagicMirror

    had it running.

    then installed the magicmirror module.
    had issued getting the generate_token.js to function,
    determined i needed to use the command generate_token_v2.js (I think)
    also updated
    npm: ‘10.5.2’,
    node: ‘20.12.1’,
    got the magic mirror to display a google album.

    then I tried to make the unit boot on start-up.

    will@raspberrypi:/media/will $ sudo npm install -g pm2
    /usr/local/bin/node: 1: Syntax error: “)” unexpected

    Then I went back tried to update MM

    Now magicmirror will not run.

    (I have copies of the terminal if that helps)

    any ideas on where to look to get help?
    remove MM and re-install?

    Thanks,
    Will

    S 1 Reply Last reply Apr 25, 2024, 2:33 AM Reply Quote 0
    • S Away
      sdetweil @WM1600
      last edited by sdetweil Apr 29, 2024, 2:24 AM Apr 29, 2024, 2:22 AM

      @WM1600 ok then…

      hm… trying to figure out the best way to fix this

      the bad node install is hard to get out of.

      I think redoing the sd card is the cleanest

      use my backup script to save the MagicMirror setup.
      https://github.com/sdetweil/MagicMirror-backup-restore

      it’s three files plus any addon files made by modules, like the token file for photos
      one little directory.

      if you use github then it can save all that to a private repo u build on github.

      otherwise copy the folder off somewhere you can get it back

      make the new sd card,
      boot, don’t update during bootup
      install MagicMirror using my install script
      https://github.com/sdetweil/MagicMirror_scripts
      which will update node/npm too

      then restore your MagicMirror setup

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @WM1600
        last edited by sdetweil Apr 26, 2024, 2:13 PM Apr 25, 2024, 2:33 AM

        @WM1600 rename the folder

        cd ~/
        mv MagicMirror MagicMirror. old

        then run my install script
        see
        https://github.com/sdetweil/MagicMirror_scripts

        it will do all the setup install node and npm,
        sometimes the problem
        for install is so messed up, you have to refresh the sd card and then run my script

        the script will also setup pm2 to launch at boot if you say yes at the prompt

        if the install is successful you an copy the two json files for Google photos from the prior folder

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Apr 28, 2024, 4:05 PM Reply Quote 0
        • W Offline
          WM1600 @sdetweil
          last edited by Apr 28, 2024, 4:05 PM

          @sdetweil thank you,
          I have re-installed Magic Mirror and chose to disable screen save and to start magicmirror on boot-up.
          the install worked for magicmirror and and when I go to the magic mirror folder in terminal and type “npm run start”, magicmirror will start.

          when I turn the terminal off and boot it up, It comes up with a magicmirror boot screen, but then the terminal continues to the normal start-up.
          At this point, I can still go to terminal and type npm run start and run magicmirror

          Am I missing a step to transition fully into magicmirror?

          S 1 Reply Last reply Apr 28, 2024, 4:30 PM Reply Quote 0
          • S Away
            sdetweil @WM1600
            last edited by Apr 28, 2024, 4:30 PM

            @WM1600 can you do this

            pm2 flush
            sudo reboot

            then
            pm2 logs --lines=50

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            W 1 Reply Last reply Apr 28, 2024, 5:29 PM Reply Quote 0
            • W Offline
              WM1600 @sdetweil
              last edited by Apr 28, 2024, 5:29 PM

              @sdetweil
              ok,
              I have done those.
              no change

              S 1 Reply Last reply Apr 28, 2024, 6:09 PM Reply Quote 0
              • S Away
                sdetweil @WM1600
                last edited by sdetweil Apr 28, 2024, 8:04 PM Apr 28, 2024, 6:09 PM

                @WM1600 what is the output of the pm2 logs command? I need to see

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                W 1 Reply Last reply Apr 28, 2024, 7:51 PM Reply Quote 0
                • W Offline
                  WM1600 @sdetweil
                  last edited by Apr 28, 2024, 7:51 PM

                  @sdetweil

                  the terminal looks like this

                  will@raspberrypi:~ $ pm2 logs --lines=50
                  will@raspberrypi:~ $

                  I do not see it doing anything.

                  [pm2.jpg](Input file contains unsupported image format)
                  I tried to upload the PM2.log but it says I can only upload picture files.

                  so I changed pm2.log to pm2.jpg. dont know it that will work.

                  S 1 Reply Last reply Apr 28, 2024, 8:05 PM Reply Quote 0
                  • S Away
                    sdetweil @WM1600
                    last edited by Apr 28, 2024, 8:05 PM

                    @WM1600

                    ok, let’s do.

                    pm2 status to see what apps it is managing

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    W 1 Reply Last reply Apr 28, 2024, 8:24 PM Reply Quote 0
                    • W Offline
                      WM1600 @sdetweil
                      last edited by Apr 28, 2024, 8:24 PM

                      @sdetweil

                      when I type in pm2 status

                      I dont see anything

                      this is the terminal copied:

                      will@raspberrypi:~ $ pm2 status
                      will@raspberrypi:~ $

                      S 1 Reply Last reply Apr 28, 2024, 8:30 PM Reply Quote 0
                      • S Away
                        sdetweil @WM1600
                        last edited by Apr 28, 2024, 8:30 PM

                        @WM1600 hmmm weird

                        run the fixuppm2 script from here
                        https://github.com/sdetweil/MagicMirror_scripts

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        W 1 Reply Last reply Apr 29, 2024, 12:46 AM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          2/15
                          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