Magic Mirror addon for home assistant

After installing the add-on I was able to get MM modules installed (there is a config file, it’s in a magicmirror folder in your config folder), but my bugs center around the add-on container not restarting nginx properly so I’m not able to see the updates yet. Fwiw I got to “hello world”, watched in the logs as the add-on installed the modules I specified in the config, and will just have to wait for the restart bug to get worked out or I figure out a workaround. But it does look like the wheels are in motion.

This addon creates a magicmirror folder, what is the location of the community edge addon,?


for completeness, there’s also

Thank you but you don’t understand my question, i got magic mirror addon from the edge repository, you said there was a magicmirror folder where you can edit the config file, this folder is in a different location to the the old magicmirror addon creates ?

Would also be keen to know where that config folder is created for the edge add-on

To get this working the long lived toked has to be handed over as environmental variable. For this purpose I created a magic mirror.config.js in the same folder as the mm.sh

module.exports = {
  apps : [
      {
        name: "MagicMirror",
        script: "./mm.sh",
        watch: true,
        env: {
          "HASSIO_TOKEN": „XXXXXXXXXXXX“
        }
      }
  ]
}
1 Like

In the absense of @sytone I’ve fixed what was causing the error, it was an easy fix, please try my repository. I’ve also included the pull-request and added extra info where needed.

@sytone, let me know if you want to receive a pull-request with my changes.

Any suggestions for improving the README.md are welcome, I’m not using this add-on (yet).

"What I wanted was to show a camera feed in the middle of the mirror when I would say “hey google show outside camera”
Any ideas?

here my HA Config for my magic mirror

#=======================================================================
# Do a FIND REPLACE
# MMIPADDRESS with the the magicMirror ipaddress ???.???.???.???
#=======================================================================
homeassistant:
  customize:
    package.node_anchors:
     customize: &customize
       package: 'Magic Mirror' 

    sensor.mm_display:
      icon: mdi:monitor
      friendly_name: Mirror Display
    switch.mm_display:
      icon: mdi:monitor
      friendly_name: Mirror Display
    script.mm_reboot:
      icon: mdi:lock-reset
    script.mm_shutdown:
      icon: mdi:power

sensor:
  - platform: rest
    resource: http://MMIPADDRESS:8080/remote?action=MONITORSTATUS
    name: mm display
    value_template: '{{ value_json.monitor }}'
#=======================================================================
#
#=======================================================================
switch:
  - platform: command_line
    switches:
      mm_display:
        command_on: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITORON'"
        command_off: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITOROFF'"

#=======================================================================
#
#=======================================================================
shell_command:
  mm_reboot: "curl -s 'http://MMIPADDRESS:8080/remote?action=REBOOT'"
  mm_shutdown: "curl -s 'http://MMIPADDRESS:8080/remote?action=SHUTDOWN'"
#=======================================================================
#
#=======================================================================
script:
  mm_reboot:
    alias: Magic Mirror Reboot
    sequence:
    - data: {}
      service: shell_command.mm_reboot
  mm_shutdown:
    alias: Magic Mirror ShutDown
    sequence:
    - data: {}
      service: shell_command.mm_shutdown   

I just put it a Packages folder.

he is the lovelace look

image

1 Like

Do you use “magic mirror add on”?

No

But looking at also righting my own add on I can read the api and get a list of modules loaded my python is Google reading

Thanks for the response
Can this integrate Magic Mirror Modules?
eg: Module MM-Clock

Hi there,

I added the Magic Mirror git-repo to my hass.io. After adding, nothing happened… nothing magic mirror related showed up.

But, the logging contains this message:
19-09-01 14:18:30 WARNING (MainThread) [hassio.store.data] Can’t read /data/addons/git/64f57845/magic_mirror/config.json: required key not provided @ data[‘arch’]. Got None

Could someone tell me how to deinstall magic mirror, please ?

Sorry, I had to move the improved copy of the repository, it is now here:

Don’t worry, nothing was installed.
You can just remove the repo and try again with my repo.

hi guys.

I have a question regarding lovelace and magicmirror. Is it possible to show custom cards of lovelace on magicmirror? has anyone tried it?

thanks.

hi i get this error, anyone with this problem?

[INFO] Start serveronly magic mirror process
--------------------------------------------------------------------------------
Starting MagicMirror: v2.8.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node_helper'
Loading module helpers ...
No helper found for module: alert.
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'node_helper'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/opt/magic_mirror/modules/default/updatenotification/node_helper.js:6:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

@fernandex00 facing the same issue here … could the author please take note of this?

I laso get no_module error… would you mind throwing an eye on it please?

Got it fixed by adding "cmd": "cd $MIRROR_APP_PATH/ && git checkout modules/node_modules/node_helper/index.js"

  "gitupdate": true,
  "npmupdate": false,
  "npminstall": false,
  "modules": [
    {
      "name": "MMM-OnScreenMenu",
      "git": "https://github.com/sytone/MMM-OnScreenMenu.git",
      "cmd": ""
    },
    {
      "name": "DailyXKCD",
      "git": "https://github.com/Blastitt/DailyXKCD.git",
      "cmd": ""
    },
    {
      "name": "MMM-pages",
      "git": "https://github.com/edward-shen/MMM-pages.git",
      "cmd": ""
    },
    {
      "name": "MMM-iFrame",
      "git": "https://github.com/alberttwong/MMM-iFrame.git",
      "cmd": ""
    },
    {
      "name": "MMM-homeassistant-sensors",
      "git": "https://github.com/leinich/MMM-homeassistant-sensors.git",
      "cmd": "cd $MIRROR_APP_PATH/modules/MMM-homeassistant-sensors && wget https://github.com/Templarian/MaterialDesign-Webfont/archive/master.zip && unzip master.zip"
    },
    {
      "name": "MMM-HASS",
      "git": "https://github.com/aserramonner/MMM-HASS.git",
      "cmd": "cd $MIRROR_APP_PATH/ && git checkout modules/node_modules/node_helper/index.js"
    }
  ]
}
1 Like