Post

Speedtest Tracker

Speedtest Tracker

This is a super useful tool to track if you are actually getting what you are paying for when it comes to your internet.

Image

Here’s my current docker compose

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: '3.4'
services:
    speedtest-tracker:
        container_name: speedtest-tracker
        image: lscr.io/linuxserver/speedtest-tracker:v0.19.0-ls18
        ports:
            - 6060:80
            - 6443:443
        environment:
            - PUID=1028 #update with your User id
            - PGID=1028 #update with your Group id
            - TZ=America/Chicago #update to your timezone
            # - APP_KEY=base64:{need to generate this with command below and then uncomment}
            - DB_CONNECTION=sqlite
            - PUBLIC_DASHBOARD=true
            - APP_NAME="Speed Tracker"
        volumes:
            - './config:/config'
            - './config/web:/etc/ssl/web'
        restart: unless-stopped

You need to generate the APP_KEY for the first run and then add to docker-compose

1
docker exec -it speedtest-tracker php artisan key:generate --show

I pinned v0.19.0-ls18 of the image as later versions includes a database that caused too many issues for me. Sqlite is good enough for my use case.

I don’t expose the container publicly so not concerned about security updates for this container.

HomeAssistant Integration

Pulled this into HA via a rest template sensor (add this to your configuration.yaml or similar):

1
2
3
4
5
6
7
8
9
10
#speedtest sensor
rest:
    - resource: https://#your sppeedtest endpoint#/api/speedtest/latest
      sensor:
      - name: speedtest_latest_download
        value_template: ""
        unit_of_measurement: "Mb/s"
      - name: speedtest_latest_upload
        value_template: ""
        unit_of_measurement: "Mb/s"

© The Social Engineer, LLC

Trending Tags