Send GPIO Status to Thingspeak (Lamp Indicator Widget)

조회 수: 2 (최근 30일)
Stefan Debold
Stefan Debold 2020년 7월 23일
댓글: Christopher Stapels 2020년 7월 24일
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.

답변 (1개)

Vinod
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
Christopher Stapels 2020년 7월 24일
urlib2 may be depricated. See this post for some help updating to urlib3.

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Android Devices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by