A live bird collage card for your Home Assistant dashboard.
Read lat/lon from config
cdkla5e88f9c7767
diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.pyindex 6153d4e1..c12af965 100755--- a/scripts/plotly_streamlit.py+++ b/scripts/plotly_streamlit.py@@ -12,6 +12,7 @@ from sqlite3 import Connectionimport plotly.express as pxfrom sklearn.preprocessing import normalizefrom suntime import Sun+from utils.helpers import get_settingsprofile = Falseif profile:@@ -181,8 +182,9 @@ font_size = 15def sunrise_sunset_scatter(date_range):- latitude = df2['Lat'][0]- longitude = df2['Lon'][0]+ conf = get_settings()+ latitude = conf.getfloat('LATITUDE')+ longitude = conf.getfloat('LONGITUDE')sun = Sun(latitude, longitude)