Skip to content

colesturza/iot-device-dashboard

Repository files navigation

iot-device-dashboard

This project utilizes a number of open source technologies to recored and display data collected by IoT devices. The primary tech stack includes Kubernetes, InfluxDB, Telegraf, Eclipse Misquitto, and Grafana (Maybe). The emulate directory is provided to simulate traffic.

How to deploy?

Docker Compose

You will first need to install docker-compose.

Create a file called .env in the root directory of this project. It needs to contain the following environmental variables.

DOCKER_INFLUXDB_INIT_PASSWORD=pass
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=token
MOSQUITTO_USERNAME=user
MOSQUITTO_PASSWORD=pass

Replace the above with the approaprate credentials. Run the folowing command from the root directory of this project.

docker-compose up -d

Kubernetes

TODO

Simulate Data with the emulate Directory

First create and activate your virtualenv - with the venv package on OSX or Linux, this will be:

python3 -m venv venv
source venv/bin/activate

With your virtualenv active, install the project locally:

pip install -r ./emulate/requirements.txt

Second you will need to export the environmental variables, this can be don with:

export $(grep -v '^#' .env | xargs -d '\n')

Finally, run the python script with:

python ./emulate/mqtt_publisher.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published