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

Support JSON output format in the smc CLI command #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eli-jordan
Copy link

This adds an option -o {json|text} that allows the output from -t and -f to be rendered as json rather than an adhoc text format. Exposing json will make it easier for other programs to make use of the data that exposed by the SMC.

@eli-jordan
Copy link
Author

Update, I created a prometheus exporter based on this change. See https://github.com/eli-jordan/osx-smc-exporter

smc-command/smc.c Outdated Show resolved Hide resolved
Co-authored-by: tigattack <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants