sentry-py-api:Sentry 远程电源管理器的 Python 串行 API

时间:2024-06-21 14:47:02
【文件属性】:

文件名称:sentry-py-api:Sentry 远程电源管理器的 Python 串行 API

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-21 14:47:02

Python

哨兵-py-api Sentry 远程电源管理器的 Python 串行 API。 使用./restapi.py启动服务器并通过http://localhost:8080/a1/on和http://localhost:8080/a1/off 在启动之前,请确保已安装web.py模块。 使用 python-setuptools 安装它: sudo easy_install web.py 。 您可能还需要安装 python 串行模块。 为此,请使用sudo easy_install pyserial 。 如果您的系统无法识别命令easy_install ,请使用sudo apt-get install python-setuptools进行设置。 使用以下指南找出您的串口设备名称: 开机启动 这已在运行 Raspbian 的 Raspberry Pi 1 型号 B+ 上进行了尝试。 您


【文件预览】:
sentry-py-api-master
----serialtest.py(1KB)
----sentry.py(2KB)
----LICENSE(1KB)
----.gitignore(16B)
----restapi.py(2KB)
----README.md(1KB)

网友评论