last feed data | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
last feed data
Avatar
jacktheripper125

Silver
Forum Posts: 15
sp_UserOfflineSmall Offline
1
February 6, 2018 - 2:33 pm
sp_Permalink sp_Print

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?

Avatar
cstapels
Moderator
Forum Posts: 158
sp_UserOfflineSmall Offline
2
February 7, 2018 - 8:59 am
sp_Permalink sp_Print

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:
36 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

ibgedubo

aogomaeqaza

ureomug

itixuwidouzuv

eilimir

memozupi

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee