Feed JSON

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
DelarnTheBard
 
Posts: 8
Joined: Mon Apr 11, 2022 11:05 am

Feed JSON

Post by DelarnTheBard »

I have various feeds that are in JSON. I want to update parts of it with toggles and text field. How should I proceed ?

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Feed JSON

Post by jwcooper »

I think we need more information in order to help you.

Do you want toggles and text fields on the IO dashboards? SO taht when you toggle them, they update feed values?

We have a really good guide for getting started with various aspects of IO here:
https://learn.adafruit.com/welcome-to-a ... o/overview

And all of our IO guides here:
https://learn.adafruit.com/category/adafruit-io

User avatar
DelarnTheBard
 
Posts: 8
Joined: Mon Apr 11, 2022 11:05 am

Re: Feed JSON

Post by DelarnTheBard »

jwcooper wrote:I think we need more information in order to help you.

Do you want toggles and text fields on the IO dashboards? SO taht when you toggle them, they update feed values?

We have a really good guide for getting started with various aspects of IO here:
https://learn.adafruit.com/welcome-to-a ... o/overview

And all of our IO guides here:
https://learn.adafruit.com/category/adafruit-io
feed has 3 different information in it : Liquid Gravity Scale, Temperature Scale and Scan interval time.
Toggle 1 is : Specific Gravity or Plato (Value = SG or PL)
Toggle 2 is : Celcius or Fahrenheit (Value = C or F)
Text field is : Scan interval in seconds.

I also have polynomial value based on tilt angle, that is in a 4 space tople ( 0,0,0,0)
They should be entered in 4 texts fields.

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Feed JSON

Post by jwcooper »

Ok, I see. The dashboard blocks are unable to parse json at this time. You can send and receive the custom json key/value pairs, but will be unable to use the blocks.

The ideal approach is to create a separate feed at this time.

You could also do all of this on the client, and have the client process the data to send back to IO as non-json formatted data.

User avatar
DelarnTheBard
 
Posts: 8
Joined: Mon Apr 11, 2022 11:05 am

Re: Feed JSON

Post by DelarnTheBard »

jwcooper wrote:Ok, I see. The dashboard blocks are unable to parse json at this time. You can send and receive the custom json key/value pairs, but will be unable to use the blocks.

The ideal approach is to create a separate feed at this time.

You could also do all of this on the client, and have the client process the data to send back to IO as non-json formatted data.
with only 10 feeds it's hard ;)

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Feed JSON

Post by jwcooper »

Yes, that's part of the compromise with a free account. IO+ offers unlimited feeds if you need more.

User avatar
DelarnTheBard
 
Posts: 8
Joined: Mon Apr 11, 2022 11:05 am

Re: Feed JSON

Post by DelarnTheBard »

I'll try to work with those.

User avatar
DelarnTheBard
 
Posts: 8
Joined: Mon Apr 11, 2022 11:05 am

Re: Feed JSON

Post by DelarnTheBard »

jwcooper wrote:Yes, that's part of the compromise with a free account. IO+ offers unlimited feeds if you need more.
But it would be nice to have a nosql database to hold data. feeds are cool, but limited.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”