More metadata fields to channel | Feature Requests | 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
More metadata fields to channel
Avatar
DodBasim

Silver
Forum Posts: 12
sp_UserOfflineSmall Offline
1
June 28, 2014 - 8:51 am
sp_Permalink sp_Print

I wish i had the ability to add more fields to a channel. Something similar to the Description.
Those fields should be visible in the API call (https://thingspeak.com/channels/channelID/feed.json)
but may not be visible in public/private channel pages.

You are great!

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
2
June 29, 2014 - 1:04 pm
sp_Permalink sp_Print

Hi,

Does the "status" field cover what you're looking for? Here's an example:
https://api.thingspeak.com/channels/1417/status.json?results=30&days=5

lee

Avatar
DodBasim

Silver
Forum Posts: 12
sp_UserOfflineSmall Offline
3
June 29, 2014 - 8:01 pm
sp_Permalink sp_Print

No, look at "custom_property" in the channels response below

channel: {
id: 1
name: "RPi"
description: "This is a very cool sensor"
custom_property: "Any Text/JSON/XML"
latitude: "34.016331"
longitude: "-118.191111"
field1: "CPU"
created_at: "2014-06-24T05:21:38Z"
updated_at: "2014-06-29T23:59:45Z"
elevation: "40"
last_entry_id: 1158
}

The idea is to give more info about the sensor/channel when calling with API

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
4
June 30, 2014 - 1:06 pm
sp_Permalink sp_Print

Hi,

We just added a new Channel property for you, called "metadata". You can set it on the Channel settings page, and it can store an unlimited amount of JSON/XML or any other data. If you want to include the metadata when getting the Channel feeds, just add "metadata=true". Please see https://thingspeak.com/docs/channels#get_feed for further documentation.

lee

Avatar
DodBasim

Silver
Forum Posts: 12
sp_UserOfflineSmall Offline
5
July 1, 2014 - 4:59 am
sp_Permalink sp_Print

Thank you very much for doing this.
Once again, you showed how flexible and responsive you are.

Keep up the good work
Smile

Avatar
DodBasim

Silver
Forum Posts: 12
sp_UserOfflineSmall Offline
6
July 1, 2014 - 4:21 pm
sp_Permalink sp_Print

One more thing...
Do you think you will be able to add the option to update this field via HTTP POST call?

One more thing 2...
Any plans to add a global Status field to the channel that will be accessible via HTTP POST/GET?

Thanks again...

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
7
July 2, 2014 - 11:46 am
sp_Permalink sp_Print

Hi,

We added the ability to update a Channel via the API: https://thingspeak.com/docs/channels#update .

Please use the newly added "metadata" field for status requests. For example, you can store JSON metadata info as
{ "status": "online", "otherinfo", "etc." }
and then parse out the status from the response.

lee

Avatar
DodBasim

Silver
Forum Posts: 12
sp_UserOfflineSmall Offline
8
July 3, 2014 - 4:22 am
sp_Permalink sp_Print

works like a charm

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: loli72
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 232

Vinod: 136

vespapierre: 63

piajola: 62

Adarsh_Murthy: 59

chrisjmears: 54

Newest Members:

loli72

beeconnections

py2alc

Tonibco6

Ge_O

Negron

Forum Stats:

Groups: 4

Forums: 17

Topics: 1148

Posts: 4060

 

Member Stats:

Guest Posters: 1

Members: 5339

Moderators: 0

Admins: 2

Administrators: Hans, lee