-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3da3bb7
commit fc25267
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
""" | ||
India Analysis dashboard for OCF | ||
""" | ||
|
||
import os | ||
|
||
import streamlit as st | ||
|
||
from auth import check_password | ||
from nwp_page import nwp_page | ||
from pvsite_forecast import pvsite_forecast_page | ||
from sites_toolbox import sites_toolbox_page | ||
from status import status_page | ||
|
||
st.get_option("theme.primaryColor") | ||
st.set_page_config(layout="centered", page_title="OCF Dashboard") | ||
|
||
show_pvnet_gsp_sum = os.getenv("SHOW_PVNET_GSP_SUM", "False").lower() == "true" | ||
|
||
if check_password(): | ||
|
||
page_names_to_funcs = { | ||
"Status": status_page, | ||
"Location Forecast": pvsite_forecast_page, | ||
"Sites Toolbox": sites_toolbox_page, | ||
"NWP": nwp_page, | ||
} | ||
|
||
demo_name = st.sidebar.selectbox("Choose a page", page_names_to_funcs.keys(), 1) | ||
page_names_to_funcs[demo_name]() |