Refine readme

main
Tim Dithmer 2024-10-28 21:16:36 +01:00
parent 2267944907
commit 0be473657b
1 changed files with 8 additions and 7 deletions

View File

@ -6,19 +6,20 @@ e.g. [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000]
# Environment variables
MQTT_HOST: The host of the MQTT broker
MQTT_PORT: (Optional) The port of the MQTT broker
MQTT_TOPIC: The topic to publish to
MQTT_USERNAME: (Optional) The user for the MQTT broker
MQTT_PASSWORD: (Optional) The password for the MQTT broker
- MQTT_HOST: The host of the MQTT broker
- MQTT_PORT: (Optional) The port of the MQTT broker
- MQTT_TOPIC: The topic to publish to
- MQTT_USERNAME: (Optional) The user for the MQTT broker
- MQTT_PASSWORD: (Optional) The password for the MQTT broker
# Build
# Docker
## Build
```
docker build -t huette-energy-consumption-weekperday .
```
# Run
## Run
```
docker run -d -e MQTT_HOST=10.2.3.2 -e MQTT_TOPIC=c3re/huette/energy/consumption/week_per_day -t huette-energy-consumption-weekperday