Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer Control #210

Open
SamVimes78 opened this issue Jan 19, 2024 · 3 comments
Open

Timer Control #210

SamVimes78 opened this issue Jan 19, 2024 · 3 comments

Comments

@SamVimes78
Copy link

Intro (feel free to skip):
We're running multiple Pi Zeros looping happily through some videos in our store. I set them up (cron) to stop video_looper 5 minutes after closing each day and sending the attached tv into standby another minute later. 5 minutes before we open the RasPis will reboot and wake up the TVs again.

Request:
I'd like video_looper to switch to a certain video at a certain time (without needing to stop video_looper and showing command prompt). That way i'd be able to show a message that our store will be closing in a few minutes.

@tofuSCHNITZEL
Copy link
Collaborator

Hey,

you can use cron to just swap the files in the folder for the video you want to have played at the certain time - this would cause videolooper to start the playback of the file without having to reload the looper (in directory mode the directory is watched and playback changes if files change)

Also I share with you now the changes I make to all the PIs I use with the videolooper to hide the bootscreen and the terminal:

#HIDE splashscreen
sudo sh -c "echo 'disable_splash=1' >> /boot/config.txt"

#DISABLE WARNINGS:
sudo sh -c "echo 'avoid_warnings=1' >> /boot/config.txt"

#quiet boot
sudo sed -i -e 's/rootwait/rootwait quiet splash loglevel=0 consoleblank=0 logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles /' /boot/cmdline.txt

#Tell dmesg to be quiet
sudo sed -i  '/exit 0/i\#Suppress Kernel Messages\ndmesg --console-off\n' /etc/rc.local

#hide motd
touch ~/.hushlogin

#SILENT BOOT AND SPLASH
sudo systemctl disable getty@tty1

I also install a "splashscreenservice" which just displayes a custom fullscreen PNG instead of a black screen until the videolooper starts. if you want I can share this also with you

@christiansievers
Copy link
Contributor

Hi @tofuSCHNITZEL I've finally found time to update my image file for videolooper.de again, and your script looks like it would be good to include as a manual option. If there's anything else you want to share, let's have it! :)
(sorry for hijacking this ticket)

@tofuSCHNITZEL
Copy link
Collaborator

tofuSCHNITZEL commented Jan 21, 2024

Hi @tofuSCHNITZEL I've finally found time to update my image file for videolooper.de again, and your script looks like it would be good to include as a manual option. If there's anything else you want to share, let's have it! :) (sorry for hijacking this ticket)

here is what I do for the "boot up screen":

sudo cp ./assets/splashscreen.service /etc/systemd/system/splashscreen.service
sudo cp ./assets/loader.png /home/pi/loader.png

sudo systemctl enable splashscreen

splashscreen.service looks like this:

[Unit]
Description=Splashscreen
DefaultDependencies=no
After=local-fs.target

[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /home/pi/loader.png
StandardInput=tty
StandardOutput=tty

[Install]
WantedBy=sysinit.target

package "fbi" needs to be installed

Edit:
Probalaby the splashscreen service should load the loader png from the /boot partition so it can be modified by putting the sd card into an external reader...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants