Search This Blog

2019-01-23

Scheduling Internet Speed Tests on Synology

SSH into the synology device

Download the following script to whichever directory you like

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py


Allow execute permissions

chmod +x


Create a scheduled task via "Task Scheduler" section in control panel
Run Command should look similar to the following

/bin/python /path_to_script/speedtest.py


For some reason the output doesn't appear in the task scheduler window when the full output is displayed

However, the results are appearing properly in the email notification and when I reduce the amount of output by modifying the script a bit it displays properly as well
python speedtest.py --no-download --simple

You can automatically log the output of any script to a file as well in Task Scheduler.
This can be done by going to the Task Scheduler app, Settings, enabling output recording, and specifying a directory to store output.


References:
https://forum.synology.com/enu/viewtopic.php?t=130824
https://www.reddit.com/r/synology/comments/76wxd8/speedtestcli_on_diskstation/

No comments:

Post a Comment