1
0
mirror of https://github.com/Rhinemann/IoT-Systems.git synced 2026-03-14 20:50:39 +02:00
esk4nz 24aeb1a19f changed Batch size to 20
reworked method "on_message"
implemented storeApiAdapter
2026-03-06 00:08:08 +02:00
..
2026-03-06 00:08:08 +02:00
2026-03-06 00:08:08 +02:00
2024-02-12 18:18:38 +02:00
2024-02-12 18:18:38 +02:00
2026-03-06 00:08:08 +02:00
2024-02-12 18:18:38 +02:00
2024-02-12 18:18:38 +02:00

Hub

Instructions for Starting the Project

To start the Hub, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/Toolf/hub.git
cd hub
  1. Create and activate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate
  1. Install the project dependencies:
pip install -r requirements.txt
  1. Run the system:
python ./app/main.py

The system will start collecting data from the agent through MQTT and processing it.

Running Tests

To run tests for the project, use the following command:

python -m unittest discover tests

Common Commands

1. Saving Requirements

To save the project dependencies to the requirements.txt file:

pip freeze > requirements.txt