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

Are you tired of editing config.js, or have trouble doing it, see my new module

Scheduled Pinned Locked Moved Utilities
293 Posts 28 Posters 294.2k Views 30 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.
  • A Offline
    Alyx @Alyx
    last edited by Nov 10, 2021, 7:00 PM

    @alyx actually i had a harder look, does this seem important?

    smartmirror@smartmirror-ThinkCentre-M72e:~/MagicMirror/modules/MMM-Config$ sudo npm install
    npm WARN lifecycle mmm-config@1.0.0~postinstall: cannot run in wd mmm-config@1.0.0 node exec_script.js ./postinstall:postinstall.cmd (wd=/home/smartmirror/MagicMirror/modules/MMM-Config)
    npm WARN mmm-config@1.0.0 No repository field.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

    audited 136 packages in 1.22s

    7 packages are looking for funding
    run npm fund for details

    found 3 moderate severity vulnerabilities
    run npm audit fix to fix them, or npm audit for details
    smartmirror@smartmirror-ThinkCentre-M72e:~/MagicMirror/modules/MMM-Config$

    S 2 Replies Last reply Nov 10, 2021, 7:02 PM Reply Quote 0
    • S Offline
      sdetweil @Alyx
      last edited by Nov 10, 2021, 7:01 PM

      @alyx ok, add debug:true

      to my module def in config.js

      (stop any pm2 version running, pm2 stop all)

      then start MM like this
      npm start >somefile.txt

      there are all kinds of interesting problems with other modules, but none on the base that I know of.

      send me the somefile.txt and the defaults. js from the MMM-Config folder… it is constructed from the modules installed

      same userid as here at gmail

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Nov 10, 2021, 7:08 PM Reply Quote 0
      • S Offline
        sdetweil @Alyx
        last edited by sdetweil Nov 10, 2021, 7:03 PM Nov 10, 2021, 7:02 PM

        @alyx no… all useless messages we cannot do anything about

        wait… is this windows?

        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 @Alyx
          last edited by sdetweil Nov 10, 2021, 7:05 PM Nov 10, 2021, 7:04 PM

          @alyx said in Are you tired of editing config.js, or have trouble doing it, see my new module:

          sudo npm install

          NEVER EVER use sudo on any MM command…

          delete my module folder and git clone and then npm install

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            Alyx @sdetweil
            last edited by Nov 10, 2021, 7:08 PM

            @sdetweil So I did as you said and the npm run is stuck loading for a while and the text file is empty.

            Now I’m running in server mode if that matters? I used npm run server >somefile.txt

            S 1 Reply Last reply Nov 10, 2021, 7:10 PM Reply Quote 0
            • S Offline
              sdetweil @Alyx
              last edited by sdetweil Nov 11, 2021, 12:44 PM Nov 10, 2021, 7:10 PM

              @alyx but you used sudo, which messed things up… permissions as root when we need user level…

              please delete my module folder, and reinstall without sudo…

              you MAY have messed up the rest of the MM files too…

              linux has very strict permissions

              the postinstall failed which moves files to the right places…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Nov 10, 2021, 7:11 PM Reply Quote 0
              • A Offline
                Alyx @sdetweil
                last edited by Nov 10, 2021, 7:11 PM

                @sdetweil I used sudo because some package files reported back errors and that I dont have the required permissions?

                S 1 Reply Last reply Nov 10, 2021, 7:12 PM Reply Quote 0
                • S Offline
                  sdetweil @Alyx
                  last edited by Nov 10, 2021, 7:12 PM

                  @alyx probably cause you used sudo before…

                  so, I’d start over again… delete the MM folder

                  and run my install script, then add my module and npm install in its folder…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A D 2 Replies Last reply Nov 10, 2021, 7:17 PM Reply Quote 0
                  • A Offline
                    Alyx @sdetweil
                    last edited by Nov 10, 2021, 7:17 PM

                    @sdetweil ok I flash reinstalled MM (worryingly good at it now…) and it seems to be working :)

                    The config pops up on the webpage correctly and all.

                    Thanks Sam!

                    1 Reply Last reply Reply Quote 1
                    • D Offline
                      Dinschal @sdetweil
                      last edited by Nov 11, 2021, 3:04 PM

                      @sdetweil hi sam, i hope you haven’t much work from my issues :/ can you tell me if you have a solution? at this time i had to deinstall your module to finish my project for university but i want to use it again ;)

                      S 2 Replies Last reply Nov 11, 2021, 3:05 PM Reply Quote 0
                      • 1
                      • 2
                      • 11
                      • 12
                      • 13
                      • 14
                      • 15
                      • 29
                      • 30
                      • 13 / 30
                      13 / 30
                      • First post
                        130/293
                        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