raspberry pi setup tips

Set up static IP

/etc/dhcpcd.conf

Remote control raspberry pi and its remote screen using x11vnc

https://elinux.org/Screen_Casting_on_a_Raspberry_Pi
A 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 VncAuth

Set 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/regions

Useful modules

MMM_RemoteControl: https://github.com/Jopyth/MMM-Remote-Control

Start MagicMirror automatically

https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror 

Disable screensaver/black screen

https://www.raspberrypi.org/documentation/configuration/screensaver.md

shell2http

https://github.com/msoap/shell2http
Example 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 'Restarting SystemRestarting system'; sudo reboot -h now" \
           /shutdown "echo 'Stopping SystemStopping system'; sudo shutdown -h now" \
          &

The endpoint could be triggered by a simple webpage like the one below.
pi@raspberrypi:/var/www/html $ cat index.html


Magic Mirror Management Interface

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.m3u8
https://www.rthk.hk/feeds/dtt/rthktv32_https.m3u8

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player