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

Possibility to ignore parts of long JSON output "status_" matching #74

Open
brotkasten87 opened this issue Sep 25, 2017 · 0 comments
Open

Comments

@brotkasten87
Copy link

brotkasten87 commented Sep 25, 2017

Hi,
the plugin I'm using to get status updates outputs a rather long JSON string (It's called Raumserver).
To get the current "status_on" or "status_off", I need the possiblity to let homebridge-http ignore parts of the JSON string for it's matching.
Is there the possibility to ad the possibility to includa a *-selector (or anything else) before and after the important JSON string to ignore everything before and after?
Example:

"status_on": 
{ *
 "power": "ON","color": "Blue"
 * }

would only check this part of the JSON output and set the status to "on" if it matches. Because of the *-selector, the plugin would ignore any strings before or afterwards.

That would be super helpful.
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant