Giter Site home page Giter Site logo

ubinty's Introduction

Ubinty

A small and dirty python script to change the record type of your Ubiquiti cameras to Motion enabled and disabled via commandline executions (useful for example in homeassistant automation implementations)

Installation instructions:

  • install python2
  • install pip for python2
  • install python requirements via pip

For raspbian this means:

sudo apt-get install python python-pip -y
pip install -r requirements.txt

Adjust the configfile (config.json) to your environment: Insert the name of your camera and its ID here to find this id: enable RTSP in your NVR Settings page, save that setting and return to your camera overview now when you select a camera you see a new option "RTSP Service", where the RTSP URL is being displayed like rtsp://192.168.178.100:7447/5a71234567891_0 where 5a71234567891 is the ID you are looking for

Please use the config.json file as provided in the file repository - not the version below - json is not intended to be commented...

{
    "unifiserver": "controller.domain.tld", # your IP or FQDN of your NVR
    "unifiadminkey": "xx-your-api-key-xx", # this API key you find in the settings of your NVR
    "cameras": [
        {
           "name": "camera1", # this is the name of the camera1
           "id": "5a71234567891" # this is the id you have evaluated
        },
        {
            "name": "camera2", # this is the name of the camera2
            "id": "5a71234567892" # this is the id you have evaluated
        }
   ]
}

How to use this program:

"python ubinty.py camera1 motion" to enable motion recording
"python ubinty.py camera1 full" to enable fullTime recording
"python ubinty.py camera1 none" to disable recording

ubinty's People

Contributors

n0l0cale avatar

Stargazers

Serban avatar Bob of DevOps avatar Nick CJ avatar Chris Helming avatar Yan Hong avatar Kevin Iddles avatar

Watchers

evandrix avatar

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.