{"id":26824830,"url":"https://github.com/cybcon/docker.speedtest2mqtt","last_synced_at":"2026-04-11T22:05:30.303Z","repository":{"id":203980051,"uuid":"710826266","full_name":"cybcon/docker.speedtest2mqtt","owner":"cybcon","description":"A small docker image to combine the speedtest-cli together with the mosquitto_pub client.","archived":false,"fork":false,"pushed_at":"2023-12-09T12:36:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-09T13:32:17.810Z","etag":null,"topics":["docker-image","mosquitto-pub","speedtest-cli"],"latest_commit_sha":null,"homepage":"https://www.oberdorf-itc.de/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cybcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.com/donate/?hosted_button_id=BHGJGGUS6RH44"]}},"created_at":"2023-10-27T14:13:50.000Z","updated_at":"2023-12-09T09:21:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a63d8a0-4cc8-4ec0-924f-9b86e3699eab","html_url":"https://github.com/cybcon/docker.speedtest2mqtt","commit_stats":null,"previous_names":["cybcon/docker.speedtest2mqtt"],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybcon%2Fdocker.speedtest2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybcon%2Fdocker.speedtest2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybcon%2Fdocker.speedtest2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybcon%2Fdocker.speedtest2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cybcon","download_url":"https://codeload.github.com/cybcon/docker.speedtest2mqtt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301992,"owners_count":20755514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","mosquitto-pub","speedtest-cli"],"created_at":"2025-03-30T10:17:46.064Z","updated_at":"2025-12-28T20:41:26.595Z","avatar_url":"https://github.com/cybcon.png","language":"Shell","funding_links":["https://www.paypal.com/donate/?hosted_button_id=BHGJGGUS6RH44"],"categories":[],"sub_categories":[],"readme":"# Quick reference\n\nMaintained by: [Michael Oberdorf IT-Consulting](https://www.oberdorf-itc.de/)\n\nSource code: [GitHub](https://github.com/cybcon/docker.speedtest2mqtt)\n\nContainer image: [DockerHub](https://hub.docker.com/r/oitc/speedtest2mqtt)\n\n\u003c!-- SHIELD GROUP --\u003e\n[![][github-action-test-shield]][github-action-test-link]\n[![][github-action-release-shield]][github-action-release-link]\n[![][github-release-shield]][github-release-link]\n[![][github-releasedate-shield]][github-releasedate-link]\n[![][github-stars-shield]][github-stars-link]\n[![][github-forks-shield]][github-forks-link]\n[![][github-issues-shield]][github-issues-link]\n[![][github-license-shield]][github-license-link]\n\n[![][docker-release-shield]][docker-release-link]\n[![][docker-pulls-shield]][docker-pulls-link]\n[![][docker-stars-shield]][docker-stars-link]\n[![][docker-size-shield]][docker-size-link]\n\n\n# Supported tags and respective `Dockerfile` links\n\n* [`latest`, `1.1.4`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.4/Dockerfile)\n* [`1.1.3`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.3/Dockerfile)\n* [`1.1.2`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.2/Dockerfile)\n* [`1.1.1`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.1/Dockerfile)\n* [`1.1.0`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.1.0/Dockerfile)\n* [`1.0.1`](https://github.com/cybcon/docker.speedtest2mqtt/blob/v1.0.1/Dockerfile)\n\n# Summary\n\nThe container image is based on Alpine Linux and combines the [speedtest-cli](https://github.com/sivel/speedtest-cli) and\nthe [mosquitto-client](https://mosquitto.org/) to trigger a simple internet speedtest and publish the json formatted output\nto a MQTT server topic.\n\n# Prerequisites to run the docker container\nYou need an MQTT server to send the data to it.\n\n# Configuration\n## Container configuration\n\nThe container grab the configuration via environment variables.\n\n| Environment variable name | Description | Required | Default value |\n|--|--|--|--|\n| `MQTT_SERVER` | The MQTT server hostname or IP address | **OPTIONAL** | `localhost` |\n| `MQTT_PORT` | The TCP port of the MQTT server | **OPTIONAL** | `1883` |\n| `MQTT_TLS_enabled` | Should SSL communication be enabled (`true`) or not (`false`) | **OPTIONAL** | `false` |\n| `MQTT_CACERT_FILE` | If TLS is enabled, the path to the CA certificate file to validate the MQTT server certificate | **OPTIONAL** | |\n| `MQTT_TLS_no_hostname_validation` | If TLS is enabled, skip the hostname validation of the TLS certificate | **OPTIONAL** | `false` |\n| `MQTT_USER` | The MQTT username for MQTT authentication | **OPTIONAL** | |\n| `MQTT_PASSWORD_FILE` | The filepath where the MQTT password is stored for MQTT authentication | **OPTIONAL** | |\n| `MQTT_TOPIC` | The MQTT topic to send the speedtest results to | **MANDATORY** | |\n| `MQTT_RETAIN`| Set the retain flag when publishing the speedtest result to MQTT topic | **OPTIONAL** | `false` |\n| `FREQUENCE` | Time in seconds between speedtests. If nothing is given, the container stops after 1 speedtest | **OPTIONAL** | |\n\n# Docker compose configuration\n\n```yaml\nversion: '3.8'\n\nservices:\n  speedtest2mqtt:\n    container_name: speedtest2mqtt\n    restart: \"no\"\n    read_only: true\n    user: 2536:2536\n    image: oitc/speedtest2mqtt\n    environment:\n      MQTT_SERVER: test.mosquitto.org\n      MQTT_PORT: 1883\n      MQTT_TOPIC: de/oberdorf-itc/speedtest2mqtt/results\n      FREQUENCE: 300\n    secrets:\n      - speedtest2mqtt_mqtt_password\n    tmpfs:\n      - /tmp\n\nsecrets:\n  speedtest2mqtt_mqtt_password:\n    file: /srv/docker/speedtest2mqtt/secrets/mqtt_password\n```\n\n# Donate\nI would appreciate a small donation to support the further development of my open source projects.\n\n\u003ca href=\"https://www.paypal.com/donate/?hosted_button_id=BHGJGGUS6RH44\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/master/paypal-donate-button.png\" alt=\"Donate with PayPal\" width=\"200px\"\u003e\u003c/a\u003e\n\n\n# License\n\nCopyright (c) 2023-2025 Michael Oberdorf IT-Consulting\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\u003c!-- LINK GROUP --\u003e\n[docker-pulls-link]: https://hub.docker.com/r/oitc/speedtest2mqtt\n[docker-pulls-shield]: https://img.shields.io/docker/pulls/oitc/speedtest2mqtt?color=45cc11\u0026labelColor=black\u0026style=flat-square\n[docker-release-link]: https://hub.docker.com/r/oitc/speedtest2mqtt\n[docker-release-shield]: https://img.shields.io/docker/v/oitc/speedtest2mqtt?color=369eff\u0026label=docker\u0026labelColor=black\u0026logo=docker\u0026logoColor=white\u0026style=flat-square\n[docker-size-link]: https://hub.docker.com/r/oitc/speedtest2mqtt\n[docker-size-shield]: https://img.shields.io/docker/image-size/oitc/speedtest2mqtt?color=369eff\u0026labelColor=black\u0026style=flat-square\n[docker-stars-link]: https://hub.docker.com/r/oitc/speedtest2mqtt\n[docker-stars-shield]: https://img.shields.io/docker/stars/oitc/speedtest2mqtt?color=45cc11\u0026labelColor=black\u0026style=flat-square\n[github-action-release-link]: https://github.com/cybcon/docker.speedtest2mqtt/actions/workflows/release-from-label.yaml\n[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/cybcon/docker.speedtest2mqtt/release-from-label.yaml?label=release\u0026labelColor=black\u0026logo=githubactions\u0026logoColor=white\u0026style=flat-square\n[github-action-test-link]: https://github.com/cybcon/docker.speedtest2mqtt/actions/workflows/container-image-build-validation.yaml\n[github-action-test-shield-original]: https://github.com/cybcon/docker.speedtest2mqtt/actions/workflows/container-image-build-validation.yaml/badge.svg\n[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/cybcon/docker.speedtest2mqtt/container-image-build-validation.yaml?label=tests\u0026labelColor=black\u0026logo=githubactions\u0026logoColor=white\u0026style=flat-square\n[github-forks-link]: https://github.com/cybcon/docker.speedtest2mqtt/network/members\n[github-forks-shield]: https://img.shields.io/github/forks/cybcon/docker.speedtest2mqtt?color=8ae8ff\u0026labelColor=black\u0026style=flat-square\n[github-issues-link]: https://github.com/cybcon/docker.speedtest2mqtt/issues\n[github-issues-shield]: https://img.shields.io/github/issues/cybcon/docker.speedtest2mqtt?color=ff80eb\u0026labelColor=black\u0026style=flat-square\n[github-license-link]: https://github.com/cybcon/docker.speedtest2mqtt/blob/main/LICENSE\n[github-license-shield]: https://img.shields.io/badge/license-MIT-blue?labelColor=black\u0026style=flat-square\n[github-release-link]: https://github.com/cybcon/docker.speedtest2mqtt/releases\n[github-release-shield]: https://img.shields.io/github/v/release/cybcon/docker.speedtest2mqtt?color=369eff\u0026labelColor=black\u0026logo=github\u0026style=flat-square\n[github-releasedate-link]: https://github.com/cybcon/docker.speedtest2mqtt/releases\n[github-releasedate-shield]: https://img.shields.io/github/release-date/cybcon/docker.speedtest2mqtt?labelColor=black\u0026style=flat-square\n[github-stars-link]: https://github.com/cybcon/docker.speedtest2mqtt\n[github-stars-shield]: https://img.shields.io/github/stars/cybcon/docker.speedtest2mqtt?color=ffcb47\u0026labelColor=black\u0026style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybcon%2Fdocker.speedtest2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcybcon%2Fdocker.speedtest2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybcon%2Fdocker.speedtest2mqtt/lists"}