raspberry pi setup tips
Set up static IP
/etc/dhcpcd.confRemote control raspberry pi and its remote screen using x11vnc
https://elinux.org/Screen_Casting_on_a_Raspberry_PiA better option is x0vncserver https://www.howtoforge.com/tutorial/how-to-start-a-vnc-server-for-the-actual-display-scraping-with-tigervnc/
Start VNC (if using the default realvnc install)
vncserver -Encryption PreferOff -Authentication VncAuthSet up Raspberry Pi as digital signage using chromium
https://obrienlabs.net/setup-raspberry-pi-kiosk-chromium/Set up the raspberry pi as info board
https://www.cnet.com/how-to/turn-an-old-monitor-into-a-wall-display-with-a-raspberry-pi/https://magicmirror.builders/
https://www.magicmirrorcentral.com/complete-raspberry-pi-magic-mirror-tutorial/
https://howchoo.com/g/ntcymzbimjv/how-to-install-magic-mirror-on-your-raspberry-pi
https://docs.magicmirror.builders/getting-started/installation.html#manual-installation
MagicMirror2 tips
Location: https://forum.magicmirror.builders/topic/286/regionsUseful modules
MMM_RemoteControl: https://github.com/Jopyth/MMM-Remote-ControlStart MagicMirror automatically
https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirrorDisable screensaver/black screen
https://www.raspberrypi.org/documentation/configuration/screensaver.mdshell2http
https://github.com/msoap/shell2httpExample usage
/home/pi/shell2http/shell2http -port 8081 \
/rthk31 "screen -dmS RTHK31 sh -c 'omxplayer --win \"480 80 1440 640\" --timeout 30 https://rthklive1-lh.akamaihd.net/i/rthk31_1@167495/index_2052_av-p.m3u8'; echo 'Starting...'" \
/rthk32 "screen -dmS RTHK32 sh -c 'omxplayer --win \"480 80 1440 640\" --timeout 30 https://rthklive2-lh.akamaihd.net/i/rthk32_1@168450/index_1080_av-p.m3u8'; echo 'Starting...'" \
/nhkworld "screen -dmS NHKWorld sh -c 'omxplayer --win \"480 80 1440 640\" https://b-nhkwlive-xjp.akamaized.net/hls/live/2003458-b/nhkwlive-xjp/index_1M.m3u8'; echo 'Starting...'" \
/nhkchinese "screen -dmS NHKChinese sh -c 'omxplayer --win \"480 80 1440 640\" https://nhkw-zh-hlscomp.akamaized.net/8thz5iufork8wjip/playlist.m3u8'; echo 'Starting...'" \
/killall "killall screen; echo 'Stopping...'" \
/restart "echo '
/shutdown "echo '
&
The endpoint could be triggered by a simple webpage like the one below.
pi@raspberrypi:/var/www/html $ cat index.html
Available operations
Video streaming
Raspberry Pi operations
Run a script upon reboot
https://www.instructables.com/id/Raspberry-Pi-Launch-Python-script-on-startup/Resources
https://www.rthk.hk/feeds/dtt/rthktv31_https.m3u8https://www.rthk.hk/feeds/dtt/rthktv32_https.m3u8
Comments
Post a Comment