This tutorial explains, how you can program your Pi so that it automatically tries to connect to a specific YouTube live stream link at startup and always tries to reconnect if the connection is lost. My personal use case was for my grandpa to watch a live stream of his local church without the need to understand YouTube/internet. If you want a permanent stream of a specific channel, use the following link format: https://www.youtube.com/channel/<channel-id>/live
(ID can be found with online tools like YouTube Channel ID Finder). This Gist should also work with other streaming services, if they are supported by Streamlink.
- Install a useful OS. This tutorial assumes the Raspberry Pi OS (32-bit).
- Setup an internet connection.
- Install the latest stable version of Streamlink. Older versions have problems with the more recent YouTube API. For the instal