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

    Posts

    Recent Best Controversial
    • RE: is there a way to control MMM-carousel with buttons?

      @cyberphox - You may be interested in checking this out too: https://forum.magicmirror.builders/topic/9291/mmm-remote-control-v2-dev-extensible-rest-api-and-socket-communication-update

      posted in Troubleshooting
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Cr4z33 No problem, sometimes I need a little prompting…

      Glad the revert works. I’ll troubleshoot more when I’m back.

      posted in Utilities
      S
      shbatm
    • [MMM-Remote-Control](v2-dev) Extensible REST API, Dynamic Menus, and Socket Communications, plus other updates

      Description

      I created an updated version of @Jopyth’s excellent MMM-Remote-Control module with an extensible REST API for controlling everything about your mirror, as well as an upgrade of the /remote.html tool to use the module’s node_helper socket connection for communication back and forth–instead of get/post calls.

      Example REST Calls:

      Turn on the monitor

      GET /api/monitor/on  (curl -X GET 'http://magicmirror:8080/api/monitor/on')
      

      Hide All Modules

      GET /api/modules/all/hide (curl -X GET 'http://magicmirror:8080/api/modules/all/hide')
      

      Here’s the link to the API README and API Documentation. The API also includes the ability to automatically interpret other modules’ anticipated notifications to create a “guessed” API to control it (created from MMM-API). Modules’ can also send a notification to this module to explicitly declare their own API actions.

      This is still in testing, and I’m still adding a few features, but I wanted to share in case anyone is interested in testing as well.

      Inspiration

      I’ve now written several modules and end up constantly including similar functions into my code (things like monitor control, module switching, etc.) for the different modules and I wanted to start migrating to a “One Remote to Rule Them All”-style module. @Jopyth’s module is an awesome base with a lot of the functions needed already built in, but I also wanted to have a better RESTful interface (inspired by @juzim’s MMM-API module natively incorporated) so I could control the mirror from my home automation devices. Eventually, I’ll scrub my other modules like MMM-OnScreenMenu and MMM-KeyBindings to just call the functions from this module and keep them focused on their own key features.

      Download

      [card:shbatm/MMM-Remote-Control]
      Recommend using the Develop Branch for most recent changes.

      Key Features and Changes

      Added:

      • REST API interface for controlling all aspects of the MagicMirror from HTTP RESTful-style GET and POST calls, based on principles from MMM-Api
        • Full API Documentation at API/README.md
        • Extensible Actions – Interprets other modules’ notifications to “guess” an API, but also allows a module to explicitly provide API actions to use.
      • Live daily updates of modules.json from the MagicMirror wiki, based on @eouia’s MMM-Remote-Control-Repository.
      • Incorporated some features found in MMM-OnScreenMenu that were not originally in this module.
        • Monitor (Connected Screen) On-Off Status and Toggle
        • If using Electron: Open Dev Tools, Minimize, Toggle Fullscreen
      • Configuration Option to send custom shell commands to use. Currently, only custom monitor on/off/status commands are supported. Addresses PR #99.

      Changed:

      • Updates to remote.html and the node_helper.js to use direct SocketIO communication back and forth instead of separate HTTP calls.
        • Future framework for following PM2 logs and more live update options.
      • General clean-up and standardization of status reporting for GET and POST calls, to original URLs and to new API URLs.
      • Updated to ES2015 (ES Version 6) function calls in most locations.
      • Added USER_PRESENCE controls from AgP42, PR #84
      • Added translations from BKeyport, PR #103
      • Added SHOW/HIDE/TOGGLE ALL modules option per request from Rene1709, Issue #101
      posted in Development
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 Hey, sorry, I’m out of town and don’t have access to test anything related to this module (no easy access to cameras or a RPi) for the next few weeks.

      There is definitely a glitch in the calls to stop and restart the streams, but I can’t test right now. You can try backing up to a previous version and see if it was the latest updates to cause the problem: try using git checkout f583553

      I will take a look as soon as I can, and on a side note, there is now official support for VLC w/ Hardware Accelerated Decoding on Raspbian, I am planning to see if it would be better to abandon OMXPlayer in favor of VLC.

      posted in Utilities
      S
      shbatm
    • RE: is there a way to control MMM-carousel with buttons?

      Which version of MMM-Carousel are you using? If you use this one: MMM-Carousel w/ Slide Navigation you can navigate left and right or jump to a particular slide by sending a notification from another module.

      Just pushed an update to make this even easier. See the details at the bottom of the README

      posted in Troubleshooting
      S
      shbatm
    • RE: MMM-Carousel switching slides using MMM-Buttons

      Which version of MMM-Carousel are you using? If you use this one: MMM-Carousel w/ Slide Navigation you can navigate left and right or jump to a particular slide by sending a notification from another module.

      Just pushed an update to make this even easier. See the details at the bottom of the README

      posted in Troubleshooting
      S
      shbatm
    • RE: Is there a "Rasbian simulation enviroment" for windows??

      Staying away from the implications of installing on your corporate computer…

      Try Debian for Linux Subsystem for Windows if you use Windows 10, you can install it from the Windows Store.

      EDIT:
      To use the store app you have to enable the WSL subsystem first by following the guide.
      https://docs.microsoft.com/en-us/windows/wsl/install-win10
      Afterward just install the “Debian GNU/Linux” app from the windows store.

      posted in General Discussion
      S
      shbatm
    • RE: How do all of you controle (/interact with) your MagicMirror modules?

      A couple of shameless plugs for my own modules:

      Title Description
      MMM-KeyBindings A module for getting bluetooth remote control and keyboard inputs
      MMM-OnScreenMenu Simple On-Screen Menu for controlling the MagicMirror²
      MMM-AlexaOnOff Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      In addition, I’m currently working on a new version of MMM-Remote-Control with a RESTful API – Which is an extension/combination of the original MMM-Remote-Control and MMM-Api modules. See details on the API here. It will allow you to control the mirror with simple URL calls like: http://magicmirror:8080/api/monitor/off to turn off the screen.

      The end goal is to get rid of duplicate functionality in all of my modules (like exposing external routes, turning on/off the monitor, showing/hiding modules, etc.) and use API calls or Module Notifications for controlling everything, plus allow other modules to customize and integrate their own API.

      This part is still an active work in progress, but if anyone is interested in testing, please let me know.

      posted in General Discussion
      S
      shbatm
    • RE: MMM-Hue-Lights - new module for your Philips Hue lights!

      @michael5r Awesome looking module! Extremely professional looking.

      When I get time I’m definitely going look at integrating with my MMM-ISY module to render on top of the Floorplan (my ultimate goal is to use a MagicMirror instance as a web-based home control interface-slash-ISY/Hass.io/Hue front-end on my mirrors, tablets, etc).

      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @reropa1904 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):

      Is there any way to execute two commands?

      Out of curiosity, which module are you using for the show/hide?

      I should be able to add the ability to send multiple notifications pretty easily when I get a chance.

      EDIT: Done, you can now have multiple notifications fire when a “device” is turned on or off (Note: I was not able to fully test on the Mirror but it works in the browser, let me know if you have issues).

      Update your version and see the last example at the bottom of the updated README

      To update:

      cd ~/MagicMirror/modules/MMM-AlexaOnOff/
      git fetch && git pull
      
      posted in System
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Can you please fix this?

      Please post your PM2 logs when this happens so I can try and troubleshoot. (Run pm2 logs in an SSH terminal, or post the excerpt from the files in ~/.pm2/logs/).

      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @richland007 Yes, that’s correct about all the modules showing up as switches. I haven’t tested a maximum number of modules yet, so if you hit a limit let me know. You may have to re-run Discover a couple times if it takes longer than 20s to find all of your devices.

      I feel your pain about MirrorMirrorOnTheWall, that’s why I made this one for myself.

      @MoreLinux Glad you got it working!

      @chassain-0 I’ll update the minimum version. I run V2.6-dev with no issues and didn’t test lower versions.

      posted in System
      S
      shbatm
    • RE: MMM-DarkSkyForecast - Yet ANOTHER weather module

      @j-e-f-f Thanks. I got it with the following. I was just wondering if you had a config option for it that I missed.

      .MMM-DarkSkyForecast .forecast-container .wind-gusts, 
      .MMM-DarkSkyForecast .forecast-container .accumulation {
          display: none !important;
      }
      
      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @richland007 Yes, it can, in conjunction with another module like MMM-Remote-Control or MMM-OnScreenMenu.

      Config section to do this with MMM-Remote-Control (see here for specifics on the module identifier needed):

      {
          module: 'MMM-AlexaOnOff',
          config: {
              devices: [{ 
                    name: "Clock Module",
                    on: { 
                      notification: "REMOTE_ACTION",
                      payload: { action: "SHOW", module: "module_1_clock" }
                    },
                    off: { 
                      notification: "REMOTE_ACTION",
                      payload: { action: "HIDE", module: "module_1_clock" }
                    },
              }]
          }
      }
      

      Config section to do this with MMM-OnScreenMenu:

      {
          module: 'MMM-AlexaOnOff',
          config: {
              devices: [{ 
                    name: "Clock Module",
                    on: { 
                      notification: "ONSCREENMENU_PROCESS_ACTION",
                      payload: { actionName:'moduleShow1', name: 'clock' }
                    },
                    off: { 
                      notification: "ONSCREENMENU_PROCESS_ACTION",
                      payload: { actionName:'moduleHide1', name: 'clock' }
                    },
              }]
          }
      }
      
      posted in System
      S
      shbatm
    • RE: MMM-DarkSkyForecast - Yet ANOTHER weather module

      @j-e-f-f Awesome module! Great replacement for MMM-Wunderground.

      Is there a way to turn off the total precipitation and max wind speed for the forecasts in the table, without turning it off for the current conditions?

      posted in Utilities
      S
      shbatm
    • [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      Description:

      Simple Mirror Control and module notifications from your existing (external) Home Assistant (Alexa/Google Home/HASS.io) with minimal setup using the Wemo protocol.

      Yes, this is yet-another-Alexa-module; however, I hadn’t found one that did not require setting up some special Alexa skill or configuring an AWS account, etc.

      This module uses the Belkin Wemo protocol (via fauxmojs) to receive on/off notifications from an Amazon Echo (or Google Home Hub, or anything that can discover and control a Wemo device). It creates “virtual” Wemo devices on your network that the home assistant can find, and then receives ON or OFF commands for those devices. The module simply takes these, and converts them to module notifications for other modules to work with.

      Main Features:

      • Simple setup. Install the module, then say, “Alexa, discover my devices”. The virtual devices will populate and you can start controlling them.
      • Doesn’t add redundant features.
        • I didn’t want to keep baking in the same functions that so many other modules already have, so this module just takes an ON or OFF command, and turns that into whatever notification you need it to be. Customize all the details in your config file.

      Examples:

      • Create a “Magic Mirror” virtual device, use a module like MMM-OnScreenMenu or MMM-RemoteControl to turn on and off the screen when you say “Alexa, turn on Magic Mirror”. – See detailed example here
      • Create a “device” for each profile in MMM-ProfileSwitcher. Setup the notification so when you say “Alexa, turn on Mary’s Mirror” it tells MMM-ProfileSwitcher to switch to that profile.

      Download:

      [card:shbatm/MMM-AlexaOnOff]


      Current Version 0.1.1 – CHANGELOG

      posted in System
      S
      shbatm
    • [MMM-Logging] Module for better Node.js console logging with Timestamps and Function Calls

      Description:

      This is a simple module which extends the Node.js console logging capabilities of the MagicMirror² project through implementation of the tracer Node.js module, including adding timestamps, call sources, and stack traces.

      By default, this module will intercept and format ALL console log messages from the MagicMirror instance once it is loaded so no additional changes need to be made to individual modules. If they log output using the standard console.log() or console.error() they will be reformatted and pretty printed.

      Examples:

      Before MMM-Logging:

      0|mm  | Starting MagicMirror: v2.6.0-dev
      0|mm  | Loading config ...
      0|mm  | Loading module helpers ...
      0|mm  | Initializing new module helper ...
      0|mm  | Module helper loaded: MMM-Logging
      0|mm  | No helper found for module: alert.
      

      After MMM-Logging:

      0|mm  | Starting MagicMirror: v2.6.0-dev
      0|mm  | Loading config ...
      0|mm  | Loading module helpers ...
      0|mm  | 2018-12-05T12:42:51 <log> Initializing new module helper ... (js/app.js:128 loadModule)
      0|mm  | 2018-12-05T12:42:51 <log> Module helper loaded: MMM-Logging (js/app.js:161 loadNextModule)
      0|mm  | 2018-12-05T12:42:51 <log> No helper found for module: alert. (js/app.js:163 )
      

      Download:

      [card:shbatm/MMM-Logging]


      Current Version: 1.0.1 – CHANGELOG

      posted in System
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @citizendevpi I started looking at VLC as an alternative to OMXPlayer but didn’t make it very far (honestly, just not enough time).

      The most promising looked to be webchimera.js with VLC built for hardware acceleration, but the original repo for webchimera.js is marked abandoned. It looks like at least 1 fork is still active, but I didn’t get as far as testing anything.

      If you have the capability to pursue it, I’d love some help. From what I have looked at, it should be a close-to-drop-in replacement for the FFMPEG version of this Module, and if that works, I could eliminate all of the OMXPlayer references (read: headaches).

      References I’ve found:
      https://thepi.io/how-to-compile-vlc-media-player-with-hardware-acceleration-for-the-raspberry-pi/
      https://github.com/limoragni/WebChimera.js

      posted in Utilities
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      It is now offset compared to its module position.

      Play with the moduleOffset and absPosition config options. Search this forum for those and check out the README on GitHub for details of what each one does.

      posted in Utilities
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @cr4z33 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      I found out that the stream stops as soon as I ask something to Google Assistant (MMM-AssistantMk2 + MMM-Hotword by @Sean ) and it replies.

      Please check the web browser console (ctrl+shift+i) and see if for some reason AssistantMk2 or Hotword are sending a pause/hide command to other modules. You would see something like: MMM-RTSPSTREAM is suspended.... Also, after the stream disappears, check the status of PM2 (pm2 status from ssh/terminal) and see if omx_streamX is still running. That will let me know if the module is telling the stream to stop or if omxplayer is giving up.

      Regarding the border alignment, search this forum and/or the closed issues on GitHub, it’s been answered before. @evroom’s solution looks correct to hide the border, but I can’t remember for sure.

      Mini-rant: OMXPLAYER is the lowest resource player I’ve found to use for playing video streams on a Pi, but frankly, it’s a finicky b***h and has terrible logging to inform you of the problem. 90% of the issues raised with this module are caused by omxplayer itself, which, unfortunately I don’t have any better way to solve than any other user. That’s why I use pm2 to manage the streams so it will at least attempt to restart when it crashes.

      @evroom, regarding the streams not stopping… Last week I found a bug in PM2’s API, calling stop on a process from node doesn’t work. I will work on a workaround until the PM2 devs correct the issue.

      posted in Utilities
      S
      shbatm
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 6 / 11