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
    • Check Statuses via JSON API Calls (MMM-JSONStatusChecker)

      Description:

      MMM-JSONStatusChecker will periodically call a URL and display a “true / false” (or “connected / disconnected”) status based on the results of a value in a JSON response from the API call.

      Multiple instances of the module can be used to call different URLs/APIs using the same background helper. Each instance has it’s own configuration and refresh time.

      See the config options on GitHub for full details, but everything can be customized; including: the key/value in the response being evaluated, the icon displayed, the CSS classes applied for true/false, the text for each status, and even whether or not to show an alert on status change.

      Screenshots:

      Download:

      [card:shbatm/MMM-JSONStatusChecker]


      Version 1.0.0

      • Initial Release;

      Please let me know if you find this useful. leave any comments or issues here or in the GitHub Repo Issues.

      posted in Utilities
      S
      shbatm
    • RE: PM2 MM2 Not starting on start up

      I solved the same issue by using the command:
      sudo pm2 startup systemd -u pi --hp /home/pi

      And then using pm2 save to save the state.

      posted in Troubleshooting
      S
      shbatm
    • [MMM-ISY] Graphical Home Automation Status and Control for ISY Users

      Description:

      Inspired by the MMM-OpenHABFloorplan module, this is a module for the MagicMirror² to connect to an ISY device from Universal Devices (http://www.universal-devices.com) using a WebSocket. It will display a floor plan showing live updates of which Insteon, Z-Wave, or ISYv5 Node Server devices are turned on/off (including dimming levels), which alarm zones are tripped, and the status of the thermostats.

      Setup takes a little while as you have to create your own floorplan in SVG (Scalable Vector Graphics) format using something like Inkscape or Adobe Illustrator. It can be as simple or as complex as you want it to be, the most important thing is the tagging. Whatever style you make your lights, lamps, outlets, or devices–as long as you tag them with the correct ISY address format–they will be picked up by the module automatically and their status updated on the graphic. The screenshots above are an “extreme” example SVG image which was created from an AutoCAD blueprint originally, with icons from various sources dropped in to represent the devices. The config options for the module give you even more advanced control, by letting you set custom display options for the different devices.

      New in version [1.0.7]+ – Control popups can now be enabled for various devices, to directly control your home automation from a touchscreen or any web browser with the MagicMirror page loaded.

      Screenshots:

      Live view:

      Download:

      [card:shbatm/MMM-ISY]


      Version 1.0.7 - Initial Controls Implementation

      Added: Initial implementation of a control system using Bootstrap 4 to display tooltip style popups when devices are clicked.

      Version 1.0.0

      • Initial Release

      [EDITED 27-APR-18 WITH NEW VERSION]

      posted in Utilities isy home automation insteon thermostat floorplan
      S
      shbatm
    • RE: Multiple Pages of Modules using CSS

      @strawberry-3-141 @Anhalter42 – Wanted to thank you both for the suggestions.

      I was able to fork and tweak @barnabycolby’s MMM-Carousel to manually switch between slides and show the page dots and navigation arrows without touching any core code. I also added the ability to move or change appearances of each module on a per-slide basis.

      If anyone is interested my fork w/ navigation enabled is here: MMM-Carousel w/ Navigation & Moveable Modules – the navigation uses my module MMM-KeyBindings, which isn’t necessary if you just want to use a mouse or touchscreen.

      0_1495391253670_20170520_201316.jpg

      posted in Development
      S
      shbatm
    • MMM-KeyBindings: Control your mirror with Amazon Fire Stick Remote and Generic Keyboard Inputs

      Description:

      MMM-KeyBindings is a Utility Module to accept inputs from an Amazon Fire Stick Remote (or any bluetooth-connected HID device) as well as generic keyboard inputs and pass them to other modules for control.
      0_1494777951798_fire_stick_remote.jpg

      The module can perform basic functions such as turning on/off the screen based on certain remote keys, but the real power is in the ability to send key press notifications to other modules. My plan is to use this to control other plugins such as my fork of @barnabycolby’s MMM-Carousel (Fork w/ Navigation Enabled: MMM-Carousel w/ KeyBindings and MMM-ProfileSwitcher to switch screens based on remote control input. In the future I also plan to add an on-screen menu with functions similar to those found in the MMM-RemoteControl module.

      See the README for full details on the features.

      Download:

      [card:shbatm/MMM-KeyBindings]

      Version 1.3.0 - Updated 3-Jan-2019 - [BREAKING CHANGES] See details here

      posted in Utilities keyboard remote control fire stick remote bluetooth
      S
      shbatm
    • RE: Multiple Pages of Modules using CSS

      @strawberry-3-141 - Thanks for the suggestion!

      I had looked at it briefly, but saw it used timers to rotate automatically and I was looking for something semi-static that I could use to ‘page through’ with a remote when I got one set-up. Looking more closely, it wouldn’t be too hard to fork and replace the timers with notifications.

      posted in Development
      S
      shbatm
    • RE: Can I control a relay on MagicMirror2?

      You may want to take a look at the MMM-PIR-Sensor module and see if you can adapt it for your needs. It includes the ability to control a relay for turning on/off the monitor.

      posted in Development
      S
      shbatm
    • Multiple Pages of Modules using CSS

      Update 21-May-17

      I was able to fork and tweak @barnabycolby’s MMM-Carousel to manually switch between slides and show the page dots and navigation arrows without touching any core code. I also added the ability to move or change appearances of each module on a per-slide basis.

      If anyone is interested my fork w/ navigation enabled is here:

      [card:shbatm/MMM-Carousel]

      The navigation uses my module MMM-KeyBindings, which isn’t necessary if you just want to use a mouse or touchscreen.

      0_1495391253670_20170520_201316.jpg

      Original Post Below:

      After a bit of searching for the best way to manage multiple sets of modules on a screen with fairly limited real-estate, I decided to try my hand at rolling my own solution. I wanted to have multiple screens of modules that I could page through and see different information (eventually via remote control). This isn’t a stand-alone module yet and there are probably cleaner / easier ways of doing this, but I wanted to share my progress in case anyone else was interested.

      My Mirror uses a pure-CSS3 solution to create multiple “pages” of modules using full screen sliders without relying on any JavaScript–although JS can be used to change the page by simply updating which radio button is checked programmatically.

      Notice the small faint arrows and dots along the bottom of the screen in the attached images. The original source for the CSS is from here

      0_1494366227199_Page1.PNG
      0_1494366269398_Page2.PNG

      The basic principle is to duplicate the containers in index.html onto up to 4 different “sliders”; then depending on which page you want a particular module to appear on, you modify the position in config.js, appending slideXmods_ to the beginning.

      For example, to show a clock on Slide 2, the config now looks like:

              {
                  module: "clock",
                  position: "slide2mods_top_left",
                  config: {
                  	displayType: "both"
                  }
              },
      

      The modified versions of index.html and my css/custom.css can be found in the attached zip. The reason I haven’t made this into a Module yet is because I also needed to modify js/main.js to account for the changes to the position names.

      The changes required in js/main.js are:

      • Modify the first line of selectWrapper (Line ~65) to use RegEx and replace all instances of “_” in the position variable.
      var classes = position.replace(/_/g," ");
      
      • Modify the first line of updateWrapperStates (Line ~275) to account for the rest of the new position names.
      var positions = ["slide1mods_top_bar", "slide1mods_top_left", "slide1mods_top_center", "slide1mods_top_right", "slide1mods_upper_third", "slide1mods_middle_center", "slide1mods_lower_third", "slide1mods_bottom_left", "slide1mods_bottom_center", "slide1mods_bottom_right", "slide1mods_bottom_bar", "slide1mods_fullscreen_above", "slide1mods_fullscreen_below", "slide2mods_top_bar", "slide2mods_top_left", "slide2mods_top_center", "slide2mods_top_right", "slide2mods_upper_third", "slide2mods_middle_center", "slide2mods_lower_third",  "slide2mods_bottom_left", "slide2mods_bottom_center", "slide2mods_bottom_right", "slide2mods_bottom_bar", "slide2mods_fullscreen_above", "slide2mods_fullscreen_below" 
       /* Uncomment lines below to add more slides
       , "slide3mods_top_bar", "slide3mods_top_left", "slide3mods_top_center", "slide3mods_top_right",  "slide3mods_upper_third", "slide3mods_middle_center", "slide3mods_lower_third",  "slide3mods_bottom_left", "slide3mods_bottom_center", "slide3mods_bottom_right", "slide3mods_bottom_bar", "slide3mods_fullscreen_above", "slide3mods_fullscreen_below",  "slide4mods_top_bar", "slide4mods_top_left", "slide4mods_top_center", "slide4mods_top_right",  "slide4mods_upper_third", "slide4mods_middle_center", "slide4mods_lower_third",  "slide4mods_bottom_left", "slide4mods_bottom_center", "slide4mods_bottom_right", "slide4mods_bottom_bar", "slide4mods_fullscreen_above", "slide4mods_fullscreen_below" */
       ];
      

      Download Modified Files

      posted in Development
      S
      shbatm
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 21 / 21