Hello everyone I want to make an interactive dashboard using streamlit and run it on the screen in the meeting room. There will be graphs, tables on the dashboard, and I would like them to change at a certain interval (once a minute, for example). How can this be done?
In general, I see the implementation as follows - connect a raspberry pi 3 (or 4) to a TV, when power is applied to which a page with the address of the streamlit application opens, and pages with graphs/tables/other things change there all day long like slides. Will the raspberry pi’s performance be enough?
Thank you all!
One option is to have a while loop that never ends, then sleep for a minute at the end.
Like this:
from time import sleep
while True:
# draw your graphs
sleep(60)
If you find that the graphs are being repeated, you could use st.empty to create placeholder containers for them. st.empty - Streamlit Docs
Not sure about the raspberry pi performance. It depends a lot on what exactly your app is doing, and how much processing is required to generate the graphs. But, my instinct is that it would be fine.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.