Skip to content

Instantly share code, notes, and snippets.

View matt-manuel's full-sized avatar

Matt Manuel matt-manuel

View GitHub Profile
@matt-manuel
matt-manuel / speedtest.sh
Created August 27, 2021 22:41 — forked from linosteenkamp/speedtest.sh
Execute speedtest-cli and store result in sqlite database
#!/bin/bash
# Path to speedtest-cli (Change this to match the path to your speedtest-cli executable)
SPEEDTEST_CLI_PATH="/usr/local/bin/speedtest-cli"
# Path to the sqlite database (Change this to suit your needs)
#DB_PATH="/home/lino/speedlog.db"
DB_PATH="/var/www/speedtest-api/speedtest.db"
# Create test table SQL statement