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.

    Help with the software

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 4 Posters 673 Views 4 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 @SecretEUAgent
      last edited by

      @SecretEUAgent please run the configuration
      checker

      cd ~/MagicMirror
      npm run config:check
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • R Offline
        raymondjspigot @SecretEUAgent
        last edited by

        hi @SecretEUAgent

        last time you were working on your Mirror had you got any of the modules you wanted up and going? (i.e. is there anything you want to keep from what you’ve done so far, or are you ok making a fresh start by reinstalling?)

        If you’re ok reinstalling it might be easier to work though adding the modules you want to a fresh install, is all.

        Hard to know what hasn’t worked out since I can’t see what you’ve done so far! Adding modules to the mirror isn’t usually too difficult, but needs 2 steps:

        • installing the module (e.g. cloning the module’s code from github into the MagicMirror/modules directory on your RaspberryPi, and (maybe) installing dependencies

        • updating the config.js file at MagicMirror/config so that the module is displayed on your mirror and behaves the way you want

        Updating config.js is not hard but does need doing with care as even small errors (typos, missing punctuation) can make the file contents invalid. Your Mirror will likely start but just show a blank screen with a default “Please create a config file or check the existing one for errors” message.

        (It should also show a note about running the config check as Sam has suggested, which might show if there are errors in your config file that you can correct.)

        While updating the config file if you save a last-known-good-file and then make small changes between re-running the mirror it’ll help to pin down any typing errors. If you jump in and change heaps at once and then your Mirror suddenly won’t show any modules then it’s harder to work out which of your edits caused it and where the config needs correcting.

        Post back if you get your Pi to a solid (re)starting position (e.g. reinstalled with a new config.js, or a config.js you’ve run through the config checker) and we’ll try adding a module and see how it goes

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

          @SecretEUAgent make sure you backup

          use my backup restore scripts
          https://github.com/sdetweil/MagicMirror-backup-restore

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil

            I had my mirror working earlier. Issues getting it updated (module, then node errors and issues updating) but got it working.
            I added a module, then I ran into problems.

            I removed the MagicMirror folder and contents.
            I copied and pasted your script into my raspberrypi (3B+ Running Bookworm)
            I have not been able to install MM.
            I have tried install,start,update,run, npm in different command combos accompanied with Sudo.

            I was getting (node:27979) [DEP1070]… url proxy port invalid…future node.js will throw an error.

            Running config:check
            Node:internal/module/cjs/loader:1228
            Throw error;
            A

            Error: Cannot find module ‘ansis’
            …/js/check_config.js
            …
            …
            At object (…js/check_config.js:3:16)
            Code:‘MODULE_NOT_FOUND’
            requirestack: […/MagicMirror/js/check_config.js]

            Node.js V20.17.0

            I am not sure what I am missing as it is a new download with attempted install.

            I also have a list of dependencies not created or may be moved out of incoming
            "The following packages have unmet dependencies:
            npm: Depends: node-agent-base but it is not going to be installed
            …
            …
            (Long list of file nodes with same message)
            …
            Recommends: node-tap but it is not going to be installed

            E:unable to correct problems, you have held broken packages.

            I can’t seem to figure out what I am missing or why I can’t force updates or complete install.

            *note: the node and DEP problem occurred after I installed the first and only module on the previous MM config.js file.
            That was the reason I scrapped the whole folder and started over with your link.

            I’m not super savvy, but have been working through the learning process of required packages and getting upto date to get the first MM running.
            Hopefully this is something simple to correct and action.

            Appreciate any help

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @StewartBaird86
              last edited by

              @StewartBaird86

              i have not been able to install MagicMirror

              i don’t understand

              my install script does that job

              you don’t have to do anything else

              just copy paste the command from my github page and press enter

              send me the ~/install.log

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil

                I’ll try to access it remotely. I didn’t intend on doing that at this point. I’ll navigate the how to and get back soon.

                I cannot attach images here.
                I can barely load the browser and tabs for Google searches (Chromium and Mozilla) on the device itself to be able to C&C here.

                Could there be something lingering from previous install setup that I need to clear/purge through terminal?

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

                  @StewartBaird86 use your windows system for the forum

                  install either winscp or bitvise ssh clients on your windows system, then you can access the target system with a file manager interface and drag/drop files to copy, and still have an ssh terminal too

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @StewartBaird86 said in Help with the software:

                    Error: Cannot find module ‘ansis’

                    this means that the npm run install-mm failed. do

                    cd ~/MagicMirror 
                    npm run install-mm
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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