tplink-smartplug-azure-data-collector

所属分类:Python工具库
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2019-01-20 21:06:54
上 传 者sh-1993
说明:  简单的python脚本,用于从TP Link HS110智能插头收集能耗数据,并将其发送到Azure IoT中心。
(Simple python script to collect energy consumption data from a TP-Link HS110 smart plug and send it to an Azure IoT hub.)

文件列表:
LICENSE (35149, 2019-01-20)
collect.py (3476, 2019-01-20)

# TP-Link HS110 Data Collector for Azure Simple python script to collect energy consumption data from a TP-Link HS110 smart plug and send it to an Azure IoT hub. It is basically a combination of [a tutorial to send telemetry to Azure](https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-python) and [this other script](https://www.beardmonkey.eu/tplink/hs110/2017/11/21/collect-and-store-realtime-data-from-the-tp-link-hs110.html) that does something very similar (but stores data to Graphite instead). This last script is in turn based on [this reverse engineering work](https://github.com/softScheck/tplink-smartplug). ## Usage Change the values of the IoT Hub `CONNECTION_STRING` (see how to get it [here](https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-python)) and `DEVICE_IP`, then just run `python collect.py`. ## Dependencies `pip install azure-iothub-device-client`

近期下载者

相关文件


收藏者