yuehuTi / Raspi_sensor_poster
树莓派传感器数据上传yeelink的代码
Stars: ✭ 16
Programming Languages
python
139335 projects - #7 most used programming language
树莓派传感器数据上传yeelink的代码
Notice:
- 相关的python库:
- python-smbus python-serial库:apt-get install python-smbus python-serial python-dev
- python的wiringpi2: pip install wiringpi2
- lcd1602如果没有使用dvk512扩展板,需要到yeelink_poster.py里修改DVK512为False
- 使用前修改yeelink_poster.py中的api_key, 注册yeelink获得
- 修改Sensor下面各个传感器deviceID和sensorID,对应yeelink上自己创建的设备和传感器id
- 自己添加传感器可按照Sensor.py,继承sensor类,实现getdata方法,放到sensor文件夹下面即可
- 长期运行建议使用supervisor
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].