Skip to content

Commit

Permalink
Fix typos and output speedtest result to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
cybcon committed Oct 28, 2023
1 parent 3401d1b commit be9e750
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.18.4

LABEL maintainer="Michael Oberdorf IT-Consulting <info@oberdorf-itc.de>"
LABEL site.local.program.version="1.0.1"
LABEL site.local.program.version="1.1.0"

ENV MQTT_SERVER=localhost \
MQTT_PORT=1883 \
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Source code: [GitHub](https://github.com/cybcon/docker.speedtest2mqtt)

# Supported tags and respective `Dockerfile` links

* [`latest`, `1.0.1`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.0.1/Dockerfile)
* [`latest`, `1.1.0`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.0/Dockerfile)
* [`1.0.1`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.0.1/Dockerfile)

# Summary

Expand Down Expand Up @@ -52,7 +53,7 @@ services:
MQTT_PORT: 1883
MQTT_TOPIC: de/oberdorf-itc/speedtest2mqtt/results
FREQUENCE: 300
secrets:
secrets:
- speedtest2mqtt_mqtt_password
tmpfs:
- /tmp
Expand Down
6 changes: 4 additions & 2 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#-----------------------------------------------------------------------------
# Global configuration
#-----------------------------------------------------------------------------
VERSION="1.0.1"
VERSION="1.1.0"
ERROR_SLEEP_SECONDS=60
CACERT_SYSTEM_PATH='/usr/share/ca-certificates'

Expand Down Expand Up @@ -233,7 +233,9 @@ do
echo "Trigger Speedtest"
result=$(do_speedtest)
if [ ! -z "${result}" ]; then
echo "Publish speedtest rresult via MQTT"
echo "Speedtest result is:"
echo "${result}"
echo "Publish speedtest result via MQTT"
publish_result "${result}"
else
echo "WARNING: Speedtest without correct json output. Sleep ${ERROR_SLEEP_SECONDS} and try again"
Expand Down

0 comments on commit be9e750

Please sign in to comment.