Send GPIO Status to Thingspeak (Lamp Indicator Widget)
2 次查看(过去 30 天)
显示 更早的评论
Hi
I have an Raspberry Pi Zero W that controlls the status of my Pool. I want to send the Pumpstatus (On/Off) to my Thingspeak-Channel and use the Lamp Indicator Widget to visualize the Status of the Poolpump but I could not find an exampel Python-Script how to send the GPIO Status (High, Low). When the Pump is on an Opptokoppler sends 3,3V to GPIO-Pin (BCM) 24 for the High-Signal. I know how to Setup the Thingspeak-Channel and the Widget but i do not know how to write the Python-Script for sending the GPIO-Status to Thingspeak. Maybe someone can help me. Thanks in advance for any help.
0 个评论
回答(1 个)
Vinod
2020-7-24
Take a look at this example. You can modify it to show your pump status instead of CPU percent utilization quite easily.
1 个评论
Christopher Stapels
2020-7-24
社区
更多回答在 ThingSpeak Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Android Devices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!