Wolf F.K. in Discussions
Letzte Aktivitätam 12 Jul. 2021

Hello to each other, I'm new here and wanted to test how it works with the transfer of data. To do this, I registered with ThingSpeak. I entered the API code in a Python script (see screenshot). Unfortunately, I always get the message: Response 400. When I enter the web address directly in the browser, I get a "0" back. I can't see an error entering the API key. Can you help me? I use a Raspberry 4B with the PIR sensor HC-SR501. The program will later run on a Raspberry Zero. Have a nice weekend everyone. Response 400, test how it works with the transfer One thing to check is to be sure you are using the channel API key and not your user API key. Also you can check the format of the API call in your browser window. See the API keys tab of your channel view for the suggested format. Danke für die schnelle Antwort. Ich habe einfach nochmal einen neuen API Schlüssel erzeugt und diesen per Drag and Trop eingegeben. Danach hat es funktioniert. Grüße aus Ulm/ Baden-Württemberg I'd also recommend removing the extra spaces in your 'requests.get' statement. Specifically, the spaces in this snippet 'api_key = SOMETHING & field1 = SOMEVALUE' should be replaced with 'api_key=SOMETHING&field1=SOMEVALUE'. The spaces get encoded as %20 (ascii character for spaces) and could be the reason you're seeing the 400 response. raspberry pir hc-sr501 python
Stefan Debold in MATLAB Answers
Letzte Aktivitätam 24 Jul. 2020

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.
Tobias Poppe in MATLAB Answers
Letzte Aktivitätam 16 Mai 2020

Hi, is there a cloud-service where I can create my own Dashboard to interact with my IoT equipment? My IoT equipment is connected (via MQTT and other protocols) to ThingSpeak. I can manually trigger actions (using webhooks and curl ...) but it's awkward. I like to be able to trigger these action from a webpage (rather than a shell). E.g. I log in to a webpage and see my 'Dashboard' of my IoT devices/triggers. Here I can set variables and any changes to those variables are send to IoT devices. A typical problem that I have is: I like to turn something "ON" in my house. IFTTT supports widgets. But I like not to use IFTTT specific apps for buttons and another app for something else. I like to set a 'color' to change the light in a certain room. I like to set a timer from when to turn something ON and when to turn it OFF again. I like to monitor my MQTT data (ThingSpeak channels are available as iframe but no service/cloud seems to exist to integrate them into a Dashboard for IoT devices). It's all possible by running my own server and making my own webpage. I am however looking for an existing service where I can 'drag and drop' my own Dashboard together to control my IoT devices remotely. For example, I like to create a 'button' and whenever that button is pressed (on the webpage) a webhook is triggered on IFTTT or ThingSpeak or a MQTT message is send to a channel. Or I like to add to my Dashboard a 'time range' where I can set a 'START TIME' and 'END TIME' (or START TIME and DURATION). Whenever I make changes to that 'time range' a trigger shall be send to IFTTT or ThingSpeak or MQTT channel. -t
Rajbir Singh in MATLAB Answers
Letzte Aktivitätam 10 Nov. 2017

my question is that, is it possible to control pi's output say (i would like to control led ) via thingspeak channel.....as in simulink there is no block for receiving data from thingspeak channel. Please suggest any way to overcome this problem.

Info zu ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.