fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 101 forks source link

NVR RLN16-410, Incorrect URL for Thumbnail of attached cameras #441

Open jim-edwards opened 2 years ago

jim-edwards commented 2 years ago

Describe the bug It appears like the Thumbnail URL used for the RLN16-410 is not working, the image always displays blank and no thumbnail is available. However, the RTSP and video streams are working fine. The following exception occurs in the log:

File "/usr/local/lib/python3.9/site-packages/reolink/camera_api.py", line 617, in get_still_image response = await self.send(None, param, expected_content_type='image/jpeg') File "/usr/local/lib/python3.9/site-packages/reolink/camera_api.py", line 1669, in send raise ApiError( reolink.exceptions.ApiError: API returned HTTP status ERROR code 404/

I am able to successfully pull the image using the following URL as a sample:

http://nvr1.skynet/cgi-bin/api.cgi?cmd=Snap&channel=1&rs=test001&user=user&password=password

Where channel = a number between 1 and 16.