Skip to content

Add more error handling

ave requested to merge ave/FLOW3RonICE:add-better-error-handling into main

Closes #3 (closed)

{'bapInstalled': True, 'trainType': 'ICE', 'serverTime': 1694161123457, 'internet': 'HIGH', 'serviceLevel': 'AVAILABLE_SERVICE', 'wagonClass': 'FIRST', 'gpsStatus': 'VALID', 'tileY': -149, 'series': '412', 'tileX'
: 133, 'longitude': 11.4641, 'speed': 155.0, 'latitude': 48.66442, 'tzn': 'ICE9012', 'connection': True, 'connectivity': {'remainingTimeSeconds': 1200, 'nextState': 'UNSTABLE', 'currentState': 'HIGH'}}
Error while fetching iceportal status: [Errno 113] ECONNABORTED
Connected!
Got token: [redacted]
Logged in!
{'bapInstalled': True, 'trainType': 'ICE', 'serverTime': 1694161141005, 'internet': 'HIGH', 'serviceLevel': 'AVAILABLE_SERVICE', 'wagonClass': 'FIRST', 'gpsStatus': 'VALID', 'tileY': -148, 'series': '412', 'tileX'
: 132, 'longitude': 11.46049, 'speed': 154.0, 'latitude': 48.67048, 'tzn': 'ICE9012', 'connection': True, 'connectivity': {'remainingTimeSeconds': 1200, 'nextState': 'UNSTABLE', 'currentState': 'HIGH'}}
Edited by ave

Merge request reports

Loading