MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. shbatm
    3. Best
    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: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

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

      What do you think?? i do not see any errors

      I’m at a loss. I ran the install on a fresh install of MagicMirror (v2.7.0-dev) on the latest version of Raspbian with Desktop (Nov’18) and I got the output shown in this Gist: https://gist.github.com/shbatm/886fc811d314d136ccedeaf5663e5881. Notice the FauxMo service started. Listening on 192.168.10.92:21900 on the third to last line.

      When I copy and paste your config section into my config it works fine. I run Discover Devices on Alexa and she finds “Horoscope Module” as a Wemo Switch.

      What version of MagicMirror, node, and Raspbian are you using? Is it the most recent?

      Try running FauxMo by itself and see if you can find the “fake” devices it creates:

      cd ~/MagicMirror/modules/MMM-AlexaOnOff/node_modules/fauxmojs/example
      node example.js
      

      You should see: started.. and then be able to discover ‘office light’ and ‘office fan’

      Edit: I did notice one thing: unless you’re using my fork of MMM-Remote-Control, the SHOW/HIDE functions require the module identifier, not the module name. The identifier will be something of the form module_4_MMM-horoscope and is the HTML ID of the module’s container (you can find this by using DevTools or digging into MMM-Remote-Control further.

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

      Additional Features Added:

      • Dynamic Module Control menu – uses the new API to create a Module Control menu on the remote page to control other modules via notifications.
      • Custom Menu – ability to specify your own custom menu items from a file (for advanced users)
      • Use PM2 API to control restarts/stops of MM. Can also support starting/stopping other PM2 scripts by passing processName: “scriptToUse” in the query payload.

      Example Dynamic Menu for MMM-Carousel w/ Navigation

      0_1546390145459_ModuleMenuExample.png

      posted in Development
      S
      shbatm
    • RE: Clean installation... fails left and right

      I’m seeing issues with the newest “Raspbian Stretch with desktop image” (Nov 2018–non-bloatware) as well – I did a fresh, manual installation, no errors, but electron will not start with the OpenGL driver (full KMS or fake KMS) enabled. It runs through everything fine on npm start but then just stalls at “Launching application.” If I disable OpenGL, it works fine.

      Tested at Tag v2.6.0 and on the develop branch (2.7.0-dev), same issues.

      EDIT: Definitely an issue with electron: adding app.disableHardwareAcceleration(); in js/electron.js makes it open fine.

      EDIT 2: Opened an issue for this #1500, looks like Electron v3.0.13 works.

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

      @djuscha If you switch the order, does the opposite one show up? You may need to change the CPU/GPU memory split in your Pi – sudo raspi-config find the “Memory Split” option and increase from 64 to 128.

      posted in Utilities
      S
      shbatm
    • RE: Multipages

      @RamblingGeekUk – Check out my fork of MMM-Carousel with Pages/Navigation. You can find it here (also now linked in the bottom of the post above).
      [card:shbatm/MMM-Carousel]

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

      The example runs on different ports (10000, 10001 I think) but I don’t know why Alexa wouldn’t find the devices. There must be something with your network or firewall causing an issue.

      The module may not be starting properly because it has a minimum MM version of 2.5.0. If you don’t want to upgrade, you can try changing line 21 in MMM-AlexaOnOff.js to match your version.

      About MMM-Remote-Control: see https://github.com/Jopyth/MMM-Remote-Control#list-of-actions for more details. The IDs are created by MM when it starts, and yes it should match the order in your config. The easiest way I’ve found to get these is to open the remote.html page on your computer, go to Edit View, and right-click > Inspect Element on one of the menu items. You’ll get something like this:
      0_1546541069499_Capture.PNG

      I have a Pull Request for MMM-Remote-Control pending that will let you use the names directly, but it hasn’t been incorporated yet.

      posted in System
      S
      shbatm
    • RE: Clean installation... fails left and right

      @dazza120

      cat ~/MagicMirror/node_modules/electron/package.json | grep '"version":'
      

      Upgrade with:

      cd ~/MagicMirror/
      npm install electron@3.0.13
      
      posted in Bug Hunt
      S
      shbatm
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      STATUS UPDATE

      Just wanted to give everyone a quick status update about this module.

      Bad news first: the current version in the master branch is malfunctioning. Please revert to a previous version (see post above) until I get time to undo the commit.
      EDIT - I’ve reverted the changes that I think broke the master channel. Please try updating your module to the current master branch and test.

      Good news! The reason I haven’t fixed the main branch yet is because the most recent version of the Raspbian image (Nov '18) has introduced a native version of VLC with hardware acceleration. I am actively working on a version of this module that will abandon OMXPlayer in favor of VLC, and have a working prototype in the develop branch for anyone interested in testing!

      Requirements:

      • Must have the most recent version of Raspbian with Desktop (> Nov '18). Google how to upgrade, but you may be better off starting with a fresh image.
      • Enable OpenGL (Fake KMS) driver in raspi-config
      • Increase GPU/CPU Memory Split to at least 128 (do this after enabling OpenGL because it will reset it to 64).
      • Upgrade Electron to v3.0.13 (v2.0.16 in MM v2.6 is not working with OpenGL–see MM Issue #1500:
          cd ~/MagicMirror
          # Remove the node_modules folder to start fresh
          rm -R ./node_modules
          # Either manually update the required electron version in package.json to 3.0.13 or use the sed command below
          sed -i 's/electron": "\^2\.0\..*",/electron": "^3.0.13",/g' package.json
          # Re-install the MM node modules
          npm install
      
      • Delete your MMM-RTSPStream module directory and use the new installer script to install everything:
          rm -R ~/MagicMirror/modules/MMM-RTSPStream
          bash -c "$(curl -s https://raw.githubusercontent.com/shbatm/MMM-RTSPStream/develop/scripts/installer.sh)"
      
      • Update your config.js section to use VLC: localPlayer: 'vlc'

      Working:

      • VLC windows “placed” on top of the main Electron window inside the module’s box
      • Plays quickly, minimal lag, low CPU usage (4 streams @ ~35%)
      • Visible in VNC client (couldn’t do this with OMXPlayer)
      • Fast switching between streams – all VLC windows will remain open, and wmctrl utility used to toggle which one is on top.
        • Make sure to set a shutdownDelay for in your module config section make it longer than it takes to rotate back to that stream time (e.g. if you have rotateStreamTimeout: 10, and 3 streams, then it will take 20s to get back to the first stream, so you should set shutdownDelay: 22– 20s + 2s buffer).
      • Suspend/Restore functions
      • New version of Raspbian also has a hw-accelerated version of FFMPEG; I’ve added a hwAccel: true option for ffmpeg users to use HW-accelerated decoding. FFMPEG still has a big CPU impact for the encoder though.

      Not-yet-tested / left to-do:

      • Test if sound works
      • Figure out what I broke in the OMXPlayer version

      Not-gonna-happen:

      • Embedding VLC into Electron window (NPAPI-plugins are no longer supported and this is the only way I know how to do that).
      • Using VLC as the viewer for “remote” windows (other web browser instances of the MM) – same reason as above.

      Known Bugs:

      • When VLC windows are first created, you see them move around the screen. After they’re “put in the box” it they won’t fill up the box right away. After ~7 secs they should fill the box.
        • I am using devilspie2 to remove window decorations and move the VLC windows; however, for some reason I have to call it twice (~7s apart) to get VLC to resize it’s video properly. Shouldn’t be an issue in the long-term, unless you are hiding/showing the module often.
      posted in Utilities
      S
      shbatm
    • RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

      @djsunrise19

      Please check the same things:

      1. Check your MagicMirror version, if it’s lower than v2.5.0 and you don’t want to upgrade, you can try changing line 21 in MMM-AlexaOnOff.js to match your version.
      2. You should see FauxMo service started. Listening on 192.168.x.x:21900 in your log file if the service started.
      3. You can try testing with the example:
          cd ~/MagicMirror/modules/MMM-AlexaOnOff/node_modules/fauxmojs/example
          node example.js
      

      You should see: started.. and then be able to discover ‘office light’ and ‘office fan’ on your Alexa.
      4. Make sure you try discovery from alexa.amazon.com, not just your Echo.

      posted in System
      S
      shbatm
    • RE: HELP to use a cam with MM PLEASE

      @axel said in HELP to use a cam with MM PLEASE:

      see my usb cam in live on the mirror!

      If you can get an RTSP stream URL from your IP camera you can use my module: MMM-RTSPStream. Use the develop branch right now–and search this forum if you’re having issues getting it to work.

      If you want to stream your USB camera by hooking it up to the Pi, you can look at something like mjpg-streamer (Google ‘OctoPrint mjpg-streamer setup’ for some good guides) and then use MMM-iframe to show the image.

      posted in Troubleshooting
      S
      shbatm
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5