GithubHelp home page GithubHelp logo

Comments (7)

natekspencer avatar natekspencer commented on June 8, 2024 3

I just released version 2021.9.5 that includes the ability to enable logging of the rtsp urls via the configure option on the integration. Please note that you also have to have logging enabled in your configuration.yaml file with custom_components.vivint set to a minimum of info. Here's an example:

logger:
  default: error
  logs:
    custom_components.vivint: info

from hacs-vivint.

natekspencer avatar natekspencer commented on June 8, 2024 2

It wouldn't be hard to expose this at all. If I recall, I even exposed it at one point in my initial iteration of the component as an attribute on the camera, but then decided to remove it from the published file because it could be a security issue (especially for external sources). But this section

async def stream_source(self):
is where you would get the stream source, which is the RTSP url.

from hacs-vivint.

DarellAdams avatar DarellAdams commented on June 8, 2024 1

I was trying to write a python script to extract the internal RTSP url from the panel but the API broke after Vivint had their maintenance, I'm hoping they fix it soon so I can share with you guys

EDIT:
As I wrote this comment, the repository was update and was able to finish this script
https://gist.github.com/DarellAdams/1721590ab83443f43eea0c6391c39380

usage as following:
python camRTSP.py [username] [password]

output

DEBUG:root:                     Device: <Camera, Cam1>
Internal rtsp URL non-hd: [URL]
Internal rtsp URL hd: [URL]
External rtsp URL non-hd: rtsp[URL]
External rtsp URL hd: rtsp[URL]
DEBUG:root:                     Device: <Camera, Cam2>
Internal rtsp URL non-hd: [URL]
Internal rtsp URL hd: [URL]
External rtsp URL non-hd: rtsp[URL]
External rtsp URL hd: [URL]

from hacs-vivint.

apercrcl01 avatar apercrcl01 commented on June 8, 2024

I am interested in this as well.

from hacs-vivint.

thelightningist avatar thelightningist commented on June 8, 2024

Hi @DarellAdams

Thanks so much for sharing your script! Just so I understand this correctly, where exactly do you place the cameraRTSP script at? The vivint folder under custom_componets?

When I try running it from the terminal in Visual Studio Code after adding the file, I get the same error from running the script if it's in the config folder or custom_componets/vivint/ folder:

Traceback (most recent call last):
  File "camRTSP.py", line 5, in <module>
    from vivintpy.account import Account
ModuleNotFoundError: No module named 'vivintpy'

from hacs-vivint.

DarellAdams avatar DarellAdams commented on June 8, 2024

@thelightningist
Sorry for the late reply. You actually need to run this on a laptop/client computer.

  1. On your Mac/PC, run a terminal, cmd, or powershell
  2. Make sure you have python3 installed (Just google it to install)
  3. Make sure module vivintpy is installed (install vivintpy module: pip install vivintpy)
  4. On terminal, cd /path/of/the/scirpt/ (e.i cd C:\Scripts)
  5. C:\Scripts> python3 camRTSP.py [username] [password]

from hacs-vivint.

thelightningist avatar thelightningist commented on June 8, 2024

Awesome! Thanks so much!

from hacs-vivint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.