Skip to content

A simple dashboard showing the status for selected CitibikeNYC stations

Notifications You must be signed in to change notification settings

ryanj/citibikenyc_dashboard

 
 

Repository files navigation

CitibikeNYC Dashboard

A simple dashboard that display the status for selected CitibikeNYC stations. Check out the live demo for the stations near to StreetEasy.

Developed using Dashing and Citibikenyc ruby gem.

How to define the stations to display

The code expects an environment variable called CITIBIKE_NEARBY_STATIONS to contain a list of station IDs.

In your local sandbox you can use Foreman and define the environment variable in the .env file (you can check the .env.sample file supplied in the repository):

CITIBIKE_NEARBY_STATIONS="268,257,2010"

And then start the server with:

$ foreman start

When hosting on OpenShift, you can set your list of station ids by including the additional evironment variables as part of your app creation step:

rhc app create citibikes ruby-1.9 --env CITIBIKE_NEARBY_STATIONS="268,257,2010" --from-code=https://github.com/edgar/citibikenyc_dashboard.git

Or, update an existing OpenShift-hosted application clone with new list of station ids:

rhc env set CITIBIKE_NEARBY_STATIONS="268,257,2010" -a citibikes
rhc app restart # to load the new station list

For applications hosted on Heroku, your nearby station ids can be configured like this:

$ heroku config:add CITIBIKE_NEARBY_STATIONS="268,257,2010" -a <my heroku app>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A simple dashboard showing the status for selected CitibikeNYC stations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.3%
  • CSS 11.6%
  • CoffeeScript 4.3%
  • Ruby 0.8%