user2684 / imouapi

Library for controlling Imou devices by interacting with the Imou Life API
https://user2684.github.io/imouapi
MIT License
9 stars 5 forks source link

Accessing camera recordings #1

Open durnezj opened 1 year ago

durnezj commented 1 year ago

Hi, As the Imou camera's don't support the Onvif Recording service, I was wondering if it was possible to get/stream/download recording through the Imou API? If so, where would one start to implement such functionality in this code?

Thanks in advance!

user2684 commented 1 year ago

Hi! Theoretically it seems to be possible, if I look e.g. at queryLocalRecords/ queryCloudRecordsfrom the API documentation (https://open.imoulife.com/book/en/http/device/record/local/queryLocalRecords.html), seems feasible. Two things make however this capability complex to implement:

This doesn't mean cannot be done of course :-) Just that would take a few development cycles. I'll keep it here open for the future and come back to this once the priority 1 items will be all implemented. Thanks!

durnezj commented 1 year ago

Thanks for your reply and continued effort on this api!

rici44 commented 1 year ago

Hi, As the Imou camera's don't support the Onvif Recording service, I was wondering if it was possible to get/stream/download recording through the Imou API? If so, where would one start to implement such functionality in this code?

Thanks in advance!

Hi.

I added camera Imou Versa (the rest I have Imou Ranger 2C-D and Imou Cue 2c also} to Home Assistant as ONVIF camera and standard service camera.record works well.

RTSP stream from camera is also available localy. If you block camera to see internet rtsp will still work localy.

Working rtsp link: rtsp://admin:CODEFROMAPP@CAMIPADDRESS:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

Added to Home Assistant: https://www.home-assistant.io/integrations/onvif/ Device > ADD INTEGRAGTION > ONVIF > Name:Cam000X Host:CAMIPADDRESS Port:80 username:admin password:CODEFROMAPP

user2684 commented 1 year ago

Great, thanks for sharing this information!