ThingSpeak

ThingSpeak

Public Channel

Prajna Bhat in MATLAB Answers
Dernière activité le 11 Fév 2023

The ThingSpeak API provides the possibility to embed the chart with historical values of a channel in a web page. Now I would also like to show the last value of a channel as a number on this page. I looked into some of the answers. But I could not understand. Can someone please share the JavaScript code OR the HTML code? I am new to ThingSpeak and Web Development. Please help me out!! Thank you, Prajna Bhat
Prajna Bhat in Discussions
Dernière activité le 5 Juil 2021

Hi all, The ThingSpeak API provides the possibility to embed the chart with historical values of a channel in a web page. Now I would also like to show the last value of a channel as a number on this page. I looked into some of the answers. But I could not understand. Can someone please share the JavaScript code OR the HTML code? I am new to ThingSpeak and Web Development. Please help me out!! Thank you, Prajna Bhat Javascript to display last value of a channel on web page | ThingSpeak API thingspeakapi javascript html thingspeak
Aryaman Patel in Discussions
Dernière activité le 25 Fév 2021

I wanted to use MQTT to publish data to my ThingSpeak client. However, on one of the forums it said, "The MQTT broker does not presently parse JSON". Was there any development recently to use MQTT protocol to publish Bulk data or JSON object to ThingSpeak? You cannot presently update more than one feed at a time via the ThingSpeak MQTT broker. (You can update multiple fields, the <https://www.mathworks.com/help/thingspeak/mqtt-api.html doc is here> ) The format for the message is field1=1.2&field2=2.1 etc. You can send a JSON object to the write and bulk write endpoints in the REST API. Can you describe your application to make the need for bulk post with MQTT clear? Since ThingSpeak only updates one data point in 15 sec I wanted to send the data points collected in a buffer for a single field as a bulk. I am already using REST api for the purpose, however, I read that MQTT protocols are better alternatives to HTTP for IoT applications and other advantages. Hence, I wanted to make a shift to a better alternative by sending the same JSON object using MQTT protocol. Is this possible? thingspeak api
JH du Toit in MATLAB Answers
Dernière activité le 9 Oct 2020

Good day, I have an application where I write to ThingSpeak every 20 seconds on the Free option. It worked for several months perfectly i.e. getting data to the server every 20 seconds. Since a week or 2 ago, my device tries to send data to the API, but it gets an error now and is only successfully sending data to ThingSpeak approx every > 15 minutes? I am still way within my allowed messages (2500000 of 3000000) and well below the daily messages. Could someone please let me know what the problem might be? Please help. Thanks.

À propos de 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.

Modérateurs