hubot-bcycle-finder

Get the status of nearby BCycle stations

Usage no npm install needed!

<script type="module">
  import hubotBcycleFinder from 'https://cdn.skypack.dev/hubot-bcycle-finder';
</script>

README

Hubot BCycle Finder

npm version Build Status

Get the status of nearby BCycle stations.

Installation

In your hubot repository, run:

npm install hubot-bcycle-finder --save

Then add hubot-bcycle-finder to your external-scripts.json:

["hubot-bcycle-finder"]

Configuration

Environment Variables Required? Description
BCYCLE_CITY Yes Lowercase, city code for BCycle program
BCYCLE_DEFAULT_STATIONS Yes Comma separated list of stations

NOTE: You can retrieve the station IDs by using hubot bcycle search <query>

Usage

Default stations

Returns the status of the default stations, if any.

user> hubot bcycle
hubot> #2171 - Music Row Roundabout: 16th Ave S (B card only)
hubot> > Active | Bikes: 8 | Docks: 3 | Total: 11
hubot> #2173 - Frist Center: 9th Ave S & Demonbreun St
hubot> > Active | Bikes: 6 | Docks: 5 | Total: 11

List stations

Note: This will likely flood your chat room. Consider using hubot bcycle search instead.

user> hubot bcycle list
hubot> #2162 - The District: Commerce & 2nd Ave N
hubot> #2164 - North Capitol: 4th Ave N & James Robertson Pkwy
hubot> #2165 - Fifth Third Plaza: Church St between 4th & 5th Ave N
hubot> #2166 - Public Square: 3rd Ave N & Union St
hubot> #2168 - Cumberland Park: Victory Way at Base of Pedestrian St Bridge
hubot> #2169 - TPAC: 6th Ave N & Union St
hubot> #2170 - The Gulch: 11th Ave S & 12th Ave S
hubot> #2171 - Music Row Roundabout: 16th Ave S (B card only)
hubot> #2172 - Centennial Park: 27th Ave N
hubot> #2173 - Frist Center: 9th Ave S & Demonbreun St
hubot> #2174 - Fisk/Meharry: Jefferson St & Dr. D.B. Todd Blvd
hubot> #2175 - Hillsboro Village: Wedgewood Ave & 21st Ave S
hubot> #2176 - Rolling Mill Hill: Hermitage Ave & Middleton St
hubot> #2177 - 5 Points East Nashville: S 11th St
[...]

Get status of a station

user> hubot bcycle me 2162
hubot> #2162 - The District: Commerce & 2nd Ave N
hubot> > Active: Bikes: 7 | Docks: 4 | Total: 11

Search station names

user> hubot bcycle search cumberland
hubot> #2168 - Cumberland Park: Victory Way at Base of Pedestrian St Bridge

Get program information

user> hubot bcycle info
hubot> Nashville BCycle | https://nashville.bcycle.com | (615) 625-2153 | emagas@nashvilledowntown.com