Merged
Conversation
recalibrating the beta with main
This commit introduces a new API endpoint to retrieve battery information from the system. The new endpoint is . The implementation uses D-Bus to get the battery status on Linux. The following new files have been added: - internal/system/battery/api_battery.go - internal/system/battery/battery.go The router has been updated to include the new endpoint.
…etting functionality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new system-related API endpoints and refactors the way Bluetooth device information is retrieved. The main focus is on expanding the API to expose system battery, Bluetooth, brightness, sound, and WakaTime statistics, as well as improving the accuracy and reliability of Bluetooth device data by switching to D-Bus for device discovery and status. Additionally, some middleware logging has been cleaned up.
New System API Endpoints:
/api/v0.1/system/batteryendpoint to return battery information using the newsystemBatterypackage, which fetches data via D-Bus. [1] [2] [3] [4]Bluetooth API and Implementation Refactor:
bluetoothctl) with a new implementation that uses D-Bus for more accurate and robust device and battery status discovery. [1] [2] [3] [4] [5] [6]/api/v0.1/system/bluetoothin thesystemBluetoothpackage, returning structured JSON with device and battery information. [1] [2]Middleware Improvements:
These changes significantly expand the system information available via the API and improve the reliability of Bluetooth device data.# Pull Request
Description