#!/bin/bash

station=${@:-Mockritzer Strasse}
lynx -source "http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=${station/ /%20}&vz=5"|awk -vRS='\\],\\[' -vFS='&quot;(,&quot;)*' 'BEGIN {     } { printf ("%3s %4s %s\n", $2, $4, $3); }' | perl -pe 's/(.*)&#(\d*);(.*)/$1.($2 < 128 ? chr($2) : chr(0xc0 | (($2 >> 6) & 0x3f)).chr(0x80 | ($2 & 0x3f))).$3/e'
