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.

    MMM-Fuel funktioniert nicht mehr

    Scheduled Pinned Locked Moved Solved Troubleshooting
    17 Posts 2 Posters 2.8k 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 Offline
      sdetweil @35110
      last edited by

      @35110 wie hast du aktualisiert?

      Ich habe gestern Abend einen Fix in mein Upgrade-Skript eingefügt, um dieses Problem zu beheben.

      sehen
      https://github.com/sdetweil/MagicMirror_scripts

      Da Sie bereits ein Upgrade durchgeführt haben, müssten Sie anstelle von apply den Parameter force verwenden

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      3 2 Replies Last reply Reply Quote 0
      • 3 Offline
        35110 @sdetweil
        last edited by

        @sdetweil
        Hm ich habe das Update durchgeführt wie ich denke wie man es macht. Also ich bin mit Putty in den Ordner MagicMirror gegangen und habe dort git pull && npm install
        ausgeführt. Danach habe ich pm2 restart mm ausgeführt um MM neu zu starten.

        Da MMM-Fuel nicht erschien bin ich erneut mit Putty in den Ordner MagicMirror/modules/MMM-Fuel/ gegangen und habe dort git pull && npm install ausgeführt.

        @sdetweil said in MMM-Fuel funktioniert nicht mehr:

        Da Sie bereits ein Upgrade durchgeführt haben, müssten Sie anstelle von apply den Parameter force verwenden

        Ähm ich versteh gerade nicht was Sie damit meinen.

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

          @sdetweil

          pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
          No LSB modules are available.
          doing test run = false
          update log will be in /home/pi/MagicMirror/installers/upgrade.log
          Check current Node installation ...
          Node currently installed. Checking version number.
          Minimum Node version: v16.9.1
          Installed Node version: v10.17.0
          Node should be upgraded.
          A Node process is currently running. Can't upgrade.
          Please quit all Node processes and restart the update.
          running process(s) are
          pi 14928 14927 0 17:40 ? 00:00:00 node ./node_modules/.bin/electron js/electron.js
          pi@raspberrypi:~/MagicMirror $
          
          

          habe dann pm2 stop mm ausgeführt und dann ging das mit dem script

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

            @35110 OK danke. ich verstehe Das Problem ist, dass die devDependencies für das Modul jetzt mit der Basis veraltet sind. und beide können nicht gleichzeitig geladen werden. aber Sie entwickeln keinen neuen Modulcode und sollten sich nicht darum kümmern. Mein Skript installiert die devDependencies nicht wie npm install. Ich habe gestern festgestellt, dass npm install --omit=dev weiterhin die Abhängigkeiten validiert, sie aber nicht installiert, sodass die Meldungen irreführend sind

            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 @35110
              last edited by

              @35110 Ja, Sie müssen MagicMirror immer stoppen, bevor Sie ein Upgrade durchführen

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              3 1 Reply Last reply Reply Quote 0
              • 3 Offline
                35110 @sdetweil
                last edited by 35110

                @sdetweil

                pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                No LSB modules are available.
                doing test run = false
                update log will be in /home/pi/MagicMirror/installers/upgrade.log
                Check current Node installation ...
                Node currently installed. Checking version number.
                Minimum Node version: v16.9.1
                Installed Node version: v10.17.0
                Node should be upgraded.
                Installing Node.js ...
                gpg: WARNUNG: Unsicheres Besitzverhältnis des Home-Verzeichnis `/home/pi/.gnupg'
                Paketlisten werden gelesen... Fertig
                Abhängigkeitsbaum wird aufgebaut.
                Statusinformationen werden eingelesen.... Fertig
                Die folgenden Pakete werden aktualisiert (Upgrade):
                  nodejs
                1 aktualisiert, 0 neu installiert, 0 zu entfernen und 445 nicht aktualisiert.
                Es müssen 24,2 MB an Archiven heruntergeladen werden.
                Nach dieser Operation werden 47,5 MB Plattenplatz zusätzlich benutzt.
                Holen:1 https://deb.nodesource.com/node_16.x buster/main armhf nodejs armhf 16.19.0-deb-1nodesource1 [24,2 MB]
                Es wurden 24,2 MB in 34 s geholt (711 kB/s).
                apt-listchanges: Changelogs werden gelesen...
                (Lese Datenbank ... 101770 Dateien und Verzeichnisse sind derzeit installiert.)
                Vorbereitung zum Entpacken von .../nodejs_16.19.0-deb-1nodesource1_armhf.deb ...
                Entpacken von nodejs (16.19.0-deb-1nodesource1) über (10.17.0-1nodesource1) ...
                nodejs (16.19.0-deb-1nodesource1) wird eingerichtet ...
                Trigger für man-db (2.8.5-2) werden verarbeitet ...
                node version is
                Node.js installation Done! version=v16.19.0
                Check current NPM installation ...
                NPM currently installed. Checking version number.
                Minimum npm version: V7.11.2
                Installed npm version: V8.19.3
                No npm upgrade necessary.
                
                upgrading from version 2.22.0 to 2.22.0
                fetching latest revisions
                there are 3 local files that are different than the master repo
                
                   fonts/package-lock.json
                   package-lock.json
                   vendor/package-lock.json
                
                any *-lock.json files do not need to be saved
                do you want to save these files for later   (Y/n)?y
                updating MagicMirror runtime, please wait
                
                > magicmirror@2.22.0 postinstall
                > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
                > "
                
                
                > magicmirror@2.22.0 install-vendor
                > echo "Installing vendor files ...
                > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                
                Installing vendor files ...
                
                
                up to date in 1s
                
                > magicmirror@2.22.0 install-fonts
                > echo "Installing fonts ...
                > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                
                Installing fonts ...
                
                
                up to date in 869ms
                MagicMirror² installation finished successfully!
                
                
                > magicmirror@2.22.0 prepare
                > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
                
                no husky installed.
                
                added 275 packages, and audited 276 packages in 3m
                
                46 packages are looking for funding
                  run `npm fund` for details
                
                found 0 vulnerabilities
                npm notice
                npm notice New major version of npm available! 8.19.3 -> 9.2.0
                npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.2.0>
                npm notice Run `npm install -g npm@9.2.0` to update!
                npm notice
                Checking for modules with removed libraries
                processing dependency changes for active modules with package.json files
                
                processing for module MMM-Jast please wait
                ----------------------------------
                
                added 12 packages, and audited 13 packages in 11s
                
                1 package is looking for funding
                  run `npm fund` for details
                
                found 0 vulnerabilities
                processing complete for module MMM-Jast
                
                we stashed a set of files that appear changed from the latest repo versions. you should review them
                see installers/stashed_files for the list
                
                you can use git checkout stash@{0} -- filename to extract one file from the stash
                
                or git stash pop to restore them all
                
                WARNING..
                WARNING.. either will overlay the file just installed by the update
                WARNING..
                pi@raspberrypi:~/MagicMirror $
                
                

                Danach das Update bei MMM-Fuel durchgeführt:

                pi@raspberrypi:~/MagicMirror/modules/MMM-Fuel $ git pull && npm install
                Bereits aktuell.
                npm WARN old lockfile
                npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                npm WARN old lockfile
                npm WARN old lockfile This is a one-time fix-up, please be patient...
                npm WARN old lockfile
                
                up to date, audited 527 packages in 45s
                
                73 packages are looking for funding
                  run `npm fund` for details
                
                6 vulnerabilities (2 moderate, 3 high, 1 critical)
                
                To address all issues, run:
                  npm audit fix
                
                Run `npm audit` for details.
                pi@raspberrypi:~/MagicMirror/modules/MMM-Fuel $
                
                

                Problem ist nun, dass mein ganzer MM schwarz bleibt und nichts Anzeigt.
                Nehm ich MMM-Fuel aus der config.js raus, wird mir wenigsten der Rest wieder angezeigt.

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

                  @35110 ja, das bedeutet normalerweise, dass eine Bibliothek fehlt.

                  seltsam, dass es nicht mit meinem Skript aktualisiert wurde.

                  könnten Sie das Modul posten: Abschnitt der config.js für MMM-Fuel…

                  War das Modul deaktiviert, als Sie mein Skript ausgeführt haben? Ich verarbeite nur für aktive Module.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  3 1 Reply Last reply Reply Quote 0
                  • 3 Offline
                    35110 @sdetweil
                    last edited by 35110

                    @sdetweil das Modul war deaktiviert, schliesslich mußte ich MM beenden um Ihren Script auszuführen.

                    MMM-Fuel hat ja noch bis vor kurzen funktioniert. Erst seit dem die Update Notification für MM angezeigt wurde, fehlte das Modul auf dem “Display”, der Rest war aber noch vorhanden.

                    Nun bleibt nachdem Update das “Display” schwarz und nur wenn ich MMM-Fuel aus der Config entferne, wird alles andere wieder angezeigt.

                    Hier der Config Eintrag von Fuel

                    {
                    			module: "MMM-Fuel",
                    			position: "bottom_left",
                    			config: {
                    			api_key: "meine_api",
                    			lat: 51.09276,
                    			lng: 8.93330,
                    			types: ["e5"],
                    			radius: 10
                    			}
                    		},
                    

                    sehr komisch…

                    Ich habe jetzt extra nochmal die Code Zeilen in die config.js wieder eingefügt und danach erneut den Update Script ausgeführt - nun wird MMM-Fuel im Update sogar aufgeführt.

                    pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                    No LSB modules are available.
                    doing test run = false
                    update log will be in /home/pi/MagicMirror/installers/upgrade.log
                    Check current Node installation ...
                    Node currently installed. Checking version number.
                    Minimum Node version: v16.9.1
                    Installed Node version: v16.19.0
                    No Node.js upgrade necessary.
                    Check current NPM installation ...
                    NPM currently installed. Checking version number.
                    Minimum npm version: V7.11.2
                    Installed npm version: V8.19.3
                    No npm upgrade necessary.
                    
                    upgrading from version 2.22.0 to 2.22.0
                    fetching latest revisions
                    updating MagicMirror runtime, please wait
                    
                    > magicmirror@2.22.0 postinstall
                    > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
                    > "
                    
                    
                    > magicmirror@2.22.0 install-vendor
                    > echo "Installing vendor files ...
                    > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                    
                    Installing vendor files ...
                    
                    
                    up to date in 1s
                    
                    > magicmirror@2.22.0 install-fonts
                    > echo "Installing fonts ...
                    > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                    
                    Installing fonts ...
                    
                    
                    up to date in 991ms
                    MagicMirror² installation finished successfully!
                    
                    
                    > magicmirror@2.22.0 prepare
                    > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
                    
                    no husky installed.
                    
                    added 275 packages, and audited 276 packages in 2m
                    
                    46 packages are looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    Checking for modules with removed libraries
                    processing dependency changes for active modules with package.json files
                    
                    processing for module MMM-Fuel please wait
                    ----------------------------------
                    
                    added 16 packages, and audited 17 packages in 19s
                    
                    8 packages are looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    processing complete for module MMM-Fuel
                    
                    processing for module MMM-Jast please wait
                    ----------------------------------
                    
                    added 12 packages, and audited 13 packages in 16s
                    
                    1 package is looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    processing complete for module MMM-Jast
                    
                    pi@raspberrypi:~/MagicMirror $
                    
                    
                    pi@raspberrypi:~/MagicMirror $ pm2 start mm
                    [PM2] Applying action restartProcessId on app [mm](ids: [ 0 ])
                    [PM2] [mm](0) ✓
                    [PM2] Process successfully started
                    ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                    │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                    ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                    │ 0  │ mm                 │ fork     │ 12   │ online    │ 0%       │ 2.3mb    │
                    └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                    pi@raspberrypi:~/MagicMirror $
                    
                    

                    Das Display bleibt aber weiterhin Schwarz und zeigt nicht mal nen Fehler in der config an

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

                      @35110
                      interessant können Sie zwei Dinge tun

                      1. pm2 logs–lines=50

                      Dies zeigt die Konsolenausgabe von ty an

                      1. Wenn der schwarze Bildschirm angezeigt wird, öffnen Sie das Entwicklerfenster Strg-Umschalt-I auf der Tastatur, wählen Sie dann die Registerkarte Konsole und scrollen Sie nach oben, um roten Text zu sehen

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      3 2 Replies Last reply Reply Quote 0
                      • 3 Offline
                        35110 @sdetweil
                        last edited by

                        @sdetweil
                        Ich abe dort eine Orange Warnung:

                        VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
                          Policy set or a policy with "unsafe-eval" enabled. This exposes users of
                          this app to unnecessary security risks.
                        
                        For more information and help, consult
                        https://electronjs.org/docs/tutorial/security.
                        This warning will not show up
                        once the app is packaged.
                        

                        und einen Roten Fehler:

                        Failed to load resource: the server responded with a status of 404 (Not Found)
                        :8080/modules/MMM-Fuel/translations/de.json:1
                        
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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