• 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 255.1k 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.
  • M Offline
    MarcLandis @sdetweil
    last edited by Sep 13, 2024, 2:39 PM

    @sdetweil

    throws an error:

    /home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:750
    if(module_scripts[m.module] !== undefined ){
    ^

    M S 2 Replies Last reply Sep 13, 2024, 2:51 PM Reply Quote 0
    • M Offline
      MarcLandis @MarcLandis
      last edited by Sep 13, 2024, 2:51 PM

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

      @sdetweil

      throws an error:

      /home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:750
      if(module_scripts[m.module] !== undefined ){
      ^

      @sdetweil

      fixed it myself but ran into the next exception:

      calling module data converter script for module=compliments
      /home/dirk/MagicMirror/modules/MMM-Config/schemas/compliments_converter.js:24
      		Object.keys(config_data.compliments).forEach(c =>{
      		                        ^
      
      TypeError: Cannot read properties of undefined (reading 'compliments')
          at Object.converter (/home/dirk/MagicMirror/modules/MMM-Config/schemas/compliments_converter.js:24:27)
          at /home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:754:49
      
      M 1 Reply Last reply Sep 13, 2024, 2:54 PM Reply Quote 0
      • S Away
        sdetweil @MarcLandis
        last edited by Sep 13, 2024, 2:51 PM

        @MarcLandis sorry, try again, git pull…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          MarcLandis @MarcLandis
          last edited by Sep 13, 2024, 2:54 PM

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

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

          @sdetweil

          throws an error:

          /home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:750
          if(module_scripts[m.module] !== undefined ){
          ^

          @sdetweil

          fixed it myself but ran into the next exception:

          calling module data converter script for module=compliments
          /home/dirk/MagicMirror/modules/MMM-Config/schemas/compliments_converter.js:24
          		Object.keys(config_data.compliments).forEach(c =>{
          		                        ^
          
          TypeError: Cannot read properties of undefined (reading 'compliments')
              at Object.converter (/home/dirk/MagicMirror/modules/MMM-Config/schemas/compliments_converter.js:24:27)
              at /home/dirk/MagicMirror/modules/MMM-Config/scripts/buildschema4.js:754:49
          

          I f… up

          After git pull I have an exception in one of my not published modules. Going to check that first.

          S 2 Replies Last reply Sep 13, 2024, 3:00 PM Reply Quote 0
          • S Away
            sdetweil @MarcLandis
            last edited by Sep 13, 2024, 3:00 PM

            @MarcLandis ok i have grandchild lunch at school, back in a couple hours

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @MarcLandis
              last edited by Sep 13, 2024, 3:06 PM

              @MarcLandis change this

              unused_module.module

              to this

              unused_module

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Sep 13, 2024, 5:22 PM Reply Quote 0
              • M Offline
                MarcLandis @sdetweil
                last edited by Sep 13, 2024, 5:22 PM

                @sdetweil I got the command running. There is also an issue when the default calendar module is not used. I fixed it by changing the following in buildschema4.js line 1050

                // if the default calendar module is not used, tt will be empty and getValueObject will fail
                    if (tt !== undefined && tt.length > 0) {
                      module_properties = getValueObject(m, tt);
                    }
                

                Maybe you have a better fix ready :)

                S 1 Reply Last reply Sep 13, 2024, 5:25 PM Reply Quote 0
                • S Away
                  sdetweil @MarcLandis
                  last edited by Sep 13, 2024, 5:25 PM

                  @MarcLandis thanks git pull on the new branch again …

                  I didn’t see this particular error with the latest

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Sep 13, 2024, 6:27 PM Reply Quote 0
                  • M Offline
                    MarcLandis @sdetweil
                    last edited by Sep 13, 2024, 6:27 PM

                    @sdetweil the command now works. Now I need to figure out why the socket.io connection isn’t working.

                    Failed to load resource: net::ERR_CONNECTION_REFUSED
                    
                    M 1 Reply Last reply Sep 13, 2024, 6:35 PM Reply Quote 0
                    • M Offline
                      MarcLandis @MarcLandis
                      last edited by Sep 13, 2024, 6:35 PM

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

                      @sdetweil the command now works. Now I need to figure out why the socket.io connection isn’t working.

                      Failed to load resource: net::ERR_CONNECTION_REFUSED
                      

                      Wrong URL :)

                      All is working now. Thanks for the help.

                      S 1 Reply Last reply Sep 13, 2024, 6:49 PM Reply Quote 0
                      • 1
                      • 2
                      • 22
                      • 23
                      • 24
                      • 25
                      • 26
                      • 29
                      • 30
                      • 24 / 30
                      24 / 30
                      • First post
                        237/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