• 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.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.
  • 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 Offline
      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 Offline
          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
          • 3 Offline
            35110 @sdetweil
            last edited by Jan 4, 2023, 7:43 PM

            @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
            • 3 Offline
              35110 @sdetweil
              last edited by Jan 4, 2023, 7:45 PM

              @sdetweil said in MMM-Fuel funktioniert nicht mehr:

              pm2 logs–lines=50

              pi@raspberrypi:~ $ pm2 logs–lines=50
              [PM2][ERROR] Command not found
              
              usage: pm2 [options] <command>
              
              pm2 -h, --help             all available commands and options
              pm2 examples               display pm2 usage examples
              pm2 <command> -h           help on a specific command
              
              Access pm2 files in ~/.pm2
              pi@raspberrypi:~ $
              
              

              Ich glaube nicht das es an PM2 liegt. Wie gesagt, sobald ich die MMM-Fuel aus der Config löschen, funktioniert MM und das auch via PM2

              S 1 Reply Last reply Jan 4, 2023, 7:49 PM Reply Quote 0
              • S Offline
                sdetweil @35110
                last edited by Jan 4, 2023, 7:49 PM

                @35110 space between logs and --lines

                pm2 logs --lines=50

                but it says the German translations file is not present

                de.json

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                3 1 Reply Last reply Jan 4, 2023, 7:58 PM Reply Quote 0
                • 3 Offline
                  35110 @sdetweil
                  last edited by Jan 4, 2023, 7:58 PM

                  @sdetweil said in MMM-Fuel funktioniert nicht mehr:

                  but it says the German translations file is not present

                  Wo ist die hin bzw woher bekomm ich die?

                  S 1 Reply Last reply Jan 4, 2023, 8:04 PM Reply Quote 0
                  • S Offline
                    sdetweil @35110
                    last edited by Jan 4, 2023, 8:04 PM

                    @35110 ich weiß nicht. Möglicherweise müssen Sie eine erstellen Nehmen Sie die englische Datei en.json und setze deutsche Phrasen passend ein.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    3 1 Reply Last reply Jan 4, 2023, 8:25 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
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        11/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