From 0be473657becf6e28832306a4f94606ed7be10fd Mon Sep 17 00:00:00 2001 From: Tim Dithmer Date: Mon, 28 Oct 2024 21:16:36 +0100 Subject: [PATCH] Refine readme --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c1280fb..7484d7e 100644 --- a/README.md +++ b/README.md @@ -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