从Windows上的回火USB温度计获取温度。
temper-windows的Python项目详细描述
回火窗口
允许您在Windows上访问回火USB设备的温度(以摄氏度为单位)。
安装
pip install temper-windows
演示
import temper_windows
temperature = temper_windows.get_temperature()
print(temperature)
>>> 21.26
注释
- 我只需要测试一下蛋的温度,这样其他人就不会有问题了。如果没有,欢迎拉取请求。
- 在Python3.6和2.7上进行了测试,不过也很可能在早期版本上工作。