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 400.9k Views 31 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 @sdetweil
      last edited by

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

      @josh45631 @mumblebaj

      @josh45631 @mumblebaj i updated the readme to specify MM_IP_Address instead of ‘machine_name’ if you need/want/have to use the manual reivew url instead of the QR

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        brianlove
        last edited by

        Thank you for this! So I’m new to MM (you’ve got to love that phrase, right?) but slowly learning. I’ve got MM-Config running and can access it via a separate laptop on my network. I can see the running modules, and the QR Code, but when I go to turn a module on/off and “save,” it won’t do anything on the MM side. I can see the “config_last_change” file has the date and time, but can’t figure out why nothing is changing or saving.

        Any ideas? Thanks again!

        BKeyportB S 2 Replies Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @brianlove
          last edited by

          @brianlove Did you restart your Mirror? (Not the whole pi, just the mirror app)

          If so, please elaborate. Which module are you toggling? Can you share the config segment showing the change?

          The "E" in "Javascript" stands for "Easy"

          1 Reply Last reply Reply Quote 0
          • B Offline
            brianlove
            last edited by brianlove

            @bkeyport

            I did restart the mirror. As for the modules, I’ve tried multiple ones, but specifically currentweather & CalendarWeek.

            	{
            	module:"MMM-Config",
            	position:"top_right",  // the QR code (if requested) will appear here
            	config:{
            
            	}
            },
            
            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @brianlove
              last edited by sdetweil

              @brianlove I will check when I can.

              could u enable debug in my module
              ( if using pm2, do pm2 stop all)
              then start with

              npm start > somefile.txt
              

              then do the edit and save on the form

              and then stop mm (ctrl-q) and send me the
              somefile.txt via email.

              same userid as here at gmail.
              thanks

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                doogy_rev
                last edited by

                Hi All,

                I reinstalled my MM this week and decided to use this module to do the configurations. Its all installed and I can see all my modules, however it seems to be hit and miss on enabling and setting the positions. for example,

                default clock - this would not enable, I manually enabled it in the config and now shows Blue but can not set the position, either from the page or in the config.

                Default calendar - this enabled ok, shows blue, but can not set the position, does not save

                MMM-OpenWeatherForecast - works perfectly

                newsfeed - works perfectly.

                Any ideas on why some modules seem to be hit or miss?

                Sorry for the thread resurrection, was not sure where to post.

                Thanks

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

                  @doogy_rev set debug in my module config

                  debug:true,

                  then start mm like this

                  cd ~/MagicMirror
                  npm start >somefile.txt
                  

                  if you use pm2 for autostart
                  before the above do

                  pm2 stop all
                  

                  after running and ‘saving’

                  ctrl-c to stop mm

                  send the somefile.txt to my email, or open an issue on the module and attach it there. (warning this log file has full text contents of config.js, so sending as email is better as issues are public). my email is this same userid at gmail

                  also, positions are set down below, not in the config up above… right?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    doogy_rev @sdetweil
                    last edited by

                    @sdetweil I just emailed you the file, and yes I am setting the positions using the positions drop down menu at the bottom.

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

                      @doogy_rev yes, checking shortly

                      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 @doogy_rev
                        last edited by

                        @doogy_rev see email for downloading fix

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          doogy_rev @sdetweil
                          last edited by

                          @sdetweil Works like a champ! Thank you for looking in to this and fixing.

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

                            I posted a new release the other day, which finally fixes compliments the right way, and enables other module authors to leverage the same capabilities.
                            documented in the readme.

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 1
                            • S Offline
                              Socrates
                              last edited by

                              I love the idea of this module, not sure why i missed it out before. Anywho now that i am trying to set it up, i have installed the module (did not use sudo).
                              Inserted this much code with no modification.

                                      {
                                              module:"MMM-Config",
                                              position:"bottom_right",  // the QR code (if requested) will appear here
                                              config:{
                              
                                              }
                              
                              

                              And when i go to the URL i see a blank page.

                              mmm-config.JPG

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

                                @Socrates SOOOOO much fun, because there are no types in javascript and no standards for modules, i have to discover and guess the author’s intent.

                                sometimes i have a bug, sometimes they do weird unexpected things
                                can you look at the console where you do npm start?

                                if you use pm2, then

                                pn2 logs --lines=xxxx
                                

                                where xxxx is a number of lines to display, default 15
                                I’ve tested w a lot of modules, but not all

                                can u give me a list of all the modules in your config.js

                                grep "module:" ~/MagicMirror/config/config.js | uniq | sort -h
                                

                                you didn’t see it cause its not listed in the modules list

                                would you be willing to send me
                                a copy of your config.js, xxx out apikeys, private data urls, but make sure to leave the structure

                                from the the module folder, the
                                defaults.js
                                and the schema3.json —/ again edit out private things (near the bottom)

                                i do not share info sent to me, ever,
                                you can also attach the cleaned files to an issue on the module github page

                                if emailing
                                .js files have to be renamed by adding .txt to the end

                                defaults and schema3 are constructed from your installed modules

                                me email is the same userid as here at gmail.

                                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 @Socrates
                                  last edited by

                                  @Socrates i really want to look at this problem.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    MarcLandis Module Developer @sdetweil
                                    last edited by MarcLandis

                                    @sdetweil I get the same blank page and the reason is that it errors on buildschema4.js.

                                    1|MagicMirror² | SyntaxError: Unexpected token ‘:’, …“^^-01-01”::[“Happy n”… is not valid JSON
                                    1|MagicMirror² | at JSON.parse ()
                                    1|MagicMirror² | at Object. (/home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:1173:14)
                                    1|MagicMirror² | at Module._compile (node:internal/modules/cjs/loader:1546:14)
                                    1|MagicMirror² | at Module._extensions…js (node:internal/modules/cjs/loader:1691:10)
                                    1|MagicMirror² | at Module.load (node:internal/modules/cjs/loader:1317:32)
                                    1|MagicMirror² | at Module._load (node:internal/modules/cjs/loader:1127:12)
                                    1|MagicMirror² | at TracingChannel.traceSync (node:diagnostics_channel:315:14)
                                    1|MagicMirror² | at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
                                    1|MagicMirror² | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)
                                    1|MagicMirror² | at node:internal/main/run_main_module:30:49

                                    The reason is the compliments module:

                                    compliments: {
                                    anytime: [“Hey there sexy!”],
                                    morning: [“Good morning, handsome!”, “Enjoy your day!”, “How was your sleep?”],
                                    afternoon: [“Hello, beauty!”, “You look sexy!”, “Looking good today!”],
                                    evening: [“Wow, you look hot!”, “You look nice!”, “Hi, sexy!”],
                                    “…-01-01”: [“Happy new year!”]
                                    },

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

                                      @MarcLandis thanks…

                                      in July I changed the processing for compliments… it worked before and the new process changed it to a different approach but still works…

                                      can you do

                                      in the module folder
                                      ls schemas -laF

                                      there should be 4 files related to compliments

                                      these two handle the correction for the possible . in the js object type

                                      -rw-rw-r-- 1 sam sam 2882 Jun 29 07:32 compliments_converter.js
                                      -rw-rw-r-- 1 sam sam 9006 Jul 6 19:14 compliments.schema.json

                                      and these two that improve the form look and feel and handling

                                      -rw-rw-r-- 1 sam sam 381 Jun 28 18:01 compliments_extension.css
                                      -rw-rw-r-- 1 sam sam 1980 Jul 6 19:10 compliments_extension.js

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MarcLandis Module Developer @sdetweil
                                        last edited by

                                        @sdetweil

                                        -rw-r–r-- 1 dirk dirk 2882 Sep 13 15:23 compliments_converter.js
                                        -rw-r–r-- 1 dirk dirk 381 Sep 13 15:23 compliments_extension.css
                                        -rw-r–r-- 1 dirk dirk 1980 Sep 13 15:23 compliments_extension.js
                                        -rw-r–r-- 1 dirk dirk 9006 Sep 13 15:23 compliments.schema.json

                                        I just did a fresh install of the module, to test something myself

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

                                          @MarcLandis gosh I hate git changing file dates…

                                          SO, can you do this for me

                                          in the module folder do

                                          node scripts/buildschema4.js …/defaults.js debug >somefile.txt 2>&1

                                          and send me somefile.txt

                                          I’d have you attach it to an issue, but it shows every line from config.js
                                          same id at gmail… and issue attachments are public

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            MarcLandis Module Developer @sdetweil
                                            last edited by

                                            @sdetweil I created a new issue on github and uploaded the file after removing some sensitive information.

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 12 / 15
                                            • 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