Sendhoran Manokaran in MATLAB Answers
최근 활동: 2021년 8월 16일

Hello. I am doing a Thingspeak project and I am having this issue that is printed out on only one of my MATLAB analyses which is: Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 396) The server returned the status 429 with message "Too Many Requests" in response to the request to URL Error in readContentFromWebService (line 46) byteArray = copyContentToByteArray(connection); Error in webwrite (line 139) [varargout{1:nargout}] = readContentFromWebService(connection, options); Error in High humidity (line 8) result = webwrite(alert_url, jsonmessage, options); Can I know what this issue means? The rest of my analyses do not have an issue -- only one of them does.
Julius Kübler in MATLAB Answers
최근 활동: 2021년 1월 28일

Hey there, I want to delete a thingspeak channel using the webwrite function. This is what it looks like: url = ['https://api.thingspeak.com/channels/' channelID '.json'] options = weboptions('RequestMethod','delete', 'MediaType','application/x-www-form-urlencoded'); response = webwrite(url,'api_key',userAPIkey,options) This returns status 401 Unauthorized. But if I only change the RequestMethod to 'put', I don't get any errors. But using 'put' only allows me to change the channel settings. How do I delete the channel using webwrite?
Aman Kumar in MATLAB Answers
최근 활동: 2020년 5월 20일

% Enter your MATLAB Code below % Read Output Water Quantity over the past month from a ThingSpeak channel and write % the average to another ThingSpeak channel. % Channel 1035265 contains data from the MathWorks water supply station, located % in Natick, Massachusetts. The data is collected once every day. Field % 3 contains output liquid quantity data. % Channel ID to read data from readChannelID = 1035265; % Output Liquid Quantity Field ID outputliquidqantityFieldID = 3; % Channel Read API Key % If your channel is private, then enter the read API Key between the '' below: readAPIKey = ''; % Get Output Liquid Quantity data for the last 30 days from the MathWorks water supply % station channel. Learn more about the THINGSPEAKREAD function by going to % the Documentation tab on the right side pane of this page. meter_reading = thingSpeakRead(readChannelID,'Fields', outputliquidqantityFieldID,'Numdays',1,'ReadKey',readAPIKey); % Calculate the Cost Billing_cost = 5* (meter_reading/1000); display(Billing_cost,'Total Billing Cost (INR)'); % Start by setting the channel ID and Alert key. All alert key start with TAK. data = thingSpeakRead(1035265,"Numdays", 1); formatSpec = "The Water consumption bill is: %d,%d"; A1 = 5* (meter_reading/1000); A2 = meter_reading apiKey = 'TAK1S83KIQN0BBLNS'; alertURL = "https://api.thingspeak.com/alerts/send"; options = weboptions("HeaderFields", ["ThingSpeak-Alerts-API-Key", apiKey ]); alertBody = sprintf(formatSpec,A1,A2) alertSubject = sprintf(" Water consumption exceeded 100 kl!"); if meter_reading >= 100 webwrite(alertURL, "body", alertBody, "subject", alertSubject, options); end
Abhishek Ballaney in MATLAB Answers
최근 활동: 2017년 4월 12일

How to upload html page through webwrite function?
Abhishek Ballaney in MATLAB Answers
최근 활동: 2017년 4월 11일

How to write an image using webwrite? Please guide.
Tommes81 in MATLAB Answers
최근 활동: 2016년 2월 29일

I downloaded the ThingSpeak Toolbox and started coding, than I get failures using webwrite. After a search I found, that this function is not in the toolbox. Is that correct? How can I get this function soon?
Björn Skatt in File Exchange
최근 활동: 2015년 8월 5일

Really simple IoT writer tool - adding data bursts, named fields and efficency option

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.