New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Showing the dashboard on the Pi screen in the lab corridor without logging in

Showing the dashboard on the Pi screen in the lab corridor without logging in

Solved 4 3

Translated from Türkçe by AI ·

Hello, there is a Pi 4 and a 7-inch touchscreen in the lab, hung in the corridor. Goal: to continuously show the temperature dashboard of the lab cabinets.My first attempt was a bit amateurish, I admit. In Python, I tried to take a screenshot of the dashboard as a PNG every minute and show it in a Tkinter window. I open the image with PIL, but the window flickers on every update, sometimes the old image stays, and to take the screenshot I have to keep a session open somewhere. Then I gave up and opened Chromium with –kiosk on the dashboard, and that was better.But now, a few days later, when I come in in the morning I see the login page on the screen, the session has expired. For a screen that nobody logs into, what is the right way? Should I go back to the PNG approach?

♥ 0

Translated from Türkçe by AI ·

Can’t you just keep the session open in Chromium? Isn’t there something like “remember me”? That’s what we do in the office.

Kayıtta yoksa olmamıştır.
♥ 0

Translated from Türkçe by AI ·

The session was already left open, yet it still drops every few days. Also, I don’t really like it staying open with my lab account; if someone in the corridor touches it, they could see everything.

♥ 0

Translated from Türkçe by AI ·

Don’t fall back to PNG. For this there is a display link, which we use on the screens in the plant control room.The dashboard must be shared. Open the shared dashboard, from the dashboard menu select Display links…, give the screen a name (Lab corridor), choose its duration (from 1 day up to 365 days), Create link. The link is shown only once, copy it right away. A screen opened with this link doesn’t ask for a login and works with the authority of the person who created the link, no more than that. No controls work from the screen; even if there are buttons, they are inactive, so someone in the corridor can’t change anything.In the Pi’s autostart, add this:

chromium-browser --kiosk --noerrdialogs --disable-infobars 
"https://<host>/...#<bağlantının gizli kısmı>"

In the dashboard settings, turn on Fill the screen height and set Refresh every to a value such as 30 seconds. Two notes: 3D views are not shown on display links, so if the dashboard has a 3D card, it stays empty on the screen. Make a separate link for each screen, so that cancelling one doesn’t affect the others.Duvar ekranları, tam ekran ve yakınlaştırma

Accepted solution♥ 1

Translated from Türkçe by AI ·

It works, thanks sir. I ran into one thing: the hidden part of the link after the # disappears from the address bar once the page opens. When I copied what was in the address bar and put it into autostart, the page did not open after the Pi restarted. Once I wrote the full link I had copied into the script, it was fixed. The screen has been on for a week, with no login page.

♥ 0
Viewing 5 posts – 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Join the conversation

Sign in to ask and answer, like helpful posts and mark the reply that solved your problem. Every contribution earns points and levels.

Share