VoxCommando

VoxNastics (User Guides and Mods) => Integration Ideas => Topic started by: Simeon Tuitt on August 07, 2015, 01:01:43 AM

Title: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: Simeon Tuitt on August 07, 2015, 01:01:43 AM
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fwww.smarthomeautomationkits.co.uk%2Fimages%2Fvideodoorbellalerts.PNG&hash=2baf0f6265a649d3ae8c1035ee055052d08ba573)

Hi Guys,

I need a little help, Ring the same company who created Doorbot has finally made available a web interface for viewing the stored videos taken by the Ring Video Doorbell, so we can login and check the videos uploaded to it.

Now I have managed to get vox to show me events like missed visitors, taken door calls and motion alerts, but I need help getting it to play the video player that is embedded on the page to see the selected events.

A video player appears on the screen next to the latest events and I have clicked CTRL while hovering over the play button to try and find the DIV code or Tag to get it to play but I am unable to.

The player appears when you hover over it and goes when not on it, but when you hover over it the play button appears.
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fwww.smarthomeautomationkits.co.uk%2Fimages%2Frobo.PNG&hash=8e7339fd8f4e9c77d504a15f224198b27acea0eb)
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fwww.smarthomeautomationkits.co.uk%2Fimages%2Frobo1.PNG&hash=92cc8beabcd8e836ff006cbb9a35429addac3b9e)
When I CTRL I get the TAG: VIDEO 0, when I try and get Robo B to click after the tag it doesn't play, I have tried tag VIDEO,1,2,3,4 etc but I can't get the play button, so any help you can give is appreciated.

Cheers.
Sim  8)
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: jitterjames on August 07, 2015, 08:12:14 AM
If I am able to connect to the web interface from here I can try to figure it out.

If you are interested in having me do this, please create a temporary password and pm me the info I need to connect.
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: Simeon Tuitt on August 07, 2015, 08:53:01 AM
Cheers James, appreciate the help mate, just sent you login details.  8)
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: jitterjames on August 07, 2015, 06:08:30 PM
It's tricky because the video you want to play is all one element.  The play button is not html.  However, there is a download button below it and you can use this to get the URL for the video and either open it in RoboBrowser, or open it in your regular webbrowser.

Here is a sample that does the latter.

Note: I did not include any commands to log into the Ring webpage because it should do it automatically if you tell it to remember you.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<commandGroup open="True" name="Ring" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="813" name="launch Ring videos" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>Ring</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Navigate</cmdType>
      <params>
        <param>https://ring.com/account/activity</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Show</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="830" name="play video" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>RoboB.Select</cmdType>
      <params>
        <param>Ring</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.ElementRegex</cmdType>
      <params>
        <param>A</param>
        <param>^&lt;a.class="download"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.GetHTML</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RegExTool.Open</cmdType>
      <params>
        <param>True</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>href="(.*?)"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetLastResult</cmdType>
      <params>
        <param>{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.Replace</cmdType>
      <params>
        <param>&amp;amp;</param>
        <param>&amp;</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Launch.OpenURL</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Navigate</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>RoboB.Show</cmdType>
      <params />
      <cmdRepeat>0</cmdRepeat>
    </action>
  </command>
  <command id="831" name="dispose" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>RoboB.Dispose</cmdType>
      <params>
        <param>Ring</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: Simeon Tuitt on August 07, 2015, 07:23:17 PM
Hi James, thanks for that, how do I get the 'regular expression helper' window to stop loading with each video page load?

It's a shame about the video player being one element, is there any way to get Robo B to download the video from the url to a location like recently added movies in kodi so that I could then just use kodi to play the door events, pause and rewind them?
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: jitterjames on August 07, 2015, 07:32:28 PM
how do I get the 'regular expression helper' window to stop loading with each video page load?

I'm afraid that's just a basic part of learning how to use VoxCommando.
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: 2exclusive on August 21, 2015, 12:25:06 PM
Great! I can benefit from this also. As i use the ring video doorbell quite often. let me give this a shot and see..

thanks again guys
Title: Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
Post by: Simeon Tuitt on August 24, 2015, 01:04:48 AM
You're welcome 2exclusive, let us know how you get on with it.  8)