闪烁家庭安全摄像头系统的python api
blink-cameras的Python项目详细描述
闪烁
用于Blink Home Security Camera系统的Python API
这是基于文档:https://github.com/MattTW/BlinkMonitorProtocol
用法
importblinkb=blink.Blink()events=b.events()an_event=events[0]mp4_data=b.download_video(an_event)
这假设您有一个文件~/.blinkconfig
,它如下所示:
me@somewhere.net: my_password
或者,您可以像这样初始化blink:
b = blink.Blink(email='me@somewhere.net', password='my_password')
存档视频
blink最终会删除旧的视频剪辑。如果要在本地存档视频,请运行:
$ python -m blink --archive path/to/archive_dir
通常,这将被放入cron作业中。
API
Function | Description | Implemented | Works |
---|---|---|---|
^{ | Client login to the Blink Servers. | yes | yes |
^{ | Obtain information about the Blink networks defined for the logged in user. | yes | yes |
^{ | Obtain information about the Blink Sync Modules on the given network. | yes | yes |
^{ | Arm the given network (start recording/reporting motion events). | yes | yes |
^{ | Disarm the given network (stop recording/reporting motion events. | yes | yes |
^{ | Get status info on the given command. | yes | unknown |
^{ | Return information displayed on the home screen of the mobile client. | yes | yes |
^{ | Get events for a given network (sync module). | yes | yes |
^{ | Get a video clip using its address. | yes | yes |
^{ | Get a video clip from the events list. | yes | yes |
^{ | Get a thumbnail from the events list. | yes | no |
^{ | Gets a list of cameras. | yes | yes |
^{ | Gets information about devices that have connected to the blink service. | yes | yes |
^{ | Gets information about supported regions. | yes | yes |
^{ | Gets information about system health. | yes | yes |
^{ | Captures a new video for a camera. | no | |
^{ | Captures a new thumbnail for a camera. | no | |
^{ | Gets a list of unwatched videos. | no | |
^{ | Deletes a video. | no |