Skip to content

Refactor AirStatus: transformar script em API WebSocket com FastAPI #26

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

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

Conversation

newthiagoassisk8
Copy link

@newthiagoassisk8 newthiagoassisk8 commented Jun 22, 2025

This merge request converts the original AirStatus script, which previously ran via the terminal, into a WebSocket API using FastAPI.
It allows clients to connect and receive real-time updates on the AirPods battery status.

Key changes:

Implementation of a WebSocket server using FastAPI.

Continuous broadcasting of AirPods data to all connected clients.

Code modularization to improve maintainability and support future extensions.

Removal of terminal-based execution as the main script.

Motivation:

With this change, AirPods monitoring can now be integrated into web applications or more user-friendly interfaces, such as a React dashboard.

@newthiagoassisk8 newthiagoassisk8 changed the title master Refactor AirStatus: transformar script em API WebSocket com FastAPI Jun 22, 2025
@newthiagoassisk8 newthiagoassisk8 marked this pull request as ready for review June 22, 2025 19:25
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