Giovanni in MATLAB Answers
上次活动时间: 2025-3-3

Hello, I am exploring Thingspeak features. I have successfully set up an Arduino board with sensors to send messages and display the channel on the Dashboard. It seems to me, however, that the reverse is not possible, i.e. to send messages to Arduino in order to control it. In fact the four widgets available are only supposed to receive data, not to send them. Is this because I have a free account or is it a feature of Thingspeak? As an example, Arduino IoT offers both possibilities. Thanks Giovanni
Inbay in Discussions
上次活动时间: 2024-4-7

Hi guys This is regarding my shared ThingSpeak channel. Previously it was showing the widgets side by side but in recent days it's showing widget under widget. Why is that? Please help. ThingSpeak shared channel issue - Widgets are showing one under another This was a regression we found during a recent release. It is being worked on and will be fixed in an upcomming release. Thank you for letting us know about it. widgets thing speak
Natalia in MATLAB Answers
上次活动时间: 2024-1-4

I´m creating an irrigation system, I collect data from a sensor with labview and I send it to a thingspeak channel. When I use thingspeak on my computer, the data I obtain is displayed perfectly in the field one chart. The same numbers should show on the gauge that I placed next to it but it doesn´t work at all even though it is configured to work with the field 1 data. Also, when I try to view the information on my Thingviewer app none of the widgets work. Does anyone know how I could fix this?
Pedro in Discussions
上次活动时间: 2023-1-25

Hi, what would be the best approach to use the gauge widget to display calculated data? I have a channel that displays a value that needs some math applied to it to give a correct value. I have a matlab visualization that converts this value into what I need and plots it. However, i believe a gauge is more appropriate than a plot and it seems the matlab "uigauge" object does not work for thingspeak. Is there a way for the gauge widget to show my data coming out of the matlab script? Thanks! Gauge widget with matlab data There is a Gage widget built into thingSpeak. On the channel view, select Add Widget, and choose the gage widget. Select the channel, field, and propoerties of the gage widget and the channel where you want it to be displayed. See the widget help for more info. Hi Christopher, thank you for the feedback. I understand that there is a built in feature for that, but it seems seems like it only works for data from the fields that I publish. I wanted to have a gauge to show the result of a matlab script. Say if a channel publishes a 0-100 value, but I use matlab to conver it to a value between 5-35. How could I add a gauge for that? Are you using desktop MATLAB, or MATLAB analysis/viz in ThingSpeak? Either way, after the conversion, you can write back to a new channel and set the gage to read from that new channel. You can also write code in MATLAB to generate a gage visualization for you. A polar plot makes a good start. I mean in MATLAB analysis/viz in ThingSpeak. In regular MATLAB I can create a gauge with uigauge with no issues. I just wanted to see if I could do the same in ThingSpeak but it seems like I will have to write to a different channel. Most UI elements arent allowed in ThingSpeak due to the interface. I have some fairly medium quality gage code that would work in a MATLAB viz, Ive been meaning to post it on file exchange. Thanks for the push. Would something like this work for you? Its a MATLAB function you can run in ThingSpeak to make a gage in a MATLAB viz Absolutely! Thanks for your help! Im not going to get around to putting this on File exchange becasue its too sloppy of a solution, but if it works for you, here is the silly function I wrote (be careful if you use small numbers, the rounding will kill it). % Sample call mygage(475,1,3000,0,1200,1200,1800,1800,2800,25); function MakeGage = mygage(value, lowRange,highRange,greenLow,greenHigh,yellowLow,yellowHigh,redLow,redHigh,nTicks) % TODO range cannot be less than 1 due to rounding fullRange = highRange - lowRange; greenStart = 230 - (360-80) / fullRange * (greenLow - lowRange); greenEnd = 230 - (360 - 80) / fullRange * (greenHigh - lowRange); yellowStart = 230 - (360 - 80) / fullRange*(yellowLow - lowRange); yellowEnd = 230 -(360 - 80) / fullRange * (yellowHigh - lowRange); redStart = 230 - (360 - 80) / fullRange * (redLow - lowRange); redEnd = 230 - (360 - 80) / fullRange * (redHigh - lowRange); tickMove = fullRange / nTicks; green = [greenStart:-5:greenEnd]; green = green*2*pi/360; rgreen = ones(1,size(green,2)); polarplot(green, rgreen,'g','LineWidth',16); hold on yellow = yellowStart:-5:yellowEnd; yellow = yellow*2*pi/360; ryellow = ones(1,size(yellow,2)); polarplot(yellow, ryellow,'y','LineWidth',16); red = redStart:-5:redEnd; red = red*2*pi/360; rred = ones(1,size(red,2)); polarplot(red, rred,'r','LineWidth',16); valueAngle = 230 - (360-80) / fullRange * (value - lowRange); rblack = [0:0.1:1]; black = valueAngle * 2 * pi/360 * ones(1,size(rblack,2)); polarplot(black, rblack,'k','LineWidth',5); ax = gca; ax.RTickLabel = []; ax.RGrid = 'off'; width = 280 / nTicks; tickHold = 0:width:280; tickHold = tickHold-50; tickHold = [tickHold(tickHold>=0),tickHold(tickHold<0)+360]; ax.ThetaTick = tickHold; %ax.ThetaTick=[0:width:230,310:width:360]; tickLabels = round([highRange:-tickMove:lowRange],0); shift = round(50 / width); tickLabels = circshift(tickLabels,-shift); ax.ThetaTickLabel = tickLabels; ax.RLim = [0,1.05]; text(265*2*pi/360,0.8,string(value),'fontSize',20); hold off end matlab widgets gauge
Shashank Vigneshwar Hegde in Discussions
上次活动时间: 2022-11-28

I would like to have a widget to control a pump connected to Thingspeak via Talkback. I have also established a connection with thingspeak where I publish my sensor data to the channel and can visualize the data through the various widgets. But I cant find a widget or method to control the pump from a graphical perspective on the channel (like a switch or button interface where clicking them would turn the pump on or off). Thingsboard seems to have the feature, not sure of thingspeak. If anyone knows a way please do comment out. Have a great day! How to add a widget for talkback in the my channel section along with incoming sensor data visualizations? You can use the plugins app to add javascript that will make a button that sets a channel value. You will be able to use the plugin for yourself, but you cannot make it public due to security issues. Here is some sample code for a button, just change the xmlhttp_info.txt to the GET command to change the value of your channel from 1 to 0. Then set you pump to read the channel to decide to turn on or off. (or use talkback) I tested the code in pugins on my channel and was able to get it to read data from a channel thingspeak talkback widgets
MathWorks Support Team in MATLAB Answers
上次活动时间: 2021-2-21

I have multiple ThingSpeak widgets from different channels. Right now, monitoring them requires me to open multiple tabs in the browser, one tab for each widget. Is there a way to monitor all of them on the same page without having to open so many tabs? kA03q00000112xmCAA 000166706

关于 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.