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 MQTT integration for monitoring and controlling various aspects of the system, including lever state, door events, space status, and traffic light status. The changes span across configuration files, documentation, the main application, and a new MQTT observer class.
MQTT Integration:
.env.template
: Added environment variables for MQTT broker configuration and topics.README.md
: Updated documentation to include descriptions of the new MQTT environment variables.Code Enhancements:
src/MqttObserver.py
: Introduced a newMqttObserver
class to handle MQTT connections, subscriptions, and message processing.src/app.py
: Integrated theMqttObserver
into the main application, loading MQTT configurations from environment variables and starting the observer. [1] [2]API Documentation:
src/OAS3.yml
: Added OpenAPI 3.0 specification for the API, including endpoints for health status and the OpenAPI specification itself.