ISP SpeedTest Logger
If you're on a LTE, 4G, 5G, ... connection, and want to review how (
- docker + docker-compose installed
- shared drive in docker
- host machine should have internet access
- Create an
./server, that holds your application config. (rename the example)
docker-compose up -dto build and start all docker containers (db, frontend, api). It will also automatically build frontend and backend on the first startup.
Frontend is available on
API can be accessed directly via curl on port 3000 (default). Use POST
localhost:3000/speedtest to start a speedtest and log it to mongodb.
If you're on unix (raspberry pi, ...) you can now schedule a cronjob to automatically hit this endpoint every 12 hours.
Technically, you could also schedule the cronjob on one of the containers, and keep them running forever.
// run speedtest every 12 hours 0 */12 * * * /usr/bin/curl --silent --request POST http://localhost:3000/speedtest &>/dev/null