Giter VIP home page Giter VIP logo

alfred-speedtest-1's Introduction

Alfred Workflow - Wifi Speedtest

Test the Upload/Download speed of the wifi you're currently on.

alfred-speedtest-results.png

Installation

  1. Install speedtest-cli on your system using homebrew: brew install speedtest-cli.
  2. Download the workflow.
  3. Double click the downloaded workflow to install it in Alfred.

Usage

Using the keyword speedtest in alfred, select the workflow then wait 30 seconds while the speedtest is running (a notification will appear letting you know it's started the test). After 30 seconds, view the notification that pops up with the results of the speedtest.

Shortened version (cuts 30 seconds of waiting for speedtest to finish)

speedtest results short

Speedtest Results

alfred-speedtest-results.png

What's inside?

One (long) line of code:

/usr/local/Cellar/speedtest-cli/$(ls /usr/local/Cellar/speedtest-cli | grep "." | sort -V -r | head -n 1)/bin/speedtest | grep "Download\|Upload"
|_____________________________|  |______________________________________________________________________|               |________________________|
            |                                                      |                                                                 |
    SPEEDTEST-CLI PATH           PARSE FOR THE LATEST VERSION OF SPEEDTEST IN HOMEBREW CELLAR AND RETURN IT          GRAB RESULTS OF THE UPLOAD/DOWNLOAD
    

New bash command line for M1 Macs

please change the command line in Alfred to the following for M1 macs - "/opt/homebrew/Cellar/speedtest-cli/$(ls /opt/homebrew/Cellar/speedtest-cli | grep "." | sort -V -r | head -n 1)/bin/speedtest | grep "Download|Upload"

Discussion

On Alfred forum: https://www.alfredforum.com/topic/15046-alfred-wifi-speedtest/?tab=comments#comment-76923

Known issues

Installing without homebrew will result in you needing to change the path name. Please change the path name in the bash script to wherever the speedtest-cli is installed on your system if you don't want to use Homebrew to install it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.