|
|
|
|
|
import streamlit as st |
|
from salesforce_integration import fetch_poles |
|
import plotly.express as px |
|
from modules.visuals import display_dashboard, display_charts |
|
|
|
|
|
|
|
st.title("π‘ VIEP Smart Poles Dashboard (Salesforce Data)") |
|
|
|
|
|
df = fetch_poles() |
|
|
|
|
|
st.subheader("π Pole Table") |
|
st.dataframe(df) |
|
|
|
|
|
st.subheader("β Energy Generation (Solar vs Wind)") |
|
st.plotly_chart(px.bar(df, x="Name", y=["Solar_Generation__c", "Wind_Generation__c"], barmode="group")) |
|
|
|
st.subheader("π₯ Camera Status") |
|
st.plotly_chart(px.pie(df, names="Camera_Status__c", hole=0.4)) |
|
display_dashboard(df) |
|
display_charts(df) |