thingspeaks-data-engine is a powerful tool designed to fetch data from ThingSpeak, normalize it, and store it into a relational database. It serves as an API that allows users to configure the engine and ingest data seamlessly.
To get started with thingspeaks-data-engine, follow these steps:
- Navigate to the
app
directory. - Activate the virtual environment using Poetry:
poetry shell
- Run the engine:
python3 run_engine.py
- Build and deploy using Docker Compose:
docker-compose up --build -d
iot-data-engine exposes the following endpoints:
/configuration
: Configure the engine with the desired ThingSpeak channel and token./ingest
: Start data ingestion with the provided ThingSpeak channel ID as a query parameter, and the following JSON payload:{ "n_rows": 100, "interval": 50 }
/
:Get information about the developer.
-
Configure Engine
curl -X POST 'http://127.0.0.1:5000/configuration?channel=123456&token=XXXXYHUHHGG'
-
Start Data Ingestion
curl -X POST -d '{"n_rows": 100, "interval": 50}' 'http://127.0.0.1:5000/ingest?channel=2057381'
This project is developed and maintained by @fbzavaleta. For any inquiries or contributions, please contact [benjamin.zavaleta@grieletlabs.com].