├── LICENSE ├── README.md ├── Speedtest.alfredworkflow ├── alfred-speedtest-results.png ├── alfred-speedtest-shortened.gif └── alfred-speedtest-true-length.gif /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Nico Prat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Alfred Workflow - Wifi Speedtest 2 | Test the Upload/Download speed of the wifi you're currently on. 3 | 4 | [![alfred-speedtest-results.png](./alfred-speedtest-results.png)](./alfred-speedtest-results.png) 5 | 6 | ## Installation 7 | 8 | 1. Install `speedtest-cli` on your system using homebrew: `brew install speedtest-cli`. 9 | 2. Download the [workflow](https://github.com/mmroczka/alfred-speedtest/blob/master/Speedtest.alfredworkflow). 10 | 3. Double click the downloaded workflow to install it in Alfred. 11 | 12 | ## Usage 13 | 14 | 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. 15 | 16 | 17 | ### Shortened version (cuts 30 seconds of waiting for speedtest to finish) 18 | speedtest results short 19 | 20 | 21 | ### Speedtest Results 22 | [![alfred-speedtest-results.png](./alfred-speedtest-results.png)](./alfred-speedtest-results.png) 23 | 24 | 25 | ## What's inside? 26 | 27 | One (long) line of code: 28 | 29 | ```bash 30 | /usr/local/Cellar/speedtest-cli/$(ls /usr/local/Cellar/speedtest-cli | grep "." | sort -V -r | head -n 1)/bin/speedtest | grep "Download\|Upload" 31 | |_____________________________| |______________________________________________________________________| |________________________| 32 | | | | 33 | SPEEDTEST-CLI PATH PARSE FOR THE LATEST VERSION OF SPEEDTEST IN HOMEBREW CELLAR AND RETURN IT GRAB RESULTS OF THE UPLOAD/DOWNLOAD 34 | 35 | ``` 36 | 37 | ## New bash command line for M1 Macs 38 | please change the command line in Alfred to the following for M1 macs: 39 | ``` 40 | /opt/homebrew/Cellar/speedtest-cli/$(ls /opt/homebrew/Cellar/speedtest-cli | grep "." | sort -V -r | head -n 1)/bin/speedtest | grep "Download\|Upload" 41 | ``` 42 | 43 | ## Discussion 44 | 45 | On Alfred forum: https://www.alfredforum.com/topic/15046-alfred-wifi-speedtest/?tab=comments#comment-76923 46 | 47 | ## Known issues 48 | 49 | 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. 50 | 51 | -------------------------------------------------------------------------------- /Speedtest.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmroczka/alfred-speedtest/27a92ef420f5fece37ce0f57774a12089c2db727/Speedtest.alfredworkflow -------------------------------------------------------------------------------- /alfred-speedtest-results.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmroczka/alfred-speedtest/27a92ef420f5fece37ce0f57774a12089c2db727/alfred-speedtest-results.png -------------------------------------------------------------------------------- /alfred-speedtest-shortened.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmroczka/alfred-speedtest/27a92ef420f5fece37ce0f57774a12089c2db727/alfred-speedtest-shortened.gif -------------------------------------------------------------------------------- /alfred-speedtest-true-length.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmroczka/alfred-speedtest/27a92ef420f5fece37ce0f57774a12089c2db727/alfred-speedtest-true-length.gif --------------------------------------------------------------------------------