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

    Posts

    Recent Best Controversial
    • RE: npm start and black screen

      @dexterbeng I would guess 15-30 seconds. pm2 has to detect that the process has terminated and restart. It depends on the polling interval for pm2 (which, as far as I can tell from their docs/issues, is 100ms, and cannot be changed – seems more frequent than I expected).

      Why are you killing mm with Ctrl+Q? Better to use pm2 restart mm or even pm2 start mm --watch which will also restart mm after file system changes (you may need to configure which directories to watch).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: npm start and black screen

      @dexterbeng If you have pm2 and the mm script installed, it’s simplest to use pm2 start/stop mm. However, npm start dev is still useful to debug server and client consoles, just don’t forget to first pm2 stop mm as you describe.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: magic mirror as a smart clock

      @MrRodz If you install MMM-Remote-Control and correctly configure the ipWhiteList, it will install a generic receiver to receive commands to your MM via a local HTTP GET request.

      You can then use an HTTP GET request like http://192.168.178.240:8080/remote?action=SHOW&module=module_0_MMM-GoogleMapsTraffic to trigger a module/action, switch profiles, or create your own custom actions.

      I’m terms of GPIO for your doorbell, see MMM-Buttons or MMM-PIR-Sensor. It seems to me you want to receive a GPIO event, switch profiles, and start a timer to later revert your profile to the original – that’s basically MMM-PIR-Sensor (movement, turn on screen, set timer to turn off).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: MMM-Slack stop randomise messages

      Hi @saibam,

      Just change:

      var randomMessageId = Math.floor(Math.random() * this.slackMessages.length);
      

      to the following:

      var randomMessageId = 0;
      

      It should work (unrandomizing the order), so long as the slackMessages array is in ascending order. If not, and it’s in descending order, set to this.slackMessages.length - 1 instead of 0.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How can I show a borderless (Bash) shell terminal window on top of MM?

      @E3V3A You can experiment with urxvt and with URxvt*borderLess:true in .Xdefaults. You can then use ChildProcess.exec() (primer here) to launch urxvt which should also permit you to kill it from MM.

      posted in Development
      N
      ninjabreadman
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      @E3V3A Some monitors, but almost all television displays turn off after delay (and then cannot be woken in software).

      That, and some folks have complained that they can’t hear a podcast or Alexa because their integrated speakers turn off when the monitor is in powersaving.

      You’re right, it takes some experimentation to tailor to a given use case/situation depending on requirements.

      posted in Tutorials
      N
      ninjabreadman
    • RE: node_helper and python communication

      @jmagsumbol Should the function be simply called start()? Does python_start() ever get called?

      Alternatively, with a slight modification of MMM-PIR-Sensor, I think this could all be done within Node.js. You’d just need to examine how to handle the GPIO of the ultrasonic sensor in however it differs from a PIR sensor.

      For actually turning the screen off and on, check out @cruunnerr‘s guide: https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app/7

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Calendar and Newsfeed stop Updating after 1-2 hours

      @osoWP95

      If you’re using pm2, you can use pm2 logs to view the server logs (or view them directly in ~/.pm2/logs).

      You can also use npm start dev to start in dev mode and see the browser (client) console (be sure to stop the PM2 process first, e.g. pm2 stop mm).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thanks, @cruunnerr. Very comprehensive. Can I suggest you also add how to black out but not disable the monitor? I’ve seen this question a few times. It is often important when users:

      1. want to still use the integrated audio out of a monitor, or
      2. are using a TV style display where it will turn off without signal, and then cannot be turned back on by the Pi.

      I’ve seen solutions using xset dpms force off and another using chvt to display a blank virtual terminal, but there may be other (even better) solutions.

      posted in Tutorials
      N
      ninjabreadman
    • RE: Changing the length of the line under the header

      @MadScientist I’ve always liked W3Schools. It’s very concise, but introduces each concept and lets you play with it.

      There are also learning/coursework sites like CodeAcademy, Code School, udemy, etc.

      Groups like Ladies Learning Code also have slides and sample code available to walk you through.

      There is CSS, but there are also media queries, CSS animations, layout frameworks, CSS extensions/preprocessors like Sass & LESS, among other things. Let alone different limitations, workarounds, and other peculiarities for different desktop and mobile browsers.

      Finally, the best way to learn and retain is often to apply it. Building things will often reinforce whatever you learn through the sites and materials above.

      posted in Custom CSS
      N
      ninjabreadman
    • 1
    • 2
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 18 / 21