Skip to content

Instantly share code, notes, and snippets.

@byteme206
byteme206 / oba.rb
Last active November 19, 2015 00:30 — forked from mapledyne/oba.rb
Local bus info widget in Dashing
require 'rubygems'
require 'nokogiri'
require 'open-uri'
## Forked from https://gist.github.com/mapledyne/4d3e417f2fef2d1ab83d#file-oba-rb
#
# To use, add an instance of the Meter widget to your dashboard for each route using the naming convention
# 'oba_<ROUTE>'. The <ROUTE> should match the display values for the routes you add to the rides hash below.
# Set walktime to the average walking time to the closest station(s) for the given routes