SonnyUplavan / oxygencs-grp02-eq12

Log680 Lab2
MIT License
0 stars 0 forks source link

LOG-680 : Template for Oxygen-CS

This Python application continuously monitors a sensor hub and manages HVAC (Heating, Ventilation, and Air Conditioning) system actions based on received sensor data.

It leverages signalrcore to maintain a real-time connection to the sensor hub and utilizes requests to send GET requests to a remote HVAC control endpoint.

This application uses pipenv, a tool that aims to bring the best of all packaging worlds to the Python world.

Requierements

Getting Started

Install the project's dependencies :

pipenv install

pip install psycopg2

Setup

You need to setup the following variables inside the App class:

Running the Program

After setup, you can start the program with the following command:

pipenv run start

Logging

The application logs important events such as connection open/close and error events to help in troubleshooting.

To Implement

There are placeholders in the code for sending events to a database and handling request exceptions. These sections should be completed as per the requirements of your specific application.

License

MIT

Contact

For more information, please feel free to contact the repository owner.