• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Ring: Displays a video stream of your Ring doorbell when someone rings your doorbell.

Scheduled Pinned Locked Moved Utilities
38 Posts 9 Posters 13.9k Views 12 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    DustinBryant
    last edited by broberg Oct 6, 2019, 9:34 PM Sep 2, 2019, 4:04 AM

    Description
    Whenever someone rings your doorbell by pressing the button on your ring device, a video will appear wherever the module is placed within MM. This module will only work for ding events and will not do anything for motion events. Whenever there is no video being displayed nothing else is shown in its place.

    Download :

    [card:DustinBryant/MMM-Ring]

    M N 2 Replies Last reply Sep 2, 2019, 2:12 PM Reply Quote 4
    • M Offline
      Mykle1 Project Sponsor Module Developer @DustinBryant
      last edited by Sep 2, 2019, 2:12 PM

      @DustinBryant

      Cool! :thumbsup:

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        sithlordhood
        last edited by broberg Oct 7, 2019, 7:50 AM Oct 6, 2019, 9:25 PM

        Hi I cant get the module to work - it comes up with the following error in the logs, can you advise?

        
        MMM-Ring at (06/10/2019, 22:22:19): Found 1 location(s) with 1 camera(s).
        MMM-Ring at (06/10/2019, 22:22:19): Location Home has the following 1 camera(s):
        MMM-Ring at (06/10/2019, 22:22:19): - 7076807: Front Door (doorbell_v3)
        MMM-Ring at (06/10/2019, 22:22:19): Location Home has the following 0 device(s):
        MMM-Ring at (06/10/2019, 22:22:19): Actively listening for doorbell presses
        MMM-Ring at (06/10/2019, 22:22:45): Front Door had its doorbell rung! Preparing video stream.
        Whoops! There was an uncaught exception...
        { Error: spawn ffmpeg ENOENT
            at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
            at onErrorNT (internal/child_process.js:406:16)
            at process._tickCallback (internal/process/next_tick.js:63:19)
          errno: 'ENOENT',
          code: 'ENOENT',
          syscall: 'spawn ffmpeg',
          path: 'ffmpeg',
          spawnargs:
           [ '-hide_banner',
             '-protocol_whitelist',
             'pipe,udp,rtp,file,crypto',
             '-f',
             'sdp',
             '-i',
             'pipe:',
             '-acodec',
             'aac',
             '-vcodec',
             'copy',
             '-preset',
             'veryfast',
             '-g',
             '25',
             '-sc_threshold',
             '0',
             '-f',
             'hls',
             '-hls_time',
             '2',
             '-hls_list_size',
             '6',
             '-hls_flags',
             'delete_segments',
             '/home/pi/MagicMirror/modules/MMM-Ring/public/stream.m3u8' ] }
        MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        
        
        1 Reply Last reply Reply Quote 0
        • D Offline
          DustinBryant
          last edited by DustinBryant Oct 6, 2019, 9:54 PM Oct 6, 2019, 9:42 PM

          You’ll need to install ffmpeg. I’m assuming you’re using a pi with Raspbian. If so, you can run the following in the terminal:

          sudo apt-get install ffmpeg
          

          If not, you’ll need to find how to install ffmpeg with whatever OS you’re running.

          S 1 Reply Last reply Oct 7, 2019, 9:44 PM Reply Quote 0
          • D Offline
            dwntwn87
            last edited by Oct 7, 2019, 1:01 PM

            I’m running MM via Docker on a NAS and can’t seem to figure out how to get Docker to use ffmpeg from the OS. Does anyone have any ideas on how to do this?

            1 Reply Last reply Reply Quote 0
            • S Offline
              sithlordhood @DustinBryant
              last edited by Oct 7, 2019, 9:44 PM

              @DustinBryant Thanks, i have installed but still not working. I get the files in the public folder but still no video

              1 Reply Last reply Reply Quote 0
              • D Offline
                DustinBryant
                last edited by Oct 7, 2019, 9:48 PM

                Interesting, are any errors printed in the terminal and if none there, are there any errors in the Electron debugger log after running?

                S 1 Reply Last reply Oct 10, 2019, 8:06 PM Reply Quote 0
                • S Offline
                  sithlordhood @DustinBryant
                  last edited by Oct 10, 2019, 8:06 PM

                  @DustinBryant This is what the mm log shows:

                  MMM-Ring at (10/10/2019, 20:59:55): Found 1 location(s) with 1 camera(s).
                  MMM-Ring at (10/10/2019, 20:59:55): Location Home has the following 1 camera(s):
                  MMM-Ring at (10/10/2019, 20:59:55): - 7076807: Front Door (doorbell_v3)
                  MMM-Ring at (10/10/2019, 20:59:55): Location Home has the following 0 device(s):
                  MMM-Ring at (10/10/2019, 20:59:55): Actively listening for doorbell presses

                  Then i press the doorbell:

                  MMM-Ring at (10/10/2019, 21:00:04): Front Door had its doorbell rung! Preparing video stream.
                  MMM-Ring at (10/10/2019, 21:00:26): Front Door video stream has ended
                  Whoops! There was an uncaught exception…
                  TypeError: Cannot read property ‘stop’ of null
                  at Timeout.setTimeout [as _onTimeout] (/home/pi/MagicMirror/modules/MMM-Ring/node_helper.js:153:36)
                  at ontimeout (timers.js:427:11)
                  at tryOnTimeout (timers.js:289:5)
                  at listOnTimeout (timers.js:252:5)
                  at Timer.processTimers (timers.js:212:10)
                  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

                  No video is displayed on the MagicMirror.

                  Also I have specificed a 2 minute stream time in the config.js but as shown above, the video only shows it runs for 30 seconds…

                  config.js:

                              {
                                      module: "MMM-Ring",
                                      position: "top_left",
                                      config: {
                                              ringEmail: "EMAIL",
                                              ringPwd: "PASSWORD",
                                              ringMinutesToStreamVideo: "2", //default is 2 mins
                                              ringVideoWidth: "600" //default is 600px
                                      }
                              },
                  
                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DustinBryant
                    last edited by Oct 10, 2019, 10:20 PM

                    Ok, so I 've fixed the error you’ve run into. The reason the stream could have stopped is because someone on the account looked at the ring event on the ring app and then stopped/closed it. Unfortunately, it’s basically a “shared” stream in that if applications are looking at the event at the same time one ended could potentially end the other viewing it prematurely. I’ve only had this happen once and that seemed to be what that was.

                    I made some other small changes which may help here as well. I’d like for you to update all your software first though just to rule that out as well.

                    Before doing any of the following I would recommend backing up.

                    1. Update your pi OS to the latest version
                      sudo apt-get update
                      sudo apt-get upgrade
                      sudo reboot
                    2. Update MagicMirror to its latest version by using a Terminal to navigate to your MagicMirror folder and running
                      git pull && npm install
                    3. Navigate to the module/MMM-Ring folder and run
                      git pull && npm install

                    This will update everything, hopefully. Now try running MagicMirror again, giving it a couple seconds to a minute, and then ring your doorbell again.

                    Hope this helps!

                    S S 2 Replies Last reply Oct 10, 2019, 10:28 PM Reply Quote 0
                    • S Away
                      sdetweil @DustinBryant
                      last edited by Oct 10, 2019, 10:28 PM

                      @sithlordhood you should use my update script… takes care of a bunch of problems

                      see here for instructions

                      https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy