Confirmed users
1,927
edits
| Line 33: | Line 33: | ||
Unfortunately, I think legal restrictions prevent us from distributing the Microsoft-originated tests themselves. | Unfortunately, I think legal restrictions prevent us from distributing the Microsoft-originated tests themselves. | ||
== Configuration == | == Client Configuration == | ||
First, you need a speedtests.conf file alongside speedtests.py. You will need at least a [speedtests] section specifying server locations. For example: | |||
[speedtests] | |||
server_url = http://192.168.1.10:8888/api/ | |||
test_base_url = http://192.168.1.10:8888/ | |||
server_results_url = http://192.168.1.10:8888/api/testresults/ | |||
In this case, there is a speedtests server running on 192.168.1.10 on port 8888, acting as both a test and a results server. "server_url" refers to the dynamic part of the test server, which is used to get the list of existing tests. "test_base_url" is the root of the html test files (e.g. Kraken, fishtank, etc.). The client sends its results to "server_results_url" after tests finish executing. | |||
The speedtests client looks in the usual spot for the browsers, e.g. /usr/bin/firefox on Linux or $PROGRAMFILES\Mozilla\Mozilla Firefox on Windows. You can override these with a [<platform name>] section containing options in the form <browser> = <path>. For example, to override the location of Firefox on Linux, add this to speedtests.conf: | |||
[linux] | |||
firefox = /opt/firefox/firefox | |||
The main configuration task is unfortunately not easy. All the browsers must have a stored profile that permits its browser to | The main configuration task is unfortunately not easy. All the browsers must have a stored profile that permits its browser to | ||