This an extension for the MagicMirror². This module provides an interface to manage the magic mirror and edit the configuration from your web browser.
- Navigate into your MagicMirror's
modules
folder and run:git clone https://github.com/ItayXD/MMM-Admin-Interface.git
- Install the dependencies:
cd MMM-Admin-Interface && npm install --only=production
- Add the module to you
config.js
:{ "module": "MMM-Admin-Interface" },
- Whitelist the devices you want to access the mirror's settings from.
If you want to whitelist all devices on your local network add:
Make sure you replace
ipWhitelist: [""127.0.0.1", "::ffff:127.0.0.1", "::1", 192.168.X.1/24 , ::ffff:192.168.X.1/24"],
X
with the correct number! you can find it by runningifconfig
in your mirror.
- Go to
<HOST>:8080/MMM-Admin-Interface/
- Edit away!
You can send your module's config schema via notification, and it will be loaded.
let calender_schema = {
"properties": {"modules": {"items": {"config": {"properties": {
"calendars": {
"format": "tabs",
"options": {
"disable_array_delete_all_rows": true,
"disable_array_delete_last_row": true
},
"type": "array",
"items": {
"type": "object",
"headerTemplate": "Calender {{ i1 }}",
"properties": {
"symbol": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
}}}}}}
}
this.sendNotification ( "schema", calender_schema );
You can learn more on writing a settings schema for you module at JSON Editor.
- Cleaning up all console.log dev calls
- Improved front-end
- Improved README
- Reading and writing directly to config.js
- Accept settings schemas from other modules via notification