Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simongendre/twitch_autoplayer
Stream your favorite streamers as soon as they're live !
https://github.com/simongendre/twitch_autoplayer
autoplay autoplayer raspberry-pi raspberrypi streaming streamlink twitch
Last synced: 17 days ago
JSON representation
Stream your favorite streamers as soon as they're live !
- Host: GitHub
- URL: https://github.com/simongendre/twitch_autoplayer
- Owner: SimonGendre
- Created: 2024-03-23T17:10:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T18:57:23.000Z (10 months ago)
- Last Synced: 2024-11-13T20:42:16.317Z (3 months ago)
- Topics: autoplay, autoplayer, raspberry-pi, raspberrypi, streaming, streamlink, twitch
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitch_autoplayer
This tiny script allows you to have your favorites streamers displayed on your Raspberry Pi display as soon as they start streaming!You can define a list of streamers that you want to watch, and the script will show you the first one that streams.
I found [rsheldiii](https://github.com/rsheldiii/twitch.tv-TV) repo and thought 'hmm I can make that more complicate'
## Set up
In order for it to work, the script needs both Streamlink and Tmux to be installed on your system.```bash
sudo apt update && sudo apt upgrade -y
sudo apt install streamlink
sudo apt install tmux
```
You will then have to copy both the [service file](./script/twitch_tv.service) and [the timer file](./script/twitch_tv.timer) to `/etc/systemd/system/`.Enable and start the timer:
```bash
sudo systemctl enable twitch_tv.timer
```Or you can just enable the service directly but I recommend delaying it because I had some issues.
```bash
sudo systemctl enable twitch_tv.service
```That's it! The script will now start after reboot.
# File Descriptions
- **[twitch_tv.sh](./scripts/twitch_tv.sh)**: This is the main script for the Twitch autoplayer. It defines functions to start and stop streaming, check if a streamer is live, and determine streamer priority. The main loop periodically checks the status of each streamer in the list and plays the stream of the highest priority live streamer.- **[streamers.txt](./scripts/streamers.txt)**: Text file containing the list of Twitch streamers you want to watch. Each streamer should be on a separate line.
- **[twitch_tv.service](./scripts/twitch_tv.service)**: Systemd service file for running the Twitch autoplayer script as a service.
- **[twitch_tv.timer](./scripts/twitch_tv.timer)**: Systemd timer file for delaying the start of the Twitch autoplayer service after boot.
# Issues
No more for now :)
Feel free to open an issue if you spot anything