Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel bug #12

Merged
merged 3 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions .github/workflows/devel_swissmaps.yml

This file was deleted.

7 changes: 1 addition & 6 deletions pages/dash_swiss_ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
else:
print("EV Stations file not found.")

print("Loading Live EV Stations data...")
if os.path.exists("static/live_ev_df.json"):
live_ev_df = pd.read_json("static/live_ev_df.json", lines=True)
else:
print("Live EV Stations file not found.")

DDOWN_OPTIONS = ["All", "Available", "Occupied", "OutOfService", "Unknown"]

Expand Down Expand Up @@ -124,7 +119,7 @@ def update_graph(selected_layer=None):
print("Loading live EV station data...")
if os.path.exists("static/live_ev_df.json") and time.time() < os.path.getctime("static/live_ev_df.json") + 60*1*1:
print("Using cached live EV data from file (not older than 1 min) ...")
live_df = pd.DataFrame(live_ev_df)
live_df = pd.read_json("static/live_ev_df.json", lines=True)
else:
print("Loading FRESH live EV data...")
live_df = get_live_ev_station_data()
Expand Down
Loading
Loading