Skip to content

A live bird collage card for your Home Assistant dashboard.

better spacing for species label

mcguirepr895a78faa231f7
diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py
index 1d6b8f08..e34e1f7a 100755
--- a/scripts/plotly_streamlit.py
+++ b/scripts/plotly_streamlit.py
@@ -13,7 +13,7 @@ URI_SQLITE_DB = "/home/pi/BirdNET-Pi/scripts/birds.db"
st.set_page_config(layout='wide')
[email protected](hash_funcs={Connection: id})
[email protected](ttl=60,hash_funcs={Connection: id})
def get_connection(path: str):
"""Put the connection in cache to reuse if path does not change between Streamlit reruns.
NB : https://stackoverflow.com/questions/48218065/programmingerror-sqlite-objects-created-in-a-thread-can-only-be-used-in-that-sa
@@ -135,7 +135,7 @@ fig.update_layout(
),
)
-fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=20)
+fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=15)
x=df_counts.index
y=df_counts['Com_Name']