Skip to content

Commit

Permalink
logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Polariod committed Aug 23, 2024
1 parent 6f28ad7 commit 0e017f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dashboard/dashboard_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import altair as alt
import datetime as dt
from datetime import timedelta
from PIL import Image
from dotenv import load_dotenv

load_dotenv('.env')
Expand All @@ -16,7 +17,6 @@

CURRENT_TIME = dt.datetime.now()
LAST_24_HOURS = CURRENT_TIME - timedelta(hours=24)
NEXT_24_HOURS = CURRENT_TIME + timedelta(hours=24)


class DataBase:
Expand Down Expand Up @@ -146,7 +146,12 @@ def generation_interconnection(self, gen_df: pd.DataFrame) -> alt.Chart:

def generate_dashboard(self, gen_df: pd.DataFrame, demand_df: pd.DataFrame, carbon_df: pd.DataFrame, pie_df: pd.DataFrame, energy_db: DataBase):
st.set_page_config(layout="wide")
st.title("Energy Monitor")
logo = Image.open("energy_logo.png")
title_col, logo_col = st.columns([1, 3])
with title_col:
st.title("Energy Monitor")
with logo_col:
st.image(logo)
carbon_tab, generation_tab = st.tabs(
["Carbon Impact", "Energy Generation"])

Expand Down
Binary file added dashboard/energy_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e017f7

Please sign in to comment.