Thomas Lowell in Discussions
上次活动时间: 2024-7-8

Problem statement: I've written a visualization that I'd like to use on potentially hundreds of different channels in my commerical account. Because it contains code that's unique to the channel (channel id, read API key, etc.) I have to create and maintain a duplicate visualization for each channel. This is wasteful, a source of errors, and almost intractable for a commercial customer with a high channel count. My request is that MATLAB Visualizations be extended to support parameters, but only a predefined set to reduce the scope. I would propose a subset of the parameters currently supported by the ThingSpeak API. For example, thingSpeakRead supports (requires) readChannelID, NumPoints, and a ReadKey etc. If those were elevated to also be allowed as Visualization parameters, I imagine it would satisfy a large subset of user needs. The poor man's version of this would be if ThingSpeak supported just one special parameter, such as %CHANNEL_ID%. If this was available within the visualization code one could use it as a key into table to get the other pieces of data like API keys, etc. It would be have to be passed on the visualization url (https://thingspeak.com/apps/matlab_visualizations/573779?readChannelID=xxxxx). Not sure how the visualization would pick it up in the use case where it's called from the ThingSpeak website under the user's list of MATLAB Visualizations. Perhaps it can be prompted for. I initially considered user defined functions or libraries but they are not supported and I can see that that would require even more development work to support. The workarounds described in this thread aren't suitable for me. https://www.mathworks.com/matlabcentral/answers/2102981-how-to-use-private-functions-lib-in-thingspeak?s_tid=srchtitle_community_thingspeak_14_libraries thanks! Tom feature request - allow ThingSpeak API parameters to be passed as parameters to MATLAB Visualizations. thank you for writing up a feature request, Tom. We'll add this to our backlog. There is a very non-intuitive way you can do this - have a MATLAB Analysis that generates and inserts images into the image channel. You'd trigger the MATLAB Analysis using a React or Timecontrol and have one or more image channels per ThingSpeak channel. Please shoot me an email and I'll show you how to set this up. +1 for parameters in visualizations and analysis. Hi Tom! feature request visualizations
MD..Sign in MATLAB Answers
上次活动时间: 2024-6-4

Hello, can anyone please check, if the MATLAB Visualizations are right now offline for everyone or just for me? I've made 2 visualizations and both show the "broken image" icon instead of the graph. The problem occurred half an hour ago or so - I do not know exactly. As you can see, widgets are not affected. Both visualizations are public and can be "Save an Run" with "MATLAB code ran successfully." as status. Here is one of the MATLAB codes that has worked flawless till it stopped: % Template MATLAB code for visualizing data using the YYAXIS and PLOT functions. % Prior to running this MATLAB code template, assign the channel variables. % Set 'readChannelID' to the channel ID of the channel to read from. % Also, assign the read field IDs to the variables 'fieldID1', and 'fieldID2'. % TODO - Replace the [] with channel ID to read data from: readChannelID = [********]; % TODO - Replace the [] with the Field ID to read data from: fieldID1 = [3]; % TODO - Replace the [] with the Field ID to read data from: fieldID2 = [5]; % Channel Read API Key % If your channel is private, then enter the read API % Key between the '' below: readAPIKey = '***********'; %% Read Data %% % Read first data variable [data1, time1] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 600, 'ReadKey', readAPIKey); % Read second data variable [data2, time2] = thingSpeakRead(readChannelID, 'Field', fieldID2, 'NumPoints', 600, 'ReadKey', readAPIKey); %% Visualize Data %% yyaxis left; plot(time1, data1) xlabel('Zeit'); ylabel('Watt'); yyaxis right; plot(time2, data2); xlabel('Zeit'); ylabel('Ampere'); title('Phase 2 - Watt & Ampere'); grid on; Any help is appreciated - thanks in advance! MD
Don in Discussions
上次活动时间: 2024-4-29

Now it's just a dial and pointer. There used to be a numeric value underneath. I mentioned this in another thread about the column function not working, but thought maybe it needs it's own thread to be noticed. This broke about the same time as the line/column problem and the not being able to move windows around anymore. 'Field Gauges' no longer have the actual values appear under the gauge. Thanks for pointing it out. We are aware, but the seperate thread is still helpful, plus it gives me a place to report when its fixed. I just tried it with a new gauge widget and it worked. Unfortuantely, you may have to recreate the field gauge widget. Please let us know if that works. Hi, the problem still exists. Gauges are not working it still isn't working, any idea when it might be fixed? @Satyam have you tried creating a new gage? i did tried making new widgets but it didn't showed any data, i am getting data on my graph but not on the gauge Dial and a pointer seem to be good progress. Have you checked the 'display value' checkbox in the gage options? What do you mean by the column function? I looked back at other threads you have posted in to see, but none that I found were related. Can you describe more in detail or show a screen shot? @Satyam I see the plot, but I dont see that you have tried a gage in this screen shot. Can you show a gage and the properties in a screen shot? I'm adding both the screenshot for gauge+ numeric value and parameters for gauge here is the second screenshot for parameters Just to make sure there is no issue with the data, can you share the values of some of your recent points? I see that the field plot is working, but the gage has a different parser so there may still be an issue with the data. You can get the last few values using this format when logged in https://api.thingspeak.com/channels/<channel ID>/feeds.json?results=2. If you arent logged in you might have to add &api_key=<CH_API_KEY> to the end. visualizations widget gauge gauge
francisco jnb in Discussions
上次活动时间: 2024-4-26

I have two public channels and this happens in both: when I change the chart type from Line to Column (or any other type), the chart type does not change, the datapoints keep being displayed as a line. I have cleared both channels but this did not fix the issue. Also, my devices keep uploading the values to Thingspeak normally, it just seems Chart Options isnt working. Changing chart type from Line to any other doesn't produce an effect anymore Thanks, I just noticed a similar issue with the chart options parameters recently. I reported the issue in our system here, Ill try to update on this post when we get the issue fixed. As a workaround, when you use the explicit parameters in the charts API, the settings are holding fine. Also, the ability to drag the charts to different locations is no longer available, their spots are static. Yes, I cannot drag the charts either. I will attempt to modify the charts using the API settings, thank you. Not sure if this is related to the other problems except that it seemed to have happened at the same time as the other changes: 'Field Gauges' no longer have the actual values appear under the gauge. Now it's just a dial and pointer. There used to be a numeric value underneath. The problems with ThingSpeak. I can’t move Charts on screen, if you change any of the field chart setting the field chart won’t update, the Widgets won’t update if the field chart is changed in any way. I have tested my Thing Speak account using Firefox, Chrome and Edge of 4 different computers. All failed. Dev tells me they have discovered the issue and are qualifying the change. Thanks all who let us know, ill let you know one the change is released. I'm having the same problem of being unable to get any chart type apart from line. This was initially raised a month ago. Any prospect of the issue being fixed soon? Hello, i also noticed that Sum function in the graph does not work. Thanks. Me too with the same problem!! Why is this still not been fix????????? Is this going to be fix????? STILL no fix. Wow! Thats not a good reflection of your product! We have recently released a fix for this and similar issues. If you continue to observe this issue, please sign out and back in again, and then consider refreshing your browser cookies for ThingSpeak and MathWorks. If the problem still persists, pelase let us know here. No fix. I am still unable to rearrange visualizations by clicking and dragging a widget to a new location. Tested on Firefox latest version, on Windows 10 with latest updates. My browser shows no stored cookies for either site (thingspeak.com and mathworks.com). Same here... This drop down issue for charts settings mentioned here in the original post was fixed. Unfortunately the window dragging issue may remain for a short while longer. Please let us know if you still have problems changing the chart type. I think there is another post about the window dragging window. If there is, I can post there. If not, ill start a new thread when that had been addressed. Pleased to say the ability to change the chart type seems to have been restored. Dragging charts around not currently possible. its working now. :) This hasn't been fixed for a few months. Any news? Selection of chart type was fixed at the end of January. Are you still having this issue? Dragging widgets should be fixed shortly. dragging is fixed, please post here or on a new thread if youa re still having issues dragging plots and repositioning. visualizations column chart options
José Soro Mompó in MATLAB Answers
上次活动时间: 2023-10-16

Hello, If I click to Channels -> My Channels, I can see a table showing when Channel was created and UPDATED. Data "UPDATED" field show that my Channels have been updated a few minutes ago (I update every 10 minutes) BUT, Visualization is NOT showing that data... "Last entry: about 12 hours ago". Can somebody please explain the reason for that and how can I solve it??? Thanks Thanks!!

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