Giter Site home page Giter Site logo

rtorchia / smartthings-hikvision-events Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 11.0 40 KB

Hikvision Events is an interface between a Hikvision NVR and SmartThings that allows events, such as line crossings and motion detection from cameras, to be available to Smartthings as sensors.

Python 58.90% Groovy 41.10%
smartthings hikvision nvr

smartthings-hikvision-events's Introduction

Hikvision Events

Hikvision Events is an interface between a Hikvision NVR and SmartThings that allows events, such as line crossings and motion detection from cameras, to be available to Smartthings as sensors.

Installation

Installation involves 2 parts

  1. Installing the SmartApp and associated Device Handler
  2. Setting up the HikvisionEventsServer python script

Installing the SmartApp and associated Device Handler

  1. Log into your Smartthings IDE via a web browser
  2. Select My SmartApps and click on the Settings button
  3. Now add a new repository with Owner rtorchia, Name Smartthings-Hikvision-Events and Branch master. Select Save when done.
  4. Tap on the Update from Repo button and select the Hikvision-Events repo.
  5. Select the Hikvison Motion Sensors application and install it.

Repeat these steps 4 and 5 for installing the device handler under My Device Handlers. Also, don't forget to enable Oauth for the SmartApp.

Hikvisioneventsserver Setup

  1. Edit the hikvisionevents.cfg file.
    • Enter the IP address and login information for your Hikvision NVR.
    • Change the Smartthings host to where your IDE resides (usually the web URL of your IDE). Add the accessToken and appkey/appID of the SmartApp. To find it, open your IDE and go to Locations, then select the smartapps link in the location you installed the app, then find it in the list and click on its name. The access token is found in the Application State. You can find all three parameters in the endpoint field of the form https://{{host}}:443/api/token/{{accessToken}}/smartapps/installations/{{appId}}/
    • Edit the names of the cameras attached to your NVR.
  2. Run the python script. You can setup events and alarms in your Hikvision NVR using its web interface or the client software. When an event is first triggered it will be added automatically as a device to Smartthings.

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.