Giter Site home page Giter Site logo

Comments (4)

rtorchia avatar rtorchia commented on August 17, 2024 1

Try updating now from the ST IDE for the repo (there was a typo that I just only noticed that prevented it from working).
You will need python 3.8 to run the script. Just place the scripts with the config file the same directory, and then run the script from the shell.
The error for the "requests" module is because your install of python doesn't have that module installed. From a shell issue the command "pip install requests". You may need to add any other modules that you may not have.

from smartthings-hikvision-events.

mercuryin avatar mercuryin commented on August 17, 2024

Sorry I forgot to add the code manually for the smartapp and the device handler manually. I don´t know why I thought it will do it automatically. Sorry about that.

Now I´m stucked here;

Hikvisioneventsserver Setup

( Edit the hikvisionevents.cfg file. (a) Enter in the IP address and login information for your Hikvision NVR. (b) Change the Smartthings host to where your IDE resides (usually the 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}}/ (c) Edit the names of the cameras attached to your NVR.
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. )
Once I have my info added how I run the phyton script and where I have to add that file ? Do I need a separated pi for that ? Thanks

from smartthings-hikvision-events.

mercuryin avatar mercuryin commented on August 17, 2024

root@DietPi:/home/dietpi# python HikvisionEventServer.py
Traceback (most recent call last):
File "HikvisionEventServer.py", line 10, in
import requests
ImportError: No module named requests

from smartthings-hikvision-events.

mercuryin avatar mercuryin commented on August 17, 2024

Thank you so much, working like a charm right now. The only additional modules needed with a default vmware rasperry image was " requests " and " hikvisionapi ".

It works better than ifftt and ezviz app !

capture

from smartthings-hikvision-events.

Related Issues (3)

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.