-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid syntax #21
Comments
@nor500 I have the same problem. Probably because of the word |
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) |
@mezz64
Home-assistant, this is a cool project, but for me it's difficult, although I managed to run it. How can I get easy access to the motion detection status using pyhik, for use in my project? |
I am really interested in your project. I replaced my credentials in the example but python3 gave an error message: SyntaxError: invalid syntax
:
import pyhik.hikvision
camera = pyhik.hikvision.HikCamera('http://X.X.X.X', port=80, user='admin', pass='1234')
What shall I do?
The text was updated successfully, but these errors were encountered: