Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Feeds with data in JSON format #56

Open
ACordero07 opened this issue Sep 27, 2024 · 1 comment
Open

How to use Feeds with data in JSON format #56

ACordero07 opened this issue Sep 27, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ACordero07
Copy link

I am currently receiving data from an interface in json format that I cannot graph due to the structure. Here is an example of what I receive in the value section {"1912D2E7CXXXXXX":{"S003":{"AAA65262":{"BBB000110":78}}}}, The value that interests me is 78 but I cannot remove the rest of the JSON structure and I cannot modify the interface code either.

@tyeth tyeth changed the title FEEDS IN JSON FORMAT Add Documentation for how to graph and use Feeds with data in JSON format Sep 28, 2024
@tyeth tyeth added the question Further information is requested label Sep 28, 2024
@tyeth tyeth changed the title Add Documentation for how to graph and use Feeds with data in JSON format Add Documentation for how to use Feeds with data in JSON format Sep 28, 2024
@tyeth
Copy link
Contributor

tyeth commented Sep 28, 2024

There is a plan to add support for JSON manipulation to Blockly Actions (which is replacing the legacy actions on the Adafruit IO platform, see https://io.adafruit.com/actions if logged in).

This JSON support feature is not yet in the development stage so probably not for a while.
There is a big drive at the moment to add and test a large chunk of extra functionality to Blockly Actions, including the ability to do a comparison between the last_value (including location metadata like lat/long/ele) and current value as part of an action.
After that there is a large project to update the API support for v2 WipperSnapper firmware, and then there will be time to get to new blocks/features for blockly again.

Then end game would be that you would use an Action to extract the nested json value you desire and publish that cleaned value to a new second feed for graphing (or send an email when value reaches X etc).
This image illustrates a similar attempt during testing this week, but currently all feed values are effectively accessed as strings unless used with a number block:
image

@tyeth tyeth changed the title Add Documentation for how to use Feeds with data in JSON format How to use Feeds with data in JSON format Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants