• 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 sdetweil script

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 1.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.
  • M Offline
    MyMirror
    last edited by Jan 8, 2022, 7:48 PM

    Hi all,
    i’ve installed MM on a new pi4 (bullseye) with sdetweil’s script.
    Everything ok, node version 17.3.0 and npm at 8.3.0.
    After the first start, i have cloned MMM-Fuel and modified the config.js (with api-key and lat/lng).

    The mirror starts but i didn#t get infos from MMM-Fuel.
    Then i tried the sdetweil’s update script.
    I get following:

    pi@pi4:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
    No LSB modules are available.
    
    doing test run = true, NO updates will be applied!
    
    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: v17.3.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.3.0
    No npm upgrade necessary.
    
    saving custom.css
    upgrading from version 2.18.0 to 2.18.0
    fetching latest revisions
    there are 2 local files that are different than the master repo
    
       installers/mm.sh
       package-lock.json
    
    any *-lock.json files do not need to be saved
    do you want to save these files for later   (Y/n)?n
    skipping restore for installers/mm.sh, doing test run
    skipping restore for package-lock.json, doing test run
    Checking for modules with removed libraries
    processing dependency changes for active modules with package.json files
    
    processing for module MMM-Fuel please wait
    ----------------------------------
    skipped processing for MMM-Fuel, doing test run
    processing complete for module MMM-Fuel
    
    restoring custom.css
    
    

    How can i fix this?
    Thanks for helping me.

    1 Reply Last reply Reply Quote 0
    • M Offline
      MyMirror @MyMirror
      last edited by Jan 9, 2022, 10:06 AM

      MMM-Fuel problem solved.

      My problem was:
      UnhandledPromiseRejectionWarning: Error: Cannot find module ‘geolib’

      so i use

      npm install geolib
      

      And i get the mudul running.

      Cheers
      Jens

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by sdetweil Jan 8, 2022, 8:40 PM Jan 8, 2022, 8:39 PM

        @mymirror upgrade is for the next release, 3 months from now. ( and it’s 2 steps, one test, make sure you are happy, fix any issues, then once to DO the upgrade, you only ran the test phase)

        do you mean u have a blank screen?

        if so, then see here for how to fix
        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

        what provider did u select? can you show the module def and config for MMM-Fuel?

        node 17? my script installs node 16.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 2 Replies Last reply Jan 9, 2022, 8:43 AM Reply Quote 0
        • M Offline
          MyMirror @sdetweil
          last edited by Jan 9, 2022, 8:43 AM

          @sdetweil

          Hi Sam,

          after my old MM didn’t work properly and this was apparently also due to the very old Jessie, I started a new mirror based on a PI4 with Bullseye.

          For the initial installation I also took your script. But before that I manually updated Node to the latest version.

          The mirror worked in the basic version. The first modul “MMM-Fuel” has then unfortunately no data delivered and I thought that your script possibly correct necessary dependencies.

          Currently I do not know how to fix these problems soon:

          there are 2 local files that are different than the master repo
          
             installers/mm.sh
             package-lock.json
          

          Regarding MMM-Fuel I have to search something because of the certificate etc., right?

          Jens

          1 Reply Last reply Reply Quote 0
          • M Offline
            MyMirror
            last edited by Jan 9, 2022, 8:58 AM

            I forgot the MMM-Fuel modul:

                            {
                                    module: "MMM-Fuel",
                                    position: "top_left",
                                    config: {
                                            api_key: "57ae...................2e",
                                            lat: xx.xxxxxxxx,
                                            lng: y.yyyyy,
                                            types: ["E5"],
                                    }
                            },
            

            Jens

            1 Reply Last reply Reply Quote 0
            • M Offline
              MyMirror @sdetweil
              last edited by Jan 9, 2022, 9:04 AM

              @sdetweil

              Hi Sam,

              my provider is Tankerkoenig …

              Jens

              M 1 Reply Last reply Jan 9, 2022, 10:06 AM Reply Quote 0
              • M Offline
                MyMirror @MyMirror
                last edited by Jan 9, 2022, 10:06 AM

                MMM-Fuel problem solved.

                My problem was:
                UnhandledPromiseRejectionWarning: Error: Cannot find module ‘geolib’

                so i use

                npm install geolib
                

                And i get the mudul running.

                Cheers
                Jens

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/6
                  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