webthing-python:Web Thing服务器的Python实现

时间:2021-05-04 08:05:18
【文件属性】:
文件名称:webthing-python:Web Thing服务器的Python实现
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-04 08:05:18
Python 网络事物 HTTP 。 该库与Python 2.7和3.5+兼容。 安装 可以通过pip安装webthing ,例如: $ pip install webthing 运行样本 $ wget https://raw.githubusercontent.com/WebThingsIO/webthing-python/master/example/single-thing.py $ python3 single-thing.py 这将启动服务器,并允许您通过mDNS从网关搜索它。 要将其添加到网关,请导航至网关UI中的Things页面,然后单击右下角的+图标。 如果两者都在同一网络上,则示例示例将自动出现。 示例实施 在本代码演练中,我们将设置可调光的灯光和湿度传感器(当然,两者都使用假数据)。 这两个工作示例都可以在找到。 调光灯 想象一下,您有一个要通过Web of Things AP
【文件预览】:
webthing-python-master
----setup.py(1KB)
----.gitignore(83B)
----test.sh(617B)
----requirements.txt(76B)
----webthing()
--------errors.py(125B)
--------subscriber.py(619B)
--------__init__.py(324B)
--------property.py(3KB)
--------action.py(3KB)
--------server.py(30KB)
--------utils.py(1KB)
--------event.py(1KB)
--------value.py(1KB)
--------thing.py(12KB)
----MANIFEST.in(20B)
----package.sh(89B)
----CODE_OF_CONDUCT.md(691B)
----CHANGELOG.md(3KB)
----LICENSE.txt(16KB)
----.github()
--------workflows()
----README.rst(7KB)
----example()
--------multiple-things.py(6KB)
--------single-thing.py(3KB)

网友评论