Skip to content

Commit

Permalink
add india page
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Mar 11, 2024
1 parent 3da3bb7 commit fc25267
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/main_india.py
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]()

0 comments on commit fc25267

Please sign in to comment.