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

    Posts

    Recent Best Controversial
    • RE: ClientOnly - toggle monitor power on and off

      This isnt working for me

      i set up pm2 with a startup script which looks like this

      cd ~/MagicMirror
      export MM_CONFIG=/mnt/magicmirror/config.js
      DISPLAY=:0 npm start
      

      I’ve verified that the config.js is present at that folder location. when I start with pm2 i get the screen that says
      “Please create a config file or check the existing one for errors”

      to test if it was permissions error on the /mnt directory files. I copied the config to ~/mmconfig and edited the script to read

      ...
      export MM_CONFIG=/home/egzachly/mmconfig/config.js
      ...
      

      And I get the same error message.

      I then confirmed that there is not an error with the config.js by copying it to ~/MagicMirror/config/config.js and starting with

      npm start
      

      And it runs flawlessly. Unfortunately, running it from there is not what I want to do. Is there a syntax error in my pm2 shell script?

      posted in Troubleshooting
      E
      egzachly
    • RE: ClientOnly - toggle monitor power on and off

      I figured that was the case. Is it possible to load MM with a config file located somewhere other than the config directory?

      posted in Troubleshooting
      E
      egzachly
    • ClientOnly - toggle monitor power on and off

      I’d like to run MM in a docker container because it’s easier for me to make changes and deploy. I was hoping I would be able to use a RPi with MM and run it clientOnly to access the docker container. This all works flawlessly. However, I’d like to be able to toggle the monitor power on the RPi running clientOnly remotely (via http request, mqtt, etc), but this only seems possible by using add third party modules which do not load when running clientOnly.

      Alternatively, could I ditch the docker container, and run MM via a config stored on a remote file share? Then I could easily update my config on that file share and use MMM remotecontrol to restart MM when I update my config.

      posted in Troubleshooting
      E
      egzachly
    • 1 / 1