jltml / vaccine-spotter-cli

Get notified of COVID vaccine appointments from the command line. Install with Homebrew or RubyGems (still very much in beta).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vaccine-spotter — a CLI for vaccinespotter.org

notifications! filtering! yay!

Gem GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub

GIF preview of vaccine-spotter command-line interface

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 or rbenv is probably a good idea.
    • On Windows, try RubyInstaller (I've never used it though…)

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.

  1. Open the application called "Terminal"
  2. Copy the following and paste it in Terminal:
xcode-select --install
  1. Hit enter and follow anything other instructions that pop up. This will install some utilities & things.
  2. 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 like Homebrew 3.1.3-91-gfb7d19c (which is what I have right now).
  1. After you've installed Homebrew, (finally!) copy and paste this to install vaccine-spotter:
brew install jltml/tap/vaccine-spotter
  1. 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) requires sounder, a command-line WAV file player. I haven't tested it or anything, though — see the gem's README for more.

Development

If anyone actually uses this, PRs are more than welcome!

  1. cd to a folder where you'd like to download this
  2. Clone this repo with git clone https://github.com/jltml/vaccine-spotter-cli.git
  3. Do cd vaccine-spotter-cli to go to the project's folder
  4. Run bundle install to install dependencies

About

Get notified of COVID vaccine appointments from the command line. Install with Homebrew or RubyGems (still very much in beta).

License:MIT License


Languages

Language:Ruby 100.0%