Coder Social home page Coder Social logo

invalid syntax about pyhik HOT 3 CLOSED

mezz64 avatar mezz64 commented on June 24, 2024
invalid syntax

from pyhik.

Comments (3)

 avatar commented on June 24, 2024

@nor500 I have the same problem. Probably because of the word pass

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Take a look at the Home Assistant implementation (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/binary_sensor/hikvision.py) if you want a full featured example. The example in the readme is a bit out of date. The actual init parameters are now:

def __init__(self, host=None, port=DEFAULT_PORT,usr=None, pwd=None)

from pyhik.

 avatar commented on June 24, 2024

@mezz64
Thank you, now it works.

import pyhik.hikvision
camera = pyhik.hikvision.HikCamera('http://192.168.X.X', port=80, usr='admin', pwd='admin')
print camera

<pyhik.hikvision.HikCamera object at 0x7ff3a8ea0850>

Home-assistant, this is a cool project, but for me it's difficult, although I managed to run it.
2018-03-16 23-21-20

How can I get easy access to the motion detection status using pyhik, for use in my project?

from pyhik.

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.