You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2019-03-07 12:34:19] [DEBUG] (MainThread) https://synology-ip:5001 "GET /webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=1&_sid=token HTTP/1.1" 200 None
[2019-03-07 12:34:19] [INFO] (MainThread) info_response status_code 200
[2019-03-07 12:34:19] [INFO] (MainThread) Synology Info Camera Id 1 Name Xiaofang1 IP 192.168.x.x
[2019-03-07 12:34:19] [INFO] (MainThread) CameraMotionEventHandler poll_event 1 Main Entrance
[2019-03-07 12:34:19] [INFO] (MainThread) Start getting last camera event for camera 1 Main Entrance
[2019-03-07 12:34:19] [DEBUG] (MainThread) Starting new HTTPS connection (1): tonyyy.duckdns.org:5001
/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2019-03-07 12:34:19] [DEBUG] (MainThread) https://synology-ip:5001 "GET /webapi/entry.cgi?api=SYNO.SurveillanceStation.Event&method=List&version=4&locked=0&reason=2&limit=1&cameraIds=1&_sid=token HTTP/1.1" 200 None
[2019-03-07 12:34:19] [INFO] (MainThread) event_response status_code 200
Traceback (most recent call last):
File "/synology_surveillance_motion_mqtt_gifs.py", line 290, in <module>
main()
File "/synology_surveillance_motion_mqtt_gifs.py", line 281, in main
camera_handler.poll_event()
File "/synology_surveillance_motion_mqtt_gifs.py", line 210, in poll_event
event_id = syno_last_event(self.base_url, self.camera["id"], self.sid)
File "/synology_surveillance_motion_mqtt_gifs.py", line 125, in syno_last_event
if event_data["data"]["events"][0]["cameraId"] == camera_id:
IndexError: list index out of range
I get a list index out of range error:
My config.json:
Any hints what I am doing wrong?
The text was updated successfully, but these errors were encountered: