Showing the dashboard on the Pi screen in the lab corridor without logging in
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?
Merhaba, laboratuvarda bir Pi 4 ve 7 inçlik dokunmatik ekran var, koridorda asılı. Amaç: laboratuvardaki dolapların sıcaklık panosunu sürekli göstermek.
İlk denemem biraz amatörce oldu, itiraf edeyim. Python’da her dakika panonun ekran görüntüsünü PNG olarak alıp Tkinter penceresinde göstermeye çalıştım. PIL ile resmi açıyorum, ama pencere her güncellemede titriyor, bazen eski resim kalıyor, ekran görüntüsünü almak için de bir yerde oturum açık kalmak zorunda. Sonra vazgeçip Chromium’u –kiosk ile panoya açtım, bu daha iyi oldu.
Ama şimdi de birkaç gün sonra sabah gelince ekranda giriş sayfası görüyorum, oturum düşmüş. Kimsenin giriş yapmadığı bir ekran için doğru yol ne? PNG yoluna mı dönmeliyim?
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.
Chromium’da oturumu açık bırak, “beni hatırla” gibi bir şey yok mu? Biz ofiste öyle yapıyoruz.
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.
Oturum zaten açık bırakılmıştı, yine de birkaç günde bir düşüyor. Bir de laboratuvar hesabımla açık kalması pek hoşuma gitmiyor, koridordan biri dokunsa her şeyi görebilir.
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
PNG’ye dönme. Bunun için ekran bağlantısı (display link) var, biz santral kontrol odasındaki ekranlarda kullanıyoruz.
Pano paylaşılmış olmalı. Paylaşılan panoyu aç, pano menüsünden Ekran bağlantıları… seç, ekran adı ver (Lab koridor), süresini seç (1 günden 365 güne kadar), Create link. Bağlantı bir kere gösteriliyor, hemen kopyala. Bu bağlantıyla açılan ekran giriş istemiyor ve bağlantıyı oluşturan kişinin yetkisiyle, ondan fazlası olmadan çalışıyor. Ekrandan hiçbir kontrol çalışmıyor, düğme varsa bile pasif, yani koridordaki biri bir şey değiştiremez.
Pi’de autostart’a şunu koy:
chromium-browser --kiosk --noerrdialogs --disable-infobars
"https://<host>/...#<bağlantının gizli kısmı>"
Panonun ayarlarında Fill the screen height’ı aç, Refresh every’yi 30 saniye gibi bir değere çek. İki not: 3B görünümler ekran bağlantısında gösterilmiyor, panoda 3B kart varsa ekranda boş kalır. Her ekran için ayrı bağlantı yap, birini iptal edince diğerleri etkilenmesin.
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.
Çalıştı, teşekkürler hocam. Bir şeye takıldım: bağlantının # sonrası gizli kısmı sayfa açılınca adres çubuğundan siliniyor, ben adres çubuğundakini kopyalayıp autostart’a koyunca Pi yeniden başladığında açılmadı. Kopyaladığım tam bağlantıyı script’e yazınca düzeldi. Bir haftadır ekran açık, giriş sayfası yok.
- 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.

