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

    Posts

    Recent Best Controversial
    • Introducing MMM-YouTubeWebView Module

      I have released the initial version of the MMM-YouTubeWebView MagicMirror module at https://gitlab.com/doctorfree/MMM-YouTubeWebView

      This module allows embedding of YouTube videos, either singly or as a list of YouTube video IDs, or as a public YouTube playlist ID. The module uses the Electron webview tag rather than an iframe in an attempt to avert YouTube blocking the requested video for any of several reasons.

      The webview tag is used to embed ‘guest’ content in the MagicMirror Electron app. The guest content is contained within the webview container. An embedded page within MagicMirror controls how the guest content is laid out and rendered.

      Unlike an iframe, the webview runs in a separate process than MagicMirror. It doesn’t have the same permissions and all interactions between MagicMirror and embedded content will be asynchronous. This keeps MagicMirror safe from the embedded content.

      Under the hood webview is implemented with Out-of-Process iframes (OOPIFs).
      The webview tag is essentially a custom element using shadow DOM to wrap an
      iframe element inside it. So the behavior of webview is very similar to a
      cross-domain iframe. As such, it can be used to safely avoid cross-domain
      policy restrictions that may prevent access to web content.

      This module is based upon both the MMM-WebView module and the MMM-EmbedYoutube module with added functionality. There are some limitations to embedding with webview. These are detailed in the README. There may be a better way to do what I have done here. Possibly I should be using the Electron BrowserView instead. I would be open to suggestion. However, this release does accomplish what I set out to do - I can play my YouTube playlists and lists of YouTube videos without YouTube telling me the video is unavailable which is what I was seeing when using an iframe.

      This is the initial release so I expect there will be significant changes in the near term. I’ve thoroughly tested it but expect issues will arise. The module is a work-in-progress and in active development.

      Any feedback will be greatly appreciated.

      posted in Entertainment youtube webview embed
      doctorwhenD
      doctorwhen
    • MagicMirror Voice Control with Siri and Google Assistant

      I’ve published a couple of articles on how to enable voice control of MagicMirror using either Apple Siri or Google Assistant. These guides can be found in the MirrorCommand Wiki at:

      • Mirror Voice Commands with Siri
      • Mirror Voice Commands with Google Assistant

      These are not simple setups. I would consider these DIY projects for the tinkering minded. They do, however, work - at least in my environment. Both methods of voice control rely on the installation and configuration of a MagicMirror command line interface provided by the MirrorCommand Package. In addition to providing the convenience of voice control of MagicMirror, the MirrorCommand package enables automation of MagicMirror actions and the ease/simplicity of command line control.

      Siri voice control of MagicMirror relies on the “Run script over SSH” option for Apple Scripting Shortcuts. on an iOS device. The Shortcut runs a shell command via SSH. Enabling and configuring SSH pose the highest hurdle for most.

      Google Assistant voice control of MagicMirror requires a MagicMirror with the MMM-GoogleAssistant and MMM-Detector modules activated and configured properly. Setup for this method is considerably more difficult but once accomplished results in a superior quality setup with far more ease and flexibility of use.

      MirrorCommand releases can be installed on Debian based Linux systems, RPM based Linux systems, and a Raspberry Pi. Debian and RPM format packages are provided for easy deployment.

      Let me know how to improve these how-to guides and what better ways you might suggest for voice control of MagicMirror. Perhaps you have suggestions for easier use of the Google Assistant SDK to provide voice control or maybe Home Assistant has some cool way to do this. Enjoy!

      posted in General Discussion
      doctorwhenD
      doctorwhen
    • MMM-Space

      I don’t think this module gets enough love. I use it to separate the overlap between placement of modules in my Magic Mirror. To me, this module is invaluable. My Hue lights were overlapping the Now Playing from Roon so I inserted a 150px space with the MMM-Space module and viola, no overlap.

      Thanks to the author!

      https://github.com/grabenhenrich/MMM-Space

      IMG_1145.png

      posted in Utilities
      doctorwhenD
      doctorwhen
    • RE: MMM-Scenes

      Very cool. Thanks for the excellent module, i’m integrating it into my mirror without much difficulty. The only problem I’ve run into thus far is with the example config which I had to modify slightly to get it working on my setup.

      All I changed was the weather apikey but that didn’t work (blank screen, electron exits). I then changed the declaration of config from const to var and the example config works:

      const config = {
      to
      var config = {

      Otherwise, wow!

      posted in System
      doctorwhenD
      doctorwhen
    • MirrorCommand Version 4.0.1 Release 1

      An updated release of MirrorCommand is available at https://gitlab.com/doctorfree/MirrorCommand/-/releases/v4.0.1r1

      Version 4.0.1 Release 1 of MirrorCommand replaces the use of module MMM-DarkSkyForecast with module MMM-OpenWeatherForecast. Apple bought DarkSky and is removing free access to the API.

      See the MirrorCommand README for additional info.

      The Mirror Command Line project provides scripts to enable command line control of the MagicMirror system over a local network.
      The MirrorCommand Debian and RPM format package installation scripts perform automatic installation and configuration of a MagicMirror including:

      • Automated installation of the MagicMirror software if not already installed
      • Automated configuration of the MagicMirror
      • Automated installation and configuration of several MagicMirror modules
      • PM2 process manager installation and configuration
      • Semi-automated key management to enable a single source for adding, storing, and managing the several keys necessary to activate many MagicMirror modules
      • Hundreds of MagicMirror configuration files preconfigured with layouts for both portrait and landscape mode displays and module activation

      The mirror command can be installed on your MagicMirror to issue MagicMirror commands. Currently the command line MagicMirror control scripts include support for:

      • Specifying the MagicMirror configuration file to activate
      • Starting, stopping, and restarting the MagicMirror
      • Display of various system info
        • Temperature
        • Memory
        • Disk
        • Usb
        • Network
        • Wireless
        • Screen
      • List active/installed MagicMirror modules
      • List available MagicMirror configuration files
      • Rotate the MagicMirror screen
      • Get or set the brightness level
      • Control MagicMirror video playback
        • Start/Stop video play
        • Replay video
        • Play next video
        • Hide video playback module
        • Show video playback module
      • Control the MagicMirror audio output volume level
      • Get MagicMirror status
      • Update the MagicMirror installation or update installed modules
      • Auto generation of new MagicMirror configuration files
      • Interactive mode via menu dialogs
        • Invoked with no arguments the mirror command displays a command menu.

      MirrorCommand has been successfully deployed and tested on a Raspberry Pi 4 and Raspberry Pi 400 running Raspbian Buster. It has also been deployed and tested on Ubuntu Linux 20.04 and Fedora Linux 35 with generic x86_64 hardware.

      posted in General Discussion
      doctorwhenD
      doctorwhen
    • 1 / 1