Help with basics - cant even copy data to another field

3 visualizaciones (últimos 30 días)
Denis Lukashevich
Denis Lukashevich el 26 de Dic. de 2020
Comentada: Vinod el 29 de Dic. de 2020
Hi. I want to use matlab to calculate some data from my channel and send it ti new field. But even simple code cannot be done. What i do wrong? Every time i getting error : "URL is incorrectly formed, or the requested feature is not supported in this version of ThingSpeak". Here it is (channel is private):
readChannelID = 1071866;
writeChannelID = 1071866;
humidityFieldID = 1;
readAPIKey = 'xxxx';
writeAPIKey = 'yyyyy';
[hum1,time] = thingSpeakRead(readChannelID,'Fields',[humidityFieldID],'ReadKey',readAPIKey);
thingSpeakWrite(writeChannelID, hum1,'Fields',5,...
'TimeStamps', timestamps,'WriteKey',writeAPIKey);

Respuestas (1)

Christopher Stapels
Christopher Stapels el 28 de Dic. de 2020
Editada: Christopher Stapels el 28 de Dic. de 2020
Timestamps in a channel must be uniqiue. Once written, you cannot edit a feed. A feed is the collection of a timestamp and the associated fields at that timestamp. You are trying to write data with the same timestamp as existing data to the channel. You would need to clear the channel to be able to write that data again. At the time that you write the first data point, you can simultaneously write all 8 fields, but not after you have written the feed.
  1 comentario
Vinod
Vinod el 29 de Dic. de 2020
To add to what Christopher said, if you are looking to modify the historical data in a channel, you can do that by writing out the modified entries to a new channel.

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Prepare and Analyze Data en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by