Author Topic: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed  (Read 2941 times)

0 Members and 1 Guest are viewing this topic.

Simeon Tuitt

  • Contributor
  • ***
  • Posts: 79
  • Karma: 0
    • View Profile
    • Simeon Tuitt Home Automation
Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« on: August 07, 2015, 01:01:43 AM »


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.


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)
« Last Edit: August 07, 2015, 01:23:08 AM by Simeon Tuitt »
Simeon Tuitt Is An Information Product Creator From The UK Who Took His Skills From Online Business Automation And Applied It To Automating A Smart Home.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #1 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.

Simeon Tuitt

  • Contributor
  • ***
  • Posts: 79
  • Karma: 0
    • View Profile
    • Simeon Tuitt Home Automation
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #2 on: August 07, 2015, 08:53:01 AM »
Cheers James, appreciate the help mate, just sent you login details.  8)
Simeon Tuitt Is An Information Product Creator From The UK Who Took His Skills From Online Business Automation And Applied It To Automating A Smart Home.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #3 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>

Simeon Tuitt

  • Contributor
  • ***
  • Posts: 79
  • Karma: 0
    • View Profile
    • Simeon Tuitt Home Automation
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #4 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?
Simeon Tuitt Is An Information Product Creator From The UK Who Took His Skills From Online Business Automation And Applied It To Automating A Smart Home.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #5 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.

2exclusive

  • Contributor
  • ***
  • Posts: 54
  • Karma: 0
    • View Profile
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #6 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

Simeon Tuitt

  • Contributor
  • ***
  • Posts: 79
  • Karma: 0
    • View Profile
    • Simeon Tuitt Home Automation
Re: Ring Video Doorbell Auto MP4 Play With Robo B Help Needed
« Reply #7 on: August 24, 2015, 01:04:48 AM »
You're welcome 2exclusive, let us know how you get on with it.  8)
Simeon Tuitt Is An Information Product Creator From The UK Who Took His Skills From Online Business Automation And Applied It To Automating A Smart Home.