last feed data | ThingSpeak API | 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
last feed data
No permission to create posts
February 6, 2018
2:33 pm
Avatar
jacktheripper125

Silver
Members
Forum Posts: 18
Member Since:
January 18, 2018
sp_UserOfflineSmall Offline

Hi

all was going well with thingspeak, untill just recently when I wanted to use the last entry. the problem is because my matlab skills suck I am parsing 4 lots of data every 20 min so it updates my data one at a time. all ok but now I want the last data for gauges it shows null and then whatever it updated last.

is there any way to get the last good data reading ? instead of 

{"created_at":"2018-02-06T19:27:16Z","entry_id":3530,"field1":null,"field2":null,"field3":null,"field4":"87"}

 

all i get is 87 for my gauge :/ any ideas that doesnt involve breaking my working matlab install?

February 7, 2018
8:59 am
Avatar
cstapels
Moderator
Members


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

Mr. TheRipper,

Do you want just the last entry in a field?  There is a specific REST call for last entry in a field.  As long as there is a number in the last 8000 entries, the read last field entry should work for you.

I assume you are presently reading the last entry in the feed, not the field, which is why you get all the null values.

The syntax is similar. For example, https://api.thingspeak.com/channels/12397/fields/4/last.json

If that's not what you were looking for, please let me know.  

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

terranceqh2, DianeEmids, Alanawaype, uqovitay, ufijifode, manish01

Administrators: Hans: 387, lee: 457