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

JSON output #78

Open
wldevries opened this issue Mar 14, 2021 · 2 comments
Open

JSON output #78

wldevries opened this issue Mar 14, 2021 · 2 comments

Comments

@wldevries
Copy link

It would be great if this tool could dump the status as a JSON object. This would make integration with other systems much easier. For this to work well with multiple appliances ideally the ID or IP address of the device would be included as well.

My goal is to send the output of airctrl to MQTT, possibly to hook up logic, but my first main goal is to graph the PM2.5 and allergen index values over time in Grafana.

@Cyber1000
Copy link
Contributor

Cyber1000 commented Mar 31, 2021

@wldevries if you call airctrl with -d (d for debug) you get json + "normal data"

@Cyber1000
Copy link
Contributor

Maybe a refactoring (#34) would be the best, the "library" part (for example CoAPAirClient) already returns json, just the command-line part prettifies/formats the output.

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

2 participants