paulelms Posted March 24, 2014 Share Posted March 24, 2014 (edited) Measure internet speed with speedtest.net service Usage: speedserv 10 – show 10 nearest servers, press enter to test speed speedtest – test speed with nearest server speedtest 232 – test speed with server id 232 Results displayed in notification. Server list is cached and periodically updated automatically. Speedtest-cli included. Download on packal direct link Update log 24.03.2014 – fixed bug with cache 25.03.2014 – changed cache from 5 days to 10 min Edited March 25, 2014 by Paul Elms ivofrolov, Jono and DJay 3 Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 Great! Finally a SpeedTest workflow for Alfred 2, thanks! SpeedTest works perfectly, but nothing happens with SpeedTest Servers? No network traffic at all. Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 Great! Finally a SpeedTest workflow for Alfred 2, thanks! SpeedTest works perfectly, but nothing happens with SpeedTest Servers? No network traffic at all. Currently it works. Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 Update: changed cache lifetime from 5 days to 10 min Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 Still the same issue. If I type speedserv 0, nothing happens, if I type speedserv 10, Alfred jumps after 2 seconds to the fallback search. Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 Please, try to debug workflow: http://take.ms/6WxKG Then try to use workflow as usual and post here errors from this window: http://take.ms/GNS2J Sorry for my bad english. Link to comment
Don Dahl Posted March 25, 2014 Share Posted March 25, 2014 Nice workflow. Could you perhaps edit the notification to DL: xxx UL: xxx instead of Download: xxx Upload: xxx since I can only see the result of download cos of my kickass connection Too little room in the notification for full text Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 Please, try to debug workflow: http://take.ms/6WxKG Then try to use workflow as usual and post here errors from this window: http://take.ms/GNS2J Sorry for my bad english. Waited some minutes, nothing happens... Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 Nice workflow. Could you perhaps edit the notification to DL: xxx UL: xxx instead of Download: xxx Upload: xxx since I can only see the result of download of my connection Too little room in the notification for full text Same for me Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 Great advice, thx. Fixed. Before that, I used notification center for full text =) Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 (edited) Waited some minutes, nothing happens... Can you execute this in Terminal app: curl -o speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli ./speedtest-cli --list … and show me output. After all you can remove this script with rm ./speedtest-cli Thx. Edited March 25, 2014 by Paul Elms Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 Can you execute this in Terminal app: … and show me output. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 20043 100 20043 0 0 15060 0 0:00:01 0:00:01 --:--:-- 15058 Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 After all you can remove this script with rm ./speedtest-cli Thx. After entering this I got the full list in Terminal... Link to comment
paulelms Posted March 25, 2014 Author Share Posted March 25, 2014 (edited) Sorry, I don’t know how to diagnose this. Looks like speedtest-cli command line app is working for you. I don’t know why it breaks in your alfred. Edited March 25, 2014 by Paul Elms Link to comment
Davide Posted March 25, 2014 Share Posted March 25, 2014 (edited) Well, it looks like in Terminal everything is working but not in Alfred. Tried in on two machines, both OS 10.9.2. Doesn't matter, I deleted speedserv in the workflow. Speedtest works fine. Edited March 25, 2014 by Davide Link to comment
shadylane Posted March 29, 2014 Share Posted March 29, 2014 Love the workflow, thank you! Link to comment
Driverseat Posted September 6, 2015 Share Posted September 6, 2015 Basically a great workflow. the issue i got is that the result notification is empty (showing no result). can anyone help me please? Many thanks.... The debug information in alfred is as follows: [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg '' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.output.notification' with arg '' [ERROR: alfred.workflow.action.script] Traceback (most recent call last): File "speedtest-cli.py", line 548, in <module> main() File "speedtest-cli.py", line 543, in main speedtest() File "speedtest-cli.py", line 419, in speedtest servers = closestServers(config['client']) File "speedtest-cli.py", line 284, in closestServers uh = urlopen('http://www.speedtest.net/speedtest-servers.php') File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) [iNFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.notification' with arg '' ErfahrungenCOM 1 Link to comment
fpragana Posted September 13, 2015 Share Posted September 13, 2015 Try update our speedtest_cli.py with this https://github.com/sivel/speedtest-cli/blob/no-https/speedtest_cli.py.. Works with me... Basically a great workflow. the issue i got is that the result notification is empty (showing no result). can anyone help me please? Many thanks.... The debug information in alfred is as follows: [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg '' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.output.notification' with arg '' [ERROR: alfred.workflow.action.script] Traceback (most recent call last): File "speedtest-cli.py", line 548, in <module> main() File "speedtest-cli.py", line 543, in main speedtest() File "speedtest-cli.py", line 419, in speedtest servers = closestServers(config['client']) File "speedtest-cli.py", line 284, in closestServers uh = urlopen('http://www.speedtest.net/speedtest-servers.php') File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error result = self._call_chain(*args) [iNFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.notification' with arg '' Link to comment
homever Posted September 24, 2015 Share Posted September 24, 2015 (edited) Try update our speedtest_cli.py with this https://github.com/sivel/speedtest-cli/blob/no-https/speedtest_cli.py.. Works with me... Thank you To whom it may concern: Replace the speedtest-cli.py file with this one, and don't forget rename the downloaded file to the original name, a `-` instead of `_`. Edited September 24, 2015 by homever Link to comment
homever Posted November 18, 2015 Share Posted November 18, 2015 it's not working again...empty output even with the latest speedtest_cli.py Link to comment
chusiang Posted May 23, 2016 Share Posted May 23, 2016 (edited) I create a SpeedTest workflow with speedtest-cli, maybe some one like it. > [Download] > [source Code] Running Notification Edited May 23, 2016 by chusiang paulw and JJJJ 2 Link to comment
ssent1 Posted August 26, 2016 Share Posted August 26, 2016 I'm on Alfred 2.8.6. I'm getting an "Incompatible Workflow" message. Is the SpeedTest workflow no longer compatible with Alfred 2.x? Link to comment
paulelms Posted March 9, 2017 Author Share Posted March 9, 2017 Hello. I checked the workflow on Sierra and Alfred3, and it works. ¯\_(ツ)_/¯ Link to comment
paulelms Posted March 9, 2017 Author Share Posted March 9, 2017 On 26.08.2016 at 6:19 PM, ssent1 said: I'm on Alfred 2.8.6. I'm getting an "Incompatible Workflow" message. Is the SpeedTest workflow no longer compatible with Alfred 2.x? This workflow should work with Alfred2: http://www.packal.org/workflow/speedtest Link to comment
Claudio Posted July 8, 2017 Share Posted July 8, 2017 Hi! Is there a way to change the unit from Mbps to Kylobyte per second? thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now