Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

jeffkowalski/permitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Permitter for BART Select-a-Spot

Permitter reserves permits at BART using Select-a-Spot. It requires an active account on Select-a-Spot.

Installation

Note: Ruby is required

# Download the repository.
git clone git://github.com/jeffkowalski/permitter.git

# Get the ruby gem dependencies.
cd permitter
bundle install

Configuration

Create a file named credentials.yml containing your login to Select-a-Spot. Because the contents are in clear-text, it is wise to change permissions on this file to be readable by user only (i.e. 0600 on Unix).

---
:username: 'foo.bar@example.com'
:password: 'secret'

Create a file named date.yml with the first date to reserve. The permitter will automatically re-write this file with the advancing date of the next reservation. You may optionally specify date ranges to skip.

---
:current: 2018-04-03
:skips:
  - :from: 2018-04-09
    :to: 2018-04-13
  - :from: 2018-05-03
    :to: 2018-05-13
...

Usage

# For interactive usage,
ruby ./permitter.rb get --no-log

# Or, for use in scripts or cron jobs,
ruby ./permitter.rb get

About

Reserve parking permits at BART

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages