Jump to content
paulelms

speedtest.net workflow

Recommended Posts

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

 

u1uYY6SMGQ29NU9Od3z2Z46FerDWwV.png

4R7iaDlgDtfgTK6OU7p4w7N5YjXOhw.png

Update log

  • 24.03.2014 – fixed bug with cache
  • 25.03.2014 – changed cache from 5 days to 10 min
Edited by Paul Elms

Share this post


Link to post

Great! Finally a SpeedTest workflow for Alfred 2, thanks!

 

SpeedTest works perfectly, but nothing happens with SpeedTest Servers? No network traffic at all.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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 :P Too little room in the notification for full text :)

Share this post


Link to post

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 :P Too little room in the notification for full text :)

 

Same for me

Share this post


Link to post

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

Share this post


Link to post

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 by Paul Elms

Share this post


Link to post

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 by Davide

Share this post


Link to post

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 ''

Share this post


Link to post

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 ''

Share this post


Link to post

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?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...