vaccine-spotter — a CLI for vaccinespotter.org
notifications! filtering! yay!
Update: now on RubyGems! and Homebrew!
This is my first gem and Homebrew formula ever(!), so please bear with me as I figure out how everything works.
Installation
Prerequisites
-
Ruby
- Homebrew will use the macOS system Ruby; otherwise, Ruby installed with a version manager like
asdf
orrbenv
is probably a good idea. - On Windows, try RubyInstaller (I've never used it though…)
- Homebrew will use the macOS system Ruby; otherwise, Ruby installed with a version manager like
Actually installing
If you know what you're doing:
Install with Homebrew (probably easiest):
brew install jltml/tap/vaccine-spotter
Install with RubyGems:
gem install vaccine-spotter
For those of you who've never done anything like this before:
I'm assuming you're using a Mac, since I know Very Little about Windows.
- Open the application called "Terminal"
- Copy the following and paste it in Terminal:
xcode-select --install
- Hit enter and follow anything other instructions that pop up. This will install some utilities & things.
- After that's all done, go back to Terminal. Copy and paste the following line and then hit enter, just like before:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- This installs Homebrew, a package manager, which you'll in turn use to install vaccine-spotter. When it asks you about changing permissions and creating files and stuff, just hit enter to say yes. You can test that Homebrew is installed by running
brew --version
. You should get something likeHomebrew 3.1.3-91-gfb7d19c
(which is what I have right now).
- After you've installed Homebrew, (finally!) copy and paste this to install vaccine-spotter:
brew install jltml/tap/vaccine-spotter
- You should be all good! Congrats. You can run
vaccine-spotter
in Terminal (just type that and hit enter) and it will guide you through setting it up!
Usage
vaccine-spotter
The first time you run vaccine-spotter
, it will guide you through creating a configuration file at ~/.config/vaccine-spotter.toml.
That's it! Run vaccine-spotter help
to see all commands.
Notes & Caveats:
- I have pretty much no idea how Windows works, so this might not work on it, and notifications definitely don't work for Windows as of now. Sorry about that.
- I'm using the
feep
gem for sounds (if activated in the config). On Windows, this (apparently) requiressounder
, a command-line WAV file player. I haven't tested it or anything, though — see the gem's README for more.
- I'm using the
Development
If anyone actually uses this, PRs are more than welcome!
-
cd
to a folder where you'd like to download this - Clone this repo with
git clone https://github.com/jltml/vaccine-spotter-cli.git
- Do
cd vaccine-spotter-cli
to go to the project's folder - Run
bundle install
to install dependencies