Send GPIO Status to Thingspeak (Lamp Indicator Widget)

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.

Réponses (1)

Vinod
Vinod le 24 Juil 2020

0 votes

Take a look at this example. You can modify it to show your pump status instead of CPU percent utilization quite easily.

Communautés

Plus de réponses dans  ThingSpeak Community

Catégories

En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by