Håkon Dahle in MATLAB Answers
上次活动时间: 2023-1-21

I use the REST API to read data from Thingspeak and this works well: https://api.thingspeak.com/channels/xxxxxx/fields/1.json?average=daily&start=2010-01-01&end=2011-01-01 This request correctly returns one value per day. However I need a monthly average - a single value per month. Ideally something like: https://api.thingspeak.com/channels/xxxxxx/fields/1.json?average=MONTHLY&start=2010-01-01&end=2011-01-01 Is there a way to achieve something like this?
Peter Kellner in MATLAB Answers
上次活动时间: 2022-1-3

I'd like to use REST to get multiple channels of data. I am collecting data for 50 different channels and I'd like to avoid making 50 REST GET calls to get that data. Is this possible with REST? I've read about the MTU? object? Is that somthing that pertains to REST? If it's not possible with REST, should I use a different interface to get that data?
Peter Kellner in MATLAB Answers
上次活动时间: 2021-12-14

In the READ calls for the REST API, there is no mention in the docs for start and end what timezone these are in. My guess is it's either in the timezone of the device, or GMT but it does not explicitly say. I tried setting the timezone to GMT using the timezonep parameter, but then I get no results at all. Here is my encoded string with the auth XXX'd out. https://api.thingspeak.com/channels/1330583/feeds.json?api_key=XXX&timescale=1440&results=100&fields=pm2.5_24hour,name&timezone=Etc%2FUTC&start=2021-11-10%2014:28:48&end=2021-12-10%2014:28:48 Doc I'm reading: https://www.mathworks.com/help/thingspeak/readdata.html
Gcobani Mkontwana in MATLAB Answers
上次活动时间: 2021-8-19

Hi Team I have this Ajax call request, it seem it does not working on my button to download date range, Strange part when i access this URL directly from the browser it can download this file format as CVS file on my local computer, Any idea as to why am i not able to get this write? Kindly please help, thanks. https://nl.mathworks.com/help/thingspeak/readdata.html $(document).ready(function() { $("#download").click(function() { $.ajax({ url:'https://www.thingspeak.com/channels/899906/feeds.csv?api_key=F**&results=3', type:'POST', dataType:'json', success:function(response){ window.location = response; } }); }); });
Benjamin Cortez in MATLAB Answers
上次活动时间: 2020-1-28

I explain, under an alternative internet, I can send information without any problem from the Arduino to ThingSpeak, but when I connect to the network of my work (Ministry of Housing and Urbanization of Chile), it fails to send the applications, or I think it sends them but it is not able to receive answers .. In some occasions it does not solve the DNS, or in others, it resolves them, but it throws error 401 Unauthorized. So, I need to know what exactly the problem is, in order to send a ticket to those who are responsible for modifying the network here. To be more exact, I use an ENC28J60 module I would appreciate any help, if more information is missing just ask me, thank you and have a good day.
Gcobani Mkontwana in MATLAB Answers
上次活动时间: 2019-11-13

How to test your channel using user inputs? Reason being if we dealing with IOT application by using this cloud stack, what could be steps to test for our channel? Do we test using REST api client only? I wan to know and be able to understand the flow of testing scenario involved in this platform for our plugin.
Gcobani Mkontwana in MATLAB Answers
上次活动时间: 2019-11-12

Hi Team I am testing my ajax URL to download cvs file using GET method, these are my paremeters channel for my plugin. GET https://api.thingspeak.com/channels/899906/feeds.csv?start=2019-11-11%2019:11:11&end=2019-11-08%2019:11:11 How do i resolve this issue? I need some help, thanks. $(document).ready(function() { $("#download").click(function() { $.ajax({ url:'https://api.thingspeak.com/channels/899906/feeds.csv?start=2019-11-11%2019:11:11&end=2019-11-11%2019:11:11', type:'GET', success:function(response){ window.location = response; } }); }); });
Oliver Woodford in MATLAB Answers
上次活动时间: 2019-2-8

Some REST APIs, such as <https://developers.google.com/analytics/devguides/reporting/core/v3/gdataAuthorization Google Analytics' Core Reporting API>, require authorization tokens, which must be obtained before the required data can be downloaded. Can anyone share or point to code on how to do this in MATLAB? In particular I'm looking to use an App in the MATLAB-based ThingSpeak service to automatically download the number of unique visitors to my website from Google Analytics (behind an authentication firewall) daily, and save that information to a ThingSpeak channel.
MathWorks Support Team in MATLAB Answers
上次活动时间: 2018-1-2

What ports need to be opened in a firewall in order to communicate with the ThingSpeak server? kA00Z000000oUUDSA2 000093410

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