Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
KristjanESPERANTO opened this issue Apr 28, 2025 · 0 comments
Open
1 task done

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

KristjanESPERANTO opened this issue Apr 28, 2025 · 0 comments

Comments

@KristjanESPERANTO
Copy link
Collaborator

KristjanESPERANTO commented Apr 28, 2025

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

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

No branches or pull requests

1 participant