Display realtime SL departures in Emacs!
Set the currently selected station to using the sl-select-station
function. The station is set to a stations name from the
sl-stations
variable.
To use this package the minimal configuration needed is an API key for the ‘SL Realtidsinformation 4’ API, which you can get from trafiklab.
Setting it can be done with something like:
(setq sl-api-keys
'(("SL Realtidsinformation 4" . "0123456789abcdefedcba98765432101"))
Keep in mind that your API keys should not be shared publicly, you should keep them secret.
To repopulate the station list with station id codes you also need an API key for the ‘SL Hållplatser och Linjer 2’ API. This should not be needed that often though.
To view realtime SL departures:
M-x sl
supported key commands:
key | function |
---|---|
g | Update screen |
s | Set station to show |
t | Set how often the interface should update |
w | Set the time window for shown departures |
q | Close sl-mode |
This mode is (loosely) based on bart-mode.