Giter Club home page Giter Club logo

twitch_autoplayer's Introduction

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 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.

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 and the timer file to /etc/systemd/system/.

Enable and start the timer:

sudo systemctl enable twitch_tv.timer

Or you can just enable the service directly but I recommend delaying it because I had some issues.

sudo systemctl enable twitch_tv.service

That's it! The script will now start after reboot.

File Descriptions

  • 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: Text file containing the list of Twitch streamers you want to watch. Each streamer should be on a separate line.

  • twitch_tv.service: Systemd service file for running the Twitch autoplayer script as a service.

  • 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

twitch_autoplayer's People

Contributors

simongendre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.