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

RFC: Add method to pass arbitrary client system info #1259

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mawe42
Copy link
Contributor

@mawe42 mawe42 commented Jul 5, 2024

This is a request-for-comments PR regarding a new feature I would like to add to SnapCast: sending arbitrary system information from SnapCast clients to the server, so that the information can be displayed in SnapWeb.

It adds two new command-line switches to the client:

  • --sysinfo [file:<path to JSON file>, script:<path to executable returning JSON>]
  • --sysinfo-interval [seconds - interval in seconds between system information updates]

Any JSON values that are in the specified file or returned by the script will be passed to the SnapCast server. The server then returns this information along with the other client info and also sends an Client.OnSystemInfoChanged event via the Websocket.

The data is displayed in a dialog similar to the client details. An example implementation for SnapWeb can be found in this branch: https://github.com/mawe42/snapweb/tree/show-system-info

Use-case for this feature is that I want to sent and display information about the battery charge and power consumption of the connected clients, but possibly also other information.

The question here is: would this be something that you would consider for integration in SnapCast?

@mawe42 mawe42 marked this pull request as draft July 5, 2024 12:41
@mawe42
Copy link
Contributor Author

mawe42 commented Jul 5, 2024

The CI failures seem to be due to an unused parameter warning in the boost source code. Maybe the warnings could be reduced when compiling third-party code?

@badaix
Copy link
Owner

badaix commented Aug 1, 2024

Thanks, I didn't forget the PR, but I didn't manage to look into it yet, I hope to find time for it soon.

@mawe42
Copy link
Contributor Author

mawe42 commented Aug 1, 2024

No worries, take your time.

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