在最亮的白昼,在最黑的黑夜,任何邪恶都逃不过你的视线!
metispi的Python项目详细描述
Metis是一个应用程序,通过观看和 记录任何动作。它还(可选)支持通过 电报。
快速启动
安装metis:
$ pip install metispi
运行metis:
$ [sudo] python -m metis --conf=path/to/config.yaml
注意
基于您使用的Linux,您可能需要也可能不需要根权限来运行metis。
配置
必须传递配置文件,因为某些选项是必需的。 下面是一个示例:
pins:motion_sensor:4# pin number HC-SR501 attached toled_motion_on:17# pin number LED "motion detected" attached toled_motion_off:20# pin number LED "no motions" attached totelegram:token:XXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYrecipient:000000001
还有一件事,整个telegram节点是可选的,如果您 对电报通知不感兴趣。如果你这样做了,你需要创建 一个电报机器人,并将其令牌作为telegram.token选项传递。