summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormarudor <marudor@marudor.de>2022-08-19 17:21:41 +0200
committerDaniel Friesel <derf@chaosdorf.de>2022-08-19 18:13:13 +0200
commitdbe379a34db21671a8cff85bd119b6a173dd8a18 (patch)
tree98d56b64d15eec23c719aab46602c5305464ebd5 /contrib
parent0e14df21d29053bef4a3a9967edec67b35d10a34 (diff)
use bahn.expert as new domain for marudor.de
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/i3bar-snippet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/i3bar-snippet.py b/contrib/i3bar-snippet.py
index f2ce6a5..c02d63c 100755
--- a/contrib/i3bar-snippet.py
+++ b/contrib/i3bar-snippet.py
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# This script queries the Travelynx API if you are checked into a train. If
-# yes, marudor.de is additionally queried for the next stop, and a JSON object
+# yes, bahn.expert is additionally queried for the next stop, and a JSON object
# like this is written to stdout:
# {"full_text": "RE26824, next: D\u00fcren at <span fgcolor=\"#ff0000\">15:38+5</span>, dest: Aachen Hbf at <span fgcolor=\"#ff0000\">16:07+5</span>", "markup": "pango"},
# The script then exits.
@@ -80,7 +80,7 @@ predicted_arrival_timestamp = j["toStation"]["realTime"]
delay = (predicted_arrival_timestamp - scheduled_arrival_timestamp) / 60
try:
- details_res = requests.get(f"https://marudor.de/api/hafas/v2/details/{train}")
+ details_res = requests.get(f"https://bahn.expert/api/hafas/v2/details/{train}")
details = details_res.json()
# print(json.dumps(details, sort_keys=True, indent=4), file=sys.stderr)
next_stop_name = details["currentStop"]["station"]["title"]