Havag Info is a Dashing widget which displays information on trams and buses in Halle (Saale) / Germany operated by Havag.
Add the following gem to the Gemfile:
gem 'httpclient'
and run bundle install.
Clone repo (or download RAW from project page):
git clone https://github.com/Terminal21/ruby_on_havag.git
Copy to lib directory
cp ruby_on_havag/havag.rb PATH_TO_DASHBOARD/lib
Be careful, lib/havag.rb and job/havag.rb (see below) are different files! Do not mix them!
Copy havag.rb to the '/jobs' directory. Create a folder called havag under /widgets. Copy havag.coffee, havag.html and havag.scss into /widgets/havag. Copy havag.png into /assets/images/.
Add the following code snippet to your dashboard .erb file:
<li data-row="1" data-col="1" data-sizex="2" data-sizey="2">
<div data-id="havag" data-view="Havag" data-title="Havag" style="background-color:#12B0C5;"> ></div>
</li>
Specify the tram station you want to display in the widget by setting the 'station' variable in job/havag.rb
You can figure out what stations are available by executing the library as a ruby program ruby lib/havag.rb


Hello!
Is it possible to adapt this for the VBN (Verkehrsverbund Bremen/Niedersachsen)? If yes, how ?
Thanks 👍