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

Implement the controller #2

Merged
merged 5 commits into from
Nov 2, 2024
Merged

Implement the controller #2

merged 5 commits into from
Nov 2, 2024

Conversation

penguineer
Copy link
Member

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 new MqttObserver class to handle MQTT connections, subscriptions, and message processing.
  • src/app.py: Integrated the MqttObserver 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.

@penguineer penguineer self-assigned this Nov 2, 2024
@penguineer penguineer merged commit 2202ba4 into main Nov 2, 2024
2 checks passed
@penguineer penguineer deleted the controller branch November 2, 2024 17:52
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