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.

    new update/upgrade script, ready for testing

    Scheduled Pinned Locked Moved General Discussion
    328 Posts 27 Posters 658.9k Views 24 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.
    • B Offline
      bobwilliams @sdetweil
      last edited by

      @sdetweil unfortunately I can’t. in the morning, raspberry did not turn on

      1 Reply Last reply Reply Quote 0
      • B Offline
        bobwilliams @sdetweil
        last edited by

        @sdetweil a month ago when I installed the mirror according to your script, everything worked right away. but did not start yesterday.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @bobwilliams
          last edited by

          @bobwilliams Ok. Send me the log if u get a chance. Thx

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • buzzkcB Offline
            buzzkc
            last edited by

            @sdetweil I did run this the other day when I was having an issue with node_helper not found. It didn’t fix that, but another message you posted did. The upgrade worked fine, but may be worth adding that git checkout of the node_helper index file to the script as a quick fix.

            Darren

            My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @buzzkc
              last edited by

              @buzzkc Good idea. I can check if the file is present and restore it if not

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bobwilliams @sdetweil
                last edited by

                @sdetweil a few days ago I copied the image from a flash drive, now I restored it and everything repeats, again these files that he asks to save or not … if you say yes, the update does not work, if you say no then the mirror stops working

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @bobwilliams
                  last edited by

                  @bobwilliams i need to see the MagicMirror/installers/upgrade.log…

                  and also, open the developers window (ctrl-shift-i) and select the tab labebed ‘console’ and scroll up to find any errors…

                  also the pm2.log

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 2 Replies Last reply Reply Quote 0
                  • B Offline
                    bobwilliams @sdetweil
                    last edited by

                    @sdetweil ok try to do tomorrow, today was a hard day very tired

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bobwilliams @sdetweil
                      last edited by

                      @sdetweil Everything has appeared to be simpler than we thought. I moved the files which were the obstacle on the way of working of your script to another folder, then updated the mirror using your script. After that I moved those files back and now mirror is working.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @bobwilliams
                        last edited by sdetweil

                        @bobwilliams What files? My script should handle it. So I want to understand.

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          bobwilliams @sdetweil
                          last edited by

                          @sdetweil /MagicMirror/installers/mm.sh
                          /MagicMirror/modules/default/calendar/calendar.js
                            /MagicMirror/modules/default/currentweather/currentweather.js
                          /MagicMirror/modules/default/weather/weather.js /MagicMirror/modules/default/weatherforecast/weatherforecast.js
                          /MagicMirror/package-lock.json
                          /MagicMirror/run-start.sh
                          when updating, your script asked to save these files or not. if I wrote yes, it was not updated, if I wrote no, the update went fine but the mirror stopped working. I just moved these files, updated the mirror, and put them back in place. and the mirror works

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @bobwilliams
                            last edited by sdetweil

                            @bobwilliams Ok. I put a fix in for Save=yes. Save=No should replace them w local repo version…and then upgrade.

                            Will have to build test. Really want to see the upgrade log, and pm2 logs for why it stoppexy

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              bobwilliams @sdetweil
                              last edited by

                              @sdetweil sent by mail

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @bobwilliams
                                last edited by

                                @bobwilliams got them thanks… you didn’t happen to save that ‘failing’ MagicMirror folder did you?

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                B 2 Replies Last reply Reply Quote 0
                                • B Offline
                                  bobwilliams @sdetweil
                                  last edited by

                                  @sdetweil no, it didn’t work out

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bobwilliams @sdetweil
                                    last edited by

                                    @sdetweil Have you looked at what was the problem?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @bobwilliams
                                      last edited by

                                      @bobwilliams yes, the merge returns an error i don’t handle… but I don’t know what the error means…
                                      so was hoping u had the folder saved, so I could get a copy to test with…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil
                                        last edited by

                                        I have submitted this script as part of pull request 1789

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 1
                                        • swvalentiS Offline
                                          swvalenti Project Sponsor
                                          last edited by

                                          @sdetweil Idk why or if this is even the case but I updated MMM-EventHorizon and now I get a black screen and server shows errored below…any ideas how to fix?

                                          pi@raspberrypi:~ $ pm2 restart mm
                                          Use --update-env to update environment variables
                                          [PM2] Applying action restartProcessId on app [mm](ids: 1)
                                          [PM2] [mm](1) ✓
                                          ┌─────────────┬────┬──────┬────────┬─────────┬─────┬────────┬──────────┐
                                          │ Name        │ id │ mode │ status │ ↺       │ cpu │ memory │
                                          ├─────────────┼────┼──────┼────────┼─────────┼─────┼────────┼──────────┤
                                          │ mm          │ 1  │ N/A  │ fork   │ online  │ 5   │ 0%     │ 2.5 MB   │
                                          │ omx_stream1 │ 2  │ N/A  │ fork   │ online  │ 28  │ 0%     │ 2.8 MB   │
                                          │ omx_stream2 │ 3  │ N/A  │ fork   │ online  │ 28  │ 0%     │ 2.7 MB   │
                                          │ omx_stream3 │ 4  │ N/A  │ fork   │ online  │ 28  │ 0%     │ 2.7 MB   │
                                          │ server      │ 0  │ N/A  │ fork   │ errored │ 0   │ 0%     │ 0 B      │
                                          
                                          
                                          swvalentiS Mykle1M 2 Replies Last reply Reply Quote 0
                                          • swvalentiS Offline
                                            swvalenti Project Sponsor @swvalenti
                                            last edited by

                                            @sdetweil Actually idk what the issue is…black screen even though all show online. Odd

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 16
                                            • 17
                                            • 8 / 17
                                            • 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