At the paper mill we had 4 TV’s in scattered around the site that would display company announcements from HR/Management. All the announcements were usually either PDFs, Word, Excel or Powerpoint files.
- Management wanted something simple that they could just drop files into
 - I setup a folder on the local file share drive, with a subfolder for each TV
 - Management/HR would drop their PDF/Word/Excel files into the folder that they wanted to display the announcement on.
 
TV Setup
- We purchased generic 45-60” Amazon Fire TV’s from Amazon. They regularly go on sale for $150-250
 - When setting up the TV for the first time, make sure to select “Kiosk Mode” when prompted. This will make the TV always stay on and automatically switch to the last input device whenever it’s powered on after any kind of power outage.
 
Raspberry Pi
- Raspberry Pis have a slideshow start at boot utilizing 
fehimage viewer (sudo apt install feh). - Images get synchronized to them through Syncthing and are located in 
/home/terminal/Displays/ - Username: terminal, password in Bitwarden
- Syncthing installation steps: https://www.htpcguides.com/install-syncthing-raspberry-pi-bittorrent-sync-alternative/
 - Syncthing Authentication is the same as the Desktop Login (UN: terminal, PW: See Bitwarden)
 
 - Startup Script is started through a Desktop Entry titled 
tvdisplay.desktop- https://www.digikey.de/en/maker/projects/how-to-run-a-raspberry-pi-program-on-startup/cc16cb41a3d447b8aaacf1da14368b13
- “Create a .desktop File” Section
 - contents of .desktop file:
 
[Desktop Entry] Exec=/home/terminal/Displays/.hidden/StartupScript.sh 
 - https://www.digikey.de/en/maker/projects/how-to-run-a-raspberry-pi-program-on-startup/cc16cb41a3d447b8aaacf1da14368b13
 - Startup script is located in 
/home/terminal/Displays/.hidden/StartupScript.shand contains the following commands: 
#!/bin/bash
sleep 5s
feh -q -p -Y -F -Z -D 30 -R 120 '/home/terminal/Displays'
# https://linux.die.net/man/1/feh for breakdown
Turning on TV with Raspberry Pi using CEC
- https://www.linuxuprising.com/2019/07/raspberry-pi-power-on-off-tv-connected.html
 - Scan available devices
 
echo 'scan' | cec-client -s -d 1
- Turn on TV and switch to HDMI connected to Pi
 
echo 'on DEVICENUMBER' | cec-client -s -d 1
- Power on tv and switch input to raspberry PI:
 
echo 'on 0' | cec-client -s -d 1 ;  echo "as" | cec-client -s
Get CEC Device Power Status
echo 'pow 0' | cec-client -s -d 1
echo 'pow DEVICENUM' | cec-client -s -d 1