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

    Topics

    • B

      Help creating a shutdown button?

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting troubleshoot help button switch shutdown
      7
      0 Votes
      7 Posts
      5k 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;
    • B

      Trouble changing to 12 hour time and to Fahrenheit.

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting troubleshoot fahrenheit celcius 12 hour 24 hour
      5
      0 Votes
      5 Posts
      11k Views
      B
      @yawns I actually managed to figure it out. The problem was in the configs for the individual modules. They were set for ´config.js´ instead of ´config.units´ and ´congif.timeFormat´. Once I changed those it worked out. Thanks for the help though!
    • 1 / 1