forked from kunsi/dotfiles
Compare commits
No commits in common. "a4d873becd78cab8f47bcab6d98718f2c7400486" and "922dfa6ea315c0f71d8071776418395cee482ce0" have entirely different histories.
a4d873becd
...
922dfa6ea3
1 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ try:
|
||||||
|
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
|
|
||||||
trip_info_req = get('https://iceportal.de/api1/rs/tripInfo/trip')
|
trip_info_req = get('https://portal.imice.de/api1/rs/tripInfo/trip')
|
||||||
trip_info_req.raise_for_status()
|
trip_info_req.raise_for_status()
|
||||||
trip_info = trip_info_req.json()['trip']
|
trip_info = trip_info_req.json()['trip']
|
||||||
|
|
||||||
ice_status_req = get('https://iceportal.de/api1/rs/status')
|
ice_status_req = get('https://portal.imice.de/api1/rs/status')
|
||||||
ice_status_req.raise_for_status()
|
ice_status_req.raise_for_status()
|
||||||
ice_status = ice_status_req.json()
|
ice_status = ice_status_req.json()
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ try:
|
||||||
ice_status['speed'],
|
ice_status['speed'],
|
||||||
next_stop,
|
next_stop,
|
||||||
ice_status['connectivity']['currentState'],
|
ice_status['connectivity']['currentState'],
|
||||||
format_time(int(ice_status['connectivity']['remainingTimeSeconds'])),
|
format_time(ice_status['connectivity']['remainingTimeSeconds']),
|
||||||
ice_status['connectivity']['nextState'],
|
ice_status['connectivity']['nextState'],
|
||||||
))
|
))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue