Skip to content

Beta#32

Merged
codershubinc merged 9 commits intomainfrom
beta
Jan 8, 2026
Merged

Beta#32
codershubinc merged 9 commits intomainfrom
beta

Conversation

@codershubinc
Copy link
Owner

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:

  • Added /api/v0.1/system/battery endpoint to return battery information using the new systemBattery package, which fetches data via D-Bus. [1] [2] [3] [4]
  • Added endpoints for system volume, brightness, sound devices, and WakaTime statistics, handled by their respective new packages. [1] [2] [3]

Bluetooth API and Implementation Refactor:

  • Replaced the previous Bluetooth device info retrieval (which used 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]
  • Added a new API handler for /api/v0.1/system/bluetooth in the systemBluetooth package, returning structured JSON with device and battery information. [1] [2]

Middleware Improvements:

  • Removed unnecessary debug logging from the authentication middleware to clean up output. [1] [2]

These changes significantly expand the system information available via the API and improve the reliability of Bluetooth device data.# Pull Request

Description

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.
@codershubinc codershubinc merged commit f45a35f into main Jan 8, 2026
2 checks passed
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.

1 participant