Skip to content

[Bug] No config defaults when adding a bundled module #335

Description

@KristjanESPERANTO

OS

Debian 12

NodeJS Version

23.6.1

MagicMirror² Version

v2.32.0-develop

Remote Control Version

3.1.8

Did you try using just Remote Control alone with MM?

  • I have and the error still happening

Description

Adding a bundled module like MMM-RAIN-MAP and set the config in one workflow via the remote interface.

Expected behavior

There should be the default values in the config which I could change.

Current behavior

The config part is empty.

Image

Possible solution

No response

Steps to reproduce

  1. create config.js without MMM-RAIN-MAP
  2. start MM
  3. go to backend (http://localhost:8080/remote.html)
  4. choose "Edit config.js"
  5. choose "Add module"
  6. choose "RAIN MAP"
  7. choose "Download" (if not already done)
  8. choose "Add this module"

Log

[2025-04-28 23:39:43.441] [LOG]   [MMM-Remote-Control] Could not get defaults for MMM-BoschSmartHome. See #335. 
[2025-04-28 23:39:44.149] [LOG]   [MMM-Remote-Control] Could not get defaults for MMM-Jast. See #335. 
[2025-04-28 23:39:44.467] [LOG]   [MMM-Remote-Control] Could not get defaults for MMM-NINA. See #335. 
[2025-04-28 23:39:44.814] [LOG]   [MMM-Remote-Control] Could not get defaults for MMM-RAIN-MAP. See #335. 

config.js

let config = 
{
  address: '0.0.0.0',
  ipWhitelist: [],
  logLevel: [
    'INFO',
    'LOG',
    'WARN',
    'ERROR',
    'DEBUG'
  ],
  modules: [
    {
      module: 'MMM-Remote-Control',
      position: 'bottom_left',
      config: {
        apiKey: 'xxx'
      }
    },
  ]
}

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {module.exports = config;}

Additional info

Workaround:

After adding the module:

  1. set a position
  2. save the config
  3. restart the browser
  4. reopen the module config

Then you will see the default options:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions