Skip to content
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

Get Alarm Motion not working #66

Open
Saifer707 opened this issue Dec 1, 2022 · 1 comment
Open

Get Alarm Motion not working #66

Saifer707 opened this issue Dec 1, 2022 · 1 comment

Comments

@Saifer707
Copy link

Saifer707 commented Dec 1, 2022

Hello!

I'm a newbie about Reolink Technologies but i try to connect with my Cam by using these APIs.
I tried to call cam.get_alarm_motion() but it's not working.
This is my code:

import datetime

import reolinkapi

if __name__ == "__main__":
    cam = reolinkapi.Camera("192.168.1.2", "***", "***", defer_login=False)
    cam.get_alarm_motion()

I kept secret my username and my password but i passed them to Camera object.
This is the response:

Login success [{'cmd': 'Unknown', 'code': 1, 'error': {'detail': 'not support', 'rspCode': -9}}]

Any suggestions? Thank you so much!

@Benehiko
Copy link
Member

Benehiko commented Dec 12, 2023

What camera are you trying this on? I think only some camera's support motion detection.

Maybe the library is incorrect here, PR's are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants