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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- DelarnTheBard
- Posts: 8
- Joined: Mon Apr 11, 2022 11:05 am
Feed JSON
I have various feeds that are in JSON. I want to update parts of it with toggles and text field. How should I proceed ?
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Feed JSON
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
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
- DelarnTheBard
- Posts: 8
- Joined: Mon Apr 11, 2022 11:05 am
Re: Feed JSON
feed has 3 different information in it : Liquid Gravity Scale, Temperature Scale and Scan interval time.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
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.
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Feed JSON
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.
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.
- DelarnTheBard
- Posts: 8
- Joined: Mon Apr 11, 2022 11:05 am
Re: Feed JSON
with only 10 feeds it's hard ;)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.
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Feed JSON
Yes, that's part of the compromise with a free account. IO+ offers unlimited feeds if you need more.
- DelarnTheBard
- Posts: 8
- Joined: Mon Apr 11, 2022 11:05 am
Re: Feed JSON
I'll try to work with those.
- DelarnTheBard
- Posts: 8
- Joined: Mon Apr 11, 2022 11:05 am
Re: Feed JSON
But it would be nice to have a nosql database to hold data. feeds are cool, but limited.jwcooper wrote:Yes, that's part of the compromise with a free account. IO+ offers unlimited feeds if you need more.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.