Example Project - Getting Error: URL is incorrectly formed, or the requested feature is not supported in this version of ThingSpeak. | MATLAB IoT Analytics | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Example Project - Getting Error: URL is incorrectly formed, or the requested feature is not supported in this version of ThingSpeak.
No permission to create posts
December 16, 2018
8:27 pm
Avatar
rohankelkar
New Member
Members
Forum Posts: 1
Member Since:
December 16, 2018
sp_UserOfflineSmall Offline

Hello ,

I am making thingSpeak example project of Dew Point. I am getting error 'URL is incorrectly formed, or the requested feature is not supported in this version of ThingSpeak' in the code.

the code is written as below -

% Enter your MATLAB Code below
readChId = 12397;
writeChId = 655718;
writeKey = 'R7M5XY5TRHGQR85C';
[temp,time] = thingSpeakRead(readChId,'Fields',4,'NumPoints',20);
humidity = thingSpeakRead(readChId,'Fields',3,'NumPoints',20);
tempC = (5/9)*(temp-32);
b = 17.62;
c = 243.5;
gamma = log(humidity/100) + b*tempC./(c+tempC);
dewPoint = c*gamma./(b-gamma)
dewPointF = (dewPoint*1.8) + 32;
thingSpeakWrite(writeChId,[temp,humidity,dewPointF],'Fields',[1,2,3],...
'TimeStamps',time,'Writekey',writeKey);

This is an example code from ThingSpeak. Can you please guide me why I am getting this error? The objective of this code is to shows how to read temperature and humidity data from ThingSpeak channel 12397, which collects weather-related data from an Arduino® device.

After reading data of Temperature and Humidity, I am getting this error. Is it because there is some conflict in the time stamp which thingspeakread command can't handle?

Please help as this is my first project.

With Best Regards,
Rohan Kelkar

December 18, 2018
9:09 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 861
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

I can test your code tomorrow, but can you first try clearing the target channel first before writing? If that doesn't work, try commenting out the thingSpeakWrite line using %, just to see if that is the culprit.

December 19, 2018
9:37 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 861
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

I think clearing the target channel will work. ThingSpeak now enforces unique timestamps. If you run the code too often, it will find some of the same points again and will attempt to write some points with timestamps already used. You can avoid this issue by only running the code infrequently.
We have entered the need to improve the error message in our bug tracking system. Thank you for pointing it out.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
14 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457