Raspberry Pi3

This part is very new to me, I got the script on my desktop. I can click it and select run from terminal and it opens the correct lovelace page.

But the link provided, I can’t make the script run on startup.

i assume i need to: sudo nano /etc/init.d/
but the example will not run.
also, is there a way to run this on bootup with no browser tabs, taskbar, complete full screen?

Yes. You’re looking at creating a chromium kiosk. I created a lot of kiosks at work using i3-wm and Python and bash scripts.

Yes please!

How much Linux do you understand?

https://www.sylvaindurand.org/launch-chromium-in-kiosk-mode/

This tutorial is pretty straightforward and simple but you’ll have to disable your desktop manager. I haven’t tried this one but it should work for you.

I can’t share all the details about the ones I created at work, but I can lend a hand where applicable

1 Like

Thanks this was very helpful.

I got it to load up from reboot. They only issue I have is there is part of the top and bottom not filling the display.

Also is there a way to have the page refresh every minute or so?

Not sure I understand.

There should be no reason to refresh the page. Lovelace doesn’t need refreshed unless you make a change.

It will update sensor state changes without a refresh?

The best description i can give for the screen is there’s a black bar at the top and bottom of the television. The complete Lovelace view is visible but if I could stretch the view to cover the whole screen I would be able to display more card information in my view

Try this…

sudo nano /boot/config.txt

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

config_hdmi_boost=4
1 Like

Of course. You’ve never had to refresh the page for sensor updates.

Thanks M8, that finished it up! Its perfect now. I really appreciate it!

Too easy campese

1 Like

I wasn’t sure it if would change or not. I haven’t really used the UI too much except on my phone.

i thank you sir for your help!

This is working very good, is there a way to get the browser to refresh, like hitting f5 on the keyboard but automatically so atleast the still camera images will refresh?

Still camera images should refresh every 10 seconds. Again, you do NOT need to refresh the page

Ok, I get it. A refresh is not necessary.

I do have another question, is it possible to have the kiosk pull multiple web tabs ( would use it for different views in Lovelace ) if it’s possible it would help my display from getting burned images and make it more useful especially for cameras so I can use panel views and have them toggle between them.

Thanks!

I do this with i3wm and some python magic, but I think if you just add a & at the end of the chromium browser command, and make another command similar to it, it should open in a new tab.

Thanks buddy, I’ll give this a try when I get home! Much appreciated

I can’t for the life of me remember how to access this file

#!/bin/sh
xset -dpms
xset s off
xset s noblank
unclutter & chromium-browser /path/to/your/file.html --window-size=1920,1080 --start-fullscreen --kiosk --incognito --noerrdialogs --disable-translate --no-first-run --fast --fast-start --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null

I thought it was sudo nano /something?/
any suggestions?

Where did you store it?

nano /path/to/file will open it in an editor as the user. If your user account has permission to write to the file, there is no need for sudo. Sudo is used to elevate permissions.

I used

nano /etc/skel/.xinitrc

but now it says it is not writable, and for some reason the kiosk. will not load :frowning: