This repoistory will allow you to spin up differnt MQTT simulators producing fake IoT data for differnt scenerios.
Each generator will write to its own MQTT topic the following values:
- Load
- Voltage
- Fuel Level
- Temperature
The payload will look like this:
{"generatorID": "generator1", "lat": 40.68066, "lon": -73.47429, "temperature": 186, "power": 186, "load": 2, "fuel": 277}
- Clone this repo to your system
git clone https://github.com/Jayclifford345/mqtt-emergency-generator.git
-
Edit the .env file with your InfluxDB v3 credentials.
-
Build the simulator docker image:
docker build emergency_generator/. -t emergency-generator:latest
- Deploy the docker-compose file:
docker-compose up -d