don-philipe / dresden-departure-monitor

getting departures for stops in Dresden
2 stars 0 forks source link

Fails with "sed: -e expression #1, char 1: unknown command: `,'". #1

Open dreirund opened 3 years ago

dreirund commented 3 years ago

This does fail (for me) with a sed syntax error:

./ddm Albertplatz:

Download departuretimes...
Process information...
sed: -e expression #1, char 1: unknown command: `,'
sed: -e expression #1, char 1: unknown command: `,'
sed: -e expression #1, char 1: unknown command: `,'
sed: -e expression #1, char 1: unknown command: `,'

Departuremonitor for , Dresden, 01.09.2021, 16:58:
==================================================

Time    Route   Vehicle     Direction       Remaining time
don-philipe commented 3 years ago

Haven't used that script for quite some years now and almost forgot about it :upside_down_face:

The URLs I have in this script are invalid as it seems. I will need a little bit of time to find out how to parse the current webpage.

dreirund commented 3 years ago

Ah OK.

Meanwhile I did write a small script, which is pretty simple, since the VVO webserver seems to do the "guessing which station is meant" by itself:

Maybe that can give you a help.