speedtest plugin for OPNsense
sudo pkg add https://github.com/mihakralj/opnsense-speedtest/raw/main/work/pkg/os-speedtest-devel-0.8_1.txz
sudo pkg delete os-speedtest-devel
- removed automatic invocation of install_speedtest.sh from GUI
- removed the bug on widget control
- fixed the display of stats when there are zero records in the csv
- no dependency at install time; plugin detects if speedtest is missing and allows installation
- complete rewrite of Python wrapper (opn_speedtest.py) that now accepts tons or parameters: -> no paramter == default speedtest test -> numeric parameter == server id for specific speedtest test -> t or list == list of the nearest 10 speedtest servers -> l or log == show the most recent 50 results from CSV file -> s or stat == display statistics of all tests in CSV file
- added the install_speedtest.sh with three paramters: -> bin == install Oookla binary -> cli == install Python speedtest-cli -> delete == uninstall it all
- we are back with embedded binary copy of speedtest...
- removed local binary copy of speedtest - needs to be installed separately
- cleanup, copyright notices, getting ready for a pull request to main OPNsense/plugins repo
- better exception-handling logic
- widget for the dashboard
- moved the speedtest menu entry into the Reporting menu structure
- added log output at the bottom - with the export and delete actions
- cron job accepts the speedtest serverid as an argument to lock down the target for cron jobs
- enabled cron task - you can add it at System-Settings-Cron and add a new command
Run Speedtest
- added the api call to execute the statistical test:
/api/speedtest/service/run
- added the api call to get json with statistics:
/api/speedtest/service/stat
- added the output to .csv file - all tests for statistics are inserted into
/usr/local/opnsense/scripts/OPNsense/speedtest/speedtest.csv
- deleting
speedtest.csv
will zero-out statistics
Core diagnostics (socket test and http test)