MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. karsten13
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    karsten13K Offline
    • Profile
    • Following 1
    • Followers 4
    • Topics 10
    • Posts 552
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-Remote-control all working except for monitor on and off

      @diemen112 said in MMM-Remote-control all working except for monitor on and off:

      MMos

      if you refer to https://github.com/guysoft/MagicMirrorOS you must be aware of that this setup uses a docker container. This has some restrictions, not all commands from the pi are available from inside the docker container. E.g. rebooting or shutting down the pi will not work and there is no simple workaround to get this running.

      But adding vcgencmd is no problem, so I updated the docker setup by adding a new volume mount. For getting the update:

      Please cd into ~/magicmirror/run and execute:

      git pull

      cp rpi.yml docker-compose.yml:

      After that execute docker-compose up -d in the same folder.

      If you did own changes to docker-compose.yml don’t
      forget to save it before executing the above cp command …

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How do I install dependencies using npm when MagicMirror is in a Docker?

      I don’t know your docker setup but some folders (config, modules, css) should be mounted from the host. So your module data is on the host, not in the container and there is no need to run npm install in your module folder after updating the docker image (mm version).

      You have to do this if the module is updated (and uses new/updated dependencies).

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How do I install dependencies using npm when MagicMirror is in a Docker?

      you’re probably all too young to even know what those were

      unfortunately not …

      After restarting my MagicMirror2 container, nothing was any different.

      I think there is nothing different before you change the icons in your config.

      The module from Snille already includes the https://materialdesignicons.com/ (no extra installation needed except npm install). But did you use an icon name in your config as described in the readme?

      			{
      				sensor: "binary_sensor.washing_machine",
      				name: "Washing Machine",
      				icons: [{
      						"off": "washing-machine-off",
      						"on": "washing-machine"
      					}
      				],
      				replace: [{
      						"on": "Working",
      						"off": "Idle"
      					}
      				]
      			},
      
      

      Every icon name from https://materialdesignicons.com/ should work in “on”/“off”.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How do I install dependencies using npm when MagicMirror is in a Docker?

      First (forgot it in first respone): Get well soon!

      2014 is long ago concerning docker … It has advantages and disadvantages and I agree that users with minimal system experience should not use it.

      If you know what you are doing the main advantage is that you can test and run things without messing up your system. E.g. switch to another mm version is no problem, just use another container and you can test with the exactly same config and module setup. Or need another node version, just use another base image, …

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How do I install dependencies using npm when MagicMirror is in a Docker?

      @sdetweil not sure if I understand your question, with exit you leave the container but the container is still running.

      If you want stop the container there are several possibilities.

      If you used docker-compose up -d to start it you should use docker-compose down for stopping and removing.

      If you used docker run ... for starting you need the container name (e.g. mm) and then you can do docker stop mm for stopping and docker rm mm for removing (or docker rm -f mm for doing both in one statement).

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How do I install dependencies using npm when MagicMirror is in a Docker?

      as @sdetweil already mentioned you have to run the npm install command from inside the container.

      If the container is running you can run docker ps to get a list of all running containers and so get the name of the mm-container.

      Assuming the container name is mm you can run docker exec -it mm bash which is the command to log in into the container. Now you have a bash from the container and can do all things from there.

      In your case you can navigate to the modules/MMM-XY folder and execute npm install.

      Running exit will leave the container.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: How can i play Amazon music in mirror?

      Thats not possible, see e.g. https://github.com/alexa/avs-device-sdk/issues/936#issuecomment-420715770

      posted in Requests
      karsten13K
      karsten13
    • RE: MM Docker with MMM-Todoist & MMM-Admin-Interface

      tested this (in severonly mode, not on a pi) with MMM-Todoist and it works.

      We need more info about your setup:

      • which hardware? Pi, Linux VM?
      • which docker image?
      • how did you start the image?
      • how did you install the module(s)? Did you the installation from within the running container?
      • MagicMirror version?
      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: made a fresh install with magic mirror os, how to refresh after update config.js file

      cd into ~/magicmirror/run folder and execute docker-compose up -d --force-recreate.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: What is your backup and restore method?

      my approach …

      The following script must be executed in the magicmirror folder and creates another script restore.sh. This result script should be saved (on my server it is under git control) and can be executed (again in the magicmirror folder) to restore the old system (or bringing the old config to a new system).

      #!/bin/sh
      
      base="$(cd "$(dirname "$0")" && pwd)"
      
      restore="$base/restore.sh"
      config="${1:-config/config.js}"
      css="css/custom.css"
      modules="modules"
      
      # Tests
      [ -f "$base/$config" ] || (echo "config.js does not exists" && exit 1)
      [ -f "$base/$css" ] || (echo "custom.css does not exists" && exit 1)
      [ -d "$base/$modules" ] || (echo "modules directory does not exists" && exit 1)
      
      
      echo "#!/bin/sh" > $restore
      echo "" >> $restore
      echo "base=\"\$(cd \"\$(dirname \"\$0\")\" && pwd)\"" >> $restore
      
      echo "" >> $restore
      
      echo "mkdir -p \$base/config" >> $restore
      echo "mkdir -p \$base/css" >> $restore
      echo "mkdir -p \$base/modules" >> $restore
      
      echo "" >> $restore
      
      echo "cat > \$base/$config <<\"EOF\"" >> $restore
      cat <$base/$config >> $restore
      echo "EOF" >> $restore
      echo "" >> $restore
      
      echo "cat > \$base/$css <<\"EOF\"" >> $restore
      cat <$base/$css >> $restore
      echo "EOF" >> $restore
      echo "" >> $restore
      
      for dir in $(find "$modules" -maxdepth 1 -mindepth 1 -type d)
      do
        [ -f "$dir/.git/config" ] && mods="$mods $(cat $dir/.git/config | grep 'url = ' | sed 's|.*url = ||g')"
      done
      
      for repo in $mods
      do
        echo "cd \$base/$modules && git clone $repo" >> $restore
      done
      
      echo "" >> $restore
      
      for repo in $mods
      do
        moddir="$modules/$(echo $repo | sed -r 's|.*\/(.*)|\1|g;s|.git||g')"
        [ -f "$base/$moddir/package.json" ] && echo "cd \$base/$moddir && npm install" >> $restore
      done
      
      echo "Created restore script $restore" 
      
      chmod +x $restore
      
      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: Has anyone got MMM-Remote-Control working on MM 2.11 ?

      may your image is to old. You can execute docker images and see how old your images are. You can get a new version with docker pull xy (replace xy with the image name).

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: Has anyone got MMM-Remote-Control working on MM 2.11 ?

      @MrCoffee

      sorry, don’t understand your question.

      This thread is about a problem with MMM-RemoteControl with MM v2.11.

      If you use the mentioned docker setup this should have MM v2.13 where the problem is solved.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: set issue under MagicMirror OS

      My first answer was to fast, i missed the python stuff, python is also missing in the image.

      So if you need python the better approach is to build your own docker image. You can use the existing image used in MagicMirrorOS as base image and install the dependencies x11-xserver-utils, python3, …

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: set issue under MagicMirror OS

      The Package x11-xserver-utils which contains the xset command is not installed in the docker image used by MagicMirrorOS.

      The problem is you want a small docker image because pulling new images is “not very fast” on a pi. So you cannot put everything into this image someone may need but 98% not.

      In this case I think it makes sense because the usecase is not exotic and the image size increases only about 20MB. Will let you know here when you can test this.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: weatherforecast showing only two days.

      If you are using this docker setup you have to set the MM_OVERRIDE values in the docker-compose.yml file as described in the link above (and not in entrypoint.sh).

      The simple solution is to use the develop-image which contains already the changes you want to do. In this case you have to edit the docker-compose.yml file and replace the image from karsten13/magicmirror:latest to karsten13/magicmirror:develop.

      In both cases after editing the docker-compose.yml file you have to restart the container. So navigate into the directory where the docker-compose.yml file is located and run docker-compose up -d.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: MMM-RAIN-MAP (new: version 2.x)

      @ViDiBi said in MMM-RAIN-MAP:

      lon: 11.91

      I think you have a typo in your config, lon: 11.91 should be lng: 11.91

      posted in Utilities
      karsten13K
      karsten13
    • RE: MMM-RAIN-MAP (new: version 2.x)

      @bhepler

      7f1425c3-cc31-41d3-9598-daa4d21fd75b-grafik.png

      or

      8fd0daf1-33d2-4c3f-aa00-c8a3f50e846b-grafik.png

      posted in Utilities
      karsten13K
      karsten13
    • RE: MMM-NetworkScanner (spitzlbergerj)

      from your output it looks like your using https://github.com/spitzlbergerj/MMM-NetworkScanner#simple-example and not the example with columns.

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: weatherforecast showing only two days.

      @Hindenberg

      If you are using this setup https://gitlab.com/khassel/magicmirror#default-modules you need also set MM_OVERRIDE_DEFAULT_MODULES: "false"

      posted in Troubleshooting
      karsten13K
      karsten13
    • RE: MMPM and Docker

      There is already a docker image for mmpm: https://gitlab.com/khassel/mmpm
      You have to mount some dirs from MM into the MMPM container, see https://gitlab.com/khassel/mmpm/-/blob/master/docker-compose.yml

      posted in Utilities
      karsten13K
      karsten13
    • 1 / 1