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

MMM-Fuel funktioniert nicht mehr

Scheduled Pinned Locked Moved Solved Troubleshooting
17 Posts 2 Posters 2.0k 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.
  • 3 Offline
    35110
    last edited by Jan 3, 2023, 5:01 PM

    Servus Community, meine Frau hat bemängelt das MMM-Fuel nicht mehr läuft und da MM eh ein Update benötigte, habe ich das natürlich auch gleich durchgeführt. Nur hat es das Problem mit Fuel nicht beseitigt. Ich habe also das Modul selbst geupdatet und bekomme da folgende Fehlermeldung

    npm WARN eslint-config-esnext@4.1.0 requires a peer of eslint@^6.0.0 but none is                                                                                                                                                              installed. You must install peer dependencies yourself.
    npm WARN eslint-config-node@4.1.0 requires a peer of eslint@^6.0.0 but none is i                                                                                                                                                             nstalled. You must install peer dependencies yourself.
    npm WARN eslint-config-react-native@4.1.0 requires a peer of eslint@^6.0.0 but n                                                                                                                                                             one is installed. You must install peer dependencies yourself.
    npm WARN eslint-config-recommended@4.1.0 requires a peer of eslint@^6.0.0 but no                                                                                                                                                             ne is installed. You must install peer dependencies yourself.
    
    

    Ähm weiß nur gerade nicht was mir diese Fehlermeldung sagen will. Ich bitte daher um Hilfe!!

    S 1 Reply Last reply Jan 3, 2023, 5:21 PM Reply Quote 0
    • 3 Offline
      35110 @sdetweil
      last edited by 35110 Jan 4, 2023, 8:29 PM Jan 4, 2023, 8:25 PM

      @sdetweil Ich finde nicht mal die englische Version in MMM-Fuel

      daher habe ich MMM-Fuel einfach neu installiert. Ich bekomme aber selbst bei der Installation des Modules Fehlermeldungen. :anguished_face:

      pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/fewieden/MMM-Fuel
      Klone nach 'MMM-Fuel' ...
      remote: Enumerating objects: 926, done.
      remote: Counting objects: 100% (151/151), done.
      remote: Compressing objects: 100% (53/53), done.
      remote: Total 926 (delta 99), reused 143 (delta 96), pack-reused 775
      Empfange Objekte: 100% (926/926), 1.44 MiB | 1.89 MiB/s, Fertig.
      Löse Unterschiede auf: 100% (581/581), Fertig.
      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Fuel
      pi@raspberrypi:~/MagicMirror/modules/MMM-Fuel $ npm install
      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
      npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
      npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
      
      added 526 packages, and audited 527 packages in 2m
      
      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 $
      
      

      ES LÄUFT WIEDER!!! Keine Ahnung wieso und weshalb, aber MMM-Fuel läuft wieder.

      Danke für euren Support

      S 1 Reply Last reply Jan 4, 2023, 8:31 PM Reply Quote 0
      • S Away
        sdetweil @35110
        last edited by Jan 3, 2023, 5:21 PM

        @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 Jan 3, 2023, 6:00 PM Reply Quote 0
        • 3 Offline
          35110 @sdetweil
          last edited by Jan 3, 2023, 6:00 PM

          @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 Jan 3, 2023, 6:09 PM Reply Quote 0
          • 3 Offline
            35110 @sdetweil
            last edited by 35110 Jan 3, 2023, 6:07 PM Jan 3, 2023, 6:06 PM

            @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 Jan 3, 2023, 6:11 PM Reply Quote 0
            • S Away
              sdetweil @35110
              last edited by Jan 3, 2023, 6:09 PM

              @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 Away
                sdetweil @35110
                last edited by Jan 3, 2023, 6:11 PM

                @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 Jan 3, 2023, 6:15 PM Reply Quote 0
                • 3 Offline
                  35110 @sdetweil
                  last edited by 35110 Jan 3, 2023, 6:24 PM Jan 3, 2023, 6:15 PM

                  @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 Jan 3, 2023, 6:55 PM Reply Quote 0
                  • S Away
                    sdetweil @35110
                    last edited by Jan 3, 2023, 6:55 PM

                    @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 Jan 4, 2023, 9:17 AM Reply Quote 0
                    • 3 Offline
                      35110 @sdetweil
                      last edited by 35110 Jan 4, 2023, 9:27 AM Jan 4, 2023, 9:17 AM

                      @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 Jan 4, 2023, 12:32 PM Reply Quote 0
                      • S Away
                        sdetweil @35110
                        last edited by Jan 4, 2023, 12:32 PM

                        @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 Jan 4, 2023, 7:43 PM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          9/17
                          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