keep popup when bus moves

This commit is contained in:
steven 2025-03-25 17:18:11 -04:00
parent e4bd7da77f
commit 8c2a4ee19b
2 changed files with 12 additions and 10 deletions

2
app.py
View file

@ -22,7 +22,7 @@ def favicon():
@cache.cached(timeout=5)
def tarc():
d=requests.get("https://tarc.rideralerts.com/InfoPoint/rest/Vehicles/GetAllVehiclesForRoutes?routeIDs="+routes).json()
return "\n".join(f"{v['Latitude']},{v['Longitude']},{v['RouteId']},{v['Name']},{v['OnBoard']},{v['DirectionLong']},{v['Speed']}" for v in d)
return "\n".join(f"{v['Latitude']},{v['Longitude']},{v['RouteId']},{v['Name']},{v['OnBoard']},{v['DirectionLong']},{v['Speed']},{v['LastUpdated'][6:16]}" for v in d)
if __name__ == '__main__':
app.run()