Contenido principal

Resultados de

Hello
I am trying to run the example code for "Calculate and display average humidity" using my channel data. I filled in the blanks:
  1. readChannelID
  2. humidityFieldID
  3. NumMinutes=720
The program returns display(avgHumidity,'Average Humidity') with "NAN" instead of the correct average. I have a free ThingSpeak account but have been following temperature & humidity every hour for the last 9 months. I would also like to store this average value on the same channel on a new field. Can anyone help me?
Thank You
Sreehari M V
Sreehari M V
Última actividad el 19 de Mzo. de 2021

An error occurred while executing the code. I was referring this site : https://in.mathworks.com/help/thingspeak/monitor-channel-inactivity-using-multiple-thingSpeak-apps.html

While executing the code

Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 373) The server returned the status 400 with message "Bad Request" in response to the request to URL https://api.thingspeak.com/apps/thinghttp/send_request?3DOHBYUXDXD4OVIV=WA327EPXB1DWM0FA.

Error in readContentFromWebService (line 46) byteArray = copyContentToByteArray(connection);

Error in webread (line 125) [varargout{1:nargout}] = readContentFromWebService(connection, options);

Error in Custom (no starter code) 2 (line 3) Trigger_TalkBack = webread(url,'3DOHBYUXDXD4OVIV',ThingHTTP_APIKEYS.To_Trigger_TalkBack) %Trigger TalkBack via ThingHTTP

This is been showing

My Code :

ThingHTTP_APIKEYS = struct('To_Trigger_TalkBack','WA327EPXB1DWM0FA');% Your ThingHTTP app API keys url = 'https://api.thingspeak.com/apps/thinghttp/send_request'; Trigger_TalkBack = webread(url,'3DOHBYUXDXD4OVIV',ThingHTTP_APIKEYS.To_Trigger_TalkBack) %Trigger TalkBack via ThingHTTP