From dbe379a34db21671a8cff85bd119b6a173dd8a18 Mon Sep 17 00:00:00 2001 From: marudor Date: Fri, 19 Aug 2022 17:21:41 +0200 Subject: use bahn.expert as new domain for marudor.de --- contrib/i3bar-snippet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') 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 15:38+5, dest: Aachen Hbf at 16:07+5", "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"] -- cgit v1.2.3