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.
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>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request