主要内容

搜索

I am having issues with my two channels

https://thingspeak.com/channels/513058

https://thingspeak.com/channels/971602

when I try to view them without being logged in. The channels are public (and have always been that way). I have those links on my desktop and also have them as favourites in my browser. Using any of these will ead to the following behavior

  1. The public view of the channels starts to load
  2. Widgeds etc start to be filled (see attached file Scrennhunter_309.png)
  3. The display view closes after a few seconds and shows the Mathwork/Thingspeak sign on screen with a message box saying "Signed out successfully" (see attached file ScreenHunter_310.png)

In order to circumvent the issue, I have

  • deleted the cache
  • deleted all mathwork cookies
  • deleted all thingspeak cookies

The issue prevails. I have then

  • deleted the cache
  • deleted all cookies

The issue prevails.

I tried

  • Firefox browser Version 78.9.0esr (32-Bit)
  • Internet explorer, newest Version
  • Microsoft Edge, newest Version

The issue prevails

I tried 3 different PCs, each running Windows 10 pro 20H2 (build 19042.928) with all current updates installed

The issue prevails

I tried my Safari browser on my ipad Pro - no issue there!!, neither on my iPhone.

What am I missing? What can/shoud I do?

With best regards vom Germany

Volker Bandke

Everytime I try to log onto my thingspeak the webpage keeps refreshing. Have to stop loading page and every page I go to keeps refreshing.

Introducing content recommendations, a new feed on the community home page with personalized content just for you. MATLAB Central has hundreds of thousands of posts, including files, blogs, questions, and answers. We’re always looking for opportunities to better serve the community as it continues to grow so that visitors can easily help one another and ultimately find what they're looking for.

MATLAB Central has been around for a long time, 20 years this year - more on this milestone in a separate post later. With so much great content it can be a challenge to find what you're looking for or discover new things. We have search and browsing capabilities across the community but even with these robust features you still might not discover some very interesting or relevant content. In the spirit of trying to make sure you don't miss out, we've just released our first version of our recommended content feed. You can see this new feed on the community home page, visible by default via the 'For You' tab.

Recommendations are pulled from across MATLAB Central based on what we think would be relevant to you. We think we have a good starting point and plan on tweaking the algorithms now that it's live. So, expect the feed to only get more relevant over time.

We hope you will find this feature helpful and as always please reply with any feedback you may have.

Hi,

 Recently, I'm trying to view any Public channel (including my public channel). It opens the channel a second and redirects to the login page. Is there any way to see a public channel without login?

S.

I'm testing use of a 3g dongle which is pay as go (in the UK). I'm sending messages to Thingspeak (via Python on Pi) but the credit allowance decrease indicates several megabytes have been used. Even if one message is 1,000 bytes then after 1,000 messages like this I'd expect to lose 1 megabyte of credit but instead it's 10 MB (I'm sending https://api.thingspeak.com/update?api_key=xxxxxxxxxxxxx&field3=12345 ) Has anyone experience of data logging over a mobile data dongle and how much it should cost ?

New in R2021a, LimitsChangedFcn

LimitsChangedFcn is a callback function that responds to changes to axis limits ( release notes ). The function responds to axis interaction such as panning and zooming, programmatically setting the axis limits, or when axis limits are automatically adjusted by other processes.

LimitsChangedFcn is a property of ruler objects which are properties of axes and can be independently set for each axis. For example,

ax = gca(); 
ax.XAxis.LimitsChangedFcn = ... % Responds to changes to XLim
ax.YAxis.LimitsChangedFcn = ... % Responds to changes to YLim
ax.ZAxis.LimitsChangedFcn = ... % Responds to changes to ZLim

Previously, a listener could be assigned to respond to changes to axis limits. Here are some examples.

However, LimitsChangedFcn responds more reliably than a listener that responds to setting/getting axis limits. For example, after zooming or panning the axes in the demo below, the listener does not respond to the Restore View button in the axis toolbar but LimitsChangedFcn does! After restoring the view, try zooming out which does not result in changes to axis limits yet the listener will respond but the LimitsChangedFcn will not. Adding objects to axes after an axis-limit listener is set will not trigger the listener even if the added object expands the axis limits ( why not? ) but LimitsChangedFcn will!

ax = gca(); 
ax.UserData.Listener = addlistener(ax,'XLim','PostSet',@(~,~)disp('Listener')); 
ax.XAxis.LimitsChangedFcn = @(~,~)disp('LimitsChangedFcn')

How to use LimitsChangedFcn

The LimitsChangedFcn works like any other callback. For review,

The first input to the LimitsChangedFcn callback function is the handle to the axis ruler object that was changed.

The second input is a structure that contains the old and new limits. For example,

    LimitsChanged with properties:
      OldLimits: [0 1]
      NewLimits: [0.25 0.75]
         Source: [1×1 NumericRuler]
      EventName: 'LimitsChanged'

Importantly, since LimitsChangedFcn is a property of the axis rulers rather than the axis object, changes to the axes may clear the LimitsChangedFcn property if the axes aren't held using hold on. For example,

% Axes not held
ax = gca(); 
ax.XAxis.LimitsChangedFcn = @(ruler,~)title(ancestor(ruler,'axes'),'LimitsChangedFcn fired!'); 
plot(ax, 1:5, rand(1,5), 'o')
ax.XAxis.LimitsChangedFcn
ans =
    0×0 empty char array
% Axes held
ax = gca(); 
hold(ax,'on')
ax.XAxis.LimitsChangedFcn = @(ruler,~)title(ancestor(ruler,'axes'),'LimitsChangedFcn fired!'); 
plot(ax, 1:5, rand(1,5), 'o')
ax.XAxis.LimitsChangedFcn
ans =
  function_handle with value:
    @(ruler,~)title(ancestor(ruler,'axes'),'LimitsChangedFcn fired!')

Demo

In this simple app a LimitsChangedFcn callback function is assigned to the x and y axes. The function does two things:

  1. Text boxes showing the current axis limits are updated
  2. The prying eyes that are centered on the axes will move to the new axis center

This demo also uses Name=Value syntax and emoji text objects !

Create app

h.fig = uifigure(Name="LimitsChangedFcn Demo", ...
    Resize="off");
h.fig.Position(3:4) = [500,260];
movegui(h.fig)
h.ax = uiaxes(h.fig,...
    Units="pixels", ...
    Position=[200 26 250 208], ...
    Box="on");
grid(h.ax,"on")
title(h.ax,"I'm following you!")
h.eyeballs = text(h.ax, .5, .5, ...
    char([55357 56385 55357 56385]), ...
    HorizontalAlignment="center", ...
    FontSize=40);
h.label = uilabel(h.fig, ...
    Text="Axis limits", ...
    Position=[25 212 160 15], ...
    FontWeight="bold",...
    HorizontalAlignment="center");
h.xtxt = uitextarea(h.fig, ...
    position=[25 191 160 20], ...
    HorizontalAlignment="center", ...
    WordWrap="off", ...
    Editable="off",...
    FontName=get(groot, 'FixedWidthFontName'));
h.ytxt = uitextarea(h.fig, ...
    position=[25 165 160 20], ...
    HorizontalAlignment="center", ...
    WordWrap="off", ...
    Editable="off", ...
    FontName=get(groot, 'FixedWidthFontName'));
h.label = uilabel(h.fig, ...
    Text=['X',newline,newline,'Y'], ...
    Position=[10 170 15 38], ...
    FontWeight="bold");

Set LimitsChangedFcn of x and y axes

h.ax.XAxis.LimitsChangedFcn = @(hObj,data)limitsChangedCallbackFcn(hObj,data,h,'x');
h.ax.YAxis.LimitsChangedFcn = @(hObj,data)limitsChangedCallbackFcn(hObj,data,h,'y');

Update text fields

xlim(h.ax, [-100,100])
ylim(h.ax, [-100,100])

Define LimitsChangedFcn

function limitsChangedCallbackFcn(rulerHand, limChgData, handles, xy)
% limitsChangedCallbackFcn() responds to changes to x or y axis limits.
% - rulerHand: Ruler handle for x or y axis that was changed (not used in this demo)
% - limChgData: LimitsChanged data structure
% - handles: structure of App handles
% - xy: either 'x' or 'y' identifying rulerHand
switch lower(xy)
    case 'x'
        textHandle = handles.xtxt;
        positionIndex = 1; 
    case 'y'
        textHandle = handles.ytxt;
        positionIndex = 2; 
    otherwise
        error('xy is a character ''x'' or ''y''.')
end
% Update text boxes showing rounded axis limits
textHandle.Value = sprintf('[%.3f, %.3f]',limChgData.NewLimits);
% Move the eyes to the new center position
handles.eyeballs.Position(positionIndex) = limChgData.NewLimits(1)+range(limChgData.NewLimits)/2; % for linear scales only!
drawnow
end

See attached mlx file for a copy of this thread.

Highlight Icon image

HI! The following line works well to send my var1 value to thingspeak.

GET https://api.thingspeak.com/update?api_key=****************&field1={var1}

But I would like to send the addition of var1+var2 in the same command. I tried many differents commands like:

    GET https://api.thingspeak.com/update?api_key=****************&field1={var1+var2}

any help? Thanks

We will be hosting a seminar on MATLAB Grader, the product I manage at MathWorks, on April 21st at 7am EDT. If you are interested in adding autograding capabilities for #MATLAB to your course, MOOC, textbook, or learning environment and have questions, please join this seminar and take part in the live Q&A with the product team the following week. #autograding #assessments #onlineassessment #onlineteaching

MathWorks Seminar: Autograded Assessments with MATLAB Grader & LMS Integration

Javascript based plugins no longer working properly (in private views). Its just not displayed in channels. (Shown as field Sections are empty)

I can no longer open and view my Thingspeak results in Firefox. It gets stuck in a loop which alternates between telling me I've logged in and authenticating. I've tried clearing Thingspeak cookies and rebooting the PC.

The same page works in Chrome, but I prefer to use Firefox as my browser. Any ideas what is wrong ?

Hello

From earlier today a project i've been working on has stopped working. It was working for the last couple of weeks with no coding updates in the mean time.

The error i'm only now getting is

"from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

Im transferring four readings from thingspeak to a web page

the get command i'm using is. xhttp.open("GET", "https://api.thingspeak.com/channels/752230/feeds/last", false); xhttp.send();

Why would i only start receiving this error today. If more information is needed i will send it on.

any insights would be much appreciated.

Thanks

Trev

Hello, since today 14:00 CEST (UTC+2) (= 12:00 UTC = 4 hours ago) none of my thinkspeak clients running on Arduinos using PubSubClient are able to connect to mqtt.thingspeak.com. Until then, they have been running happily for months.

I tried to send some data manually but didn't succeed:

mosquitto_pub -d -h mqtt.thingspeak.com -u TESTTerrasseWemos -p 1883 -P xxxx -t "channels/cccc/publish/yyyy" -m "field1=10&field2=60" ; echo $?
Client mosq-xxxxxxx sending CONNECT
Error: Unknown error.
19

The exact errors differ from try to try. But I don't know if my call is definitely correct.

Any help or information what might have changed at mqtt.thingspeak.com?

Thank you very much.

hi everyone could you explain to me why the three phase voltages in this video are not sinusoïdale and how to change them To be sinusoidale?

Youtube video: Motor Control Design with MATLAB and Simulink

link:https://www.youtube.com/watchv=lP4jbmthiyc&t=1103s&ab_channel=MATLAB

We are introducing Scratch Pad in Cody to support iterative problem solving. Scratch Pad will enable you to build your solution line-by-line, experiment with different MATLAB functions, and test your solution before submitting.

Try it out and let us know what you think.

Hi. Im using sim800 for sending data to thingspeak channels when connecting to api.thingspeak.com with port 80 everything is ok. But after sending" update?api_key=YYP2Q3T8UZ2WBP6H&field1=0 " by sim800 it closes the connection and 400 Bad Request error appears on the debug session. I tried this with hercules serial terminaal and same results .

Hello

I am currently having a hard time to install thingspeak server standalone on Debian 10 (Buster). I used the following docs: https://www.teracomsystems.com/blog/how-to-install-local-thingspeak-server/ https://angryelectron.com/how-to-install-a-thingspeak-server/

It breaks on "bundle install" with wrong gem dependencies, several tries to resolve the dependencies didn't work.

Anyone had luck installing thingspeak latest on Debian 10? Is there an installation documentation for thingspeak on Buster?

Thank you, Thomas

Hi - I'm currently using the code from this article: https://uk.mathworks.com/help/thingspeak/continuously-collect-data-and-bulk-update-a-thingspeak-channel-using-an-arduino-mkr1000-board-or-an-esp8266-board.html

My plan was to use this so as to update my Thingspeak server every second with data recorded on my arduino of higher than 1Hz. I am currently taking vibration sensor data that for my project requires a higher sample rate than Thingspeak is able to handle naturally - thus I found bulk updates to be the solution.

I have gotten this to work as specified in the article - updates every 2 minutes with data points at every 15 seconds. I have gotten this as far as data points every second with an update to the server every 10 second - however the system fails at any data point shorter than a second. I believe this to be a problem with using delta_t but I am not sure.

To clarify I do not have a computer science background, this is currently a project I'm working on in Mechanical engineering and I've truly hit a wall with this problem. Any help would be appreciated!

My system is an Arduino MEGA 2560 with an ethernet shield - in the sample code they use RSSI to output sample data, I simply changed this to a random number between 0-50.

I have a channel in thing speak with 1 field but the field visualization shows the date is yet to come "2022 </matlabcentral/discussions/uploaded_files/4532/data>

I am new to the subject but I want to learn, I wanted to know how I use my esp32 to activate a relay (to connect devices and or lamps) from a distance with my cell phone. what do I have to use for this or what procedures should I follow, thank you

how can we modify the parameters to have a value with one decimal after the comma ?

thank you in advance,