contains an ultra simple api for receiving and publishing csv-data
it is not build for security purposes (e.g. keys in code), be careful...
- edit the index.php and change the keys
- push it to your webspace (e.g. https://myownsite.de)
- download the latest(!) Version of speedtest-cli
git clone https://github.com/sivel/speedtest-cli.git
- install curl
sudo apt install curl
- edit crontab
crontab -e
paste at the end but look for changes
*/5 * * * * /usr/bin/curl --silent -d "api=secretAPIkey&testobject=myTestInstance&record=$(/usr/bin/python3 /home/username/speedtest-cli/speedtest.py --csv)" -H "Content-Type: application/x-www-form-urlencoded" -X POST https://myownsite.de/