MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Tags
    3. switch
    Log in to post
    • All categories
    • tosti007

      MMM-TouchNavigation, A Touch Activated Profile/Layout Changer
      Utilities • touch navigation module layout profile button switch • • tosti007

      43
      2
      Votes
      43
      Posts
      23880
      Views

      KamiSchami

      Hi, suddenly the border of my buttons are black. I no longer know whether I have adjusted something. Where can i search? By the way, great module.

    • tosti007

      MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
      Utilities • user switch profile layout module • • tosti007

      91
      2
      Votes
      91
      Posts
      61329
      Views

      S

      @3squaremirror some code needs to use the force parameter on the show() or hide() functions.

      but I can’t tell from the log which code issued the show/hide. only that the profileswitcher had it locked

    • B

      Help creating a shutdown button?
      Troubleshooting • troubleshoot help button switch shutdown • • bez252

      7
      0
      Votes
      7
      Posts
      4112
      Views

      J

      @bez252 Actually what they describe might also work for you, based on a quick glance through the setup code.

      To shutdown from the node_helper you need to change some code in the file(will be in MMM-Button/node_helper.js in your file system).
      Here is an example from my module to shut down the RPi, you can replace the self.sendSocketNotification(...) in the node_helper with a similar command:

      exec('sudo shutdown -h now', null);

      Also, at the beginning of the file you need to include the exec function, like here:

      const exec = require('child_process').exec;
    • 1 / 1