Code Monkey home page Code Monkey logo

ersatztv-filler's Introduction

ErsatzTV-Filler

Currently this script generates weather forecast, news and channel currently offline filler for ErsatzTV or similar programs.

Check back regularly for updates.

Discord chat: https://discord.gg/x4Nk4sfgSg

Donations are welcome: https://www.paypal.me/liam200333

ko-fi

Themes

ErsatzTV-Filler uses theme files to adjust the look of the ouput video files. These themes can be found at https://github.com/liam8888999/ErsatzTV-Filler-Themes

Requirements

Linux operating system with ffmpeg, xsltproc, jq, xmltv-utils and curl installed.

Installation Instructions

Docker image available at:

https://hub.docker.com/r/liam2003/ersatztv-filler

Clone the latest version of the repo.

  1. git clone https://github.com/liam8888999/ErsatzTV-Filler.git

Move into the required folder.

  1. cd ErsatzTV-Filler

Allow the script to be executed

  1. chmod +x generator.sh

Copy the configuration sample

  1. cp sample-config.conf config.conf

Update the 'output', 'city', 'state' and other variables to your required locations, replace nano with your favorite text editor.

  1. nano config.conf

For Channel currently offline Filler

for this to work you need to run the script once which will generate placeholder videos titled with the channel number you will need to add each of these to its own collection and schedule that collection during planned channel offline times.

Update Instructions

Make sure your in the ErsatzTV-Filler directory and run the following command:

  1. git pull

Automatic updates are now supported by default

It is recommended to copy the configuration sample again in order to ensure all new variables are included

Follow step 4 and 5 above

Setting the script to run automatically

You may also want to add it as a cron job to run at your desired interval

Edit the crontab file - requires sudo password...

  1. sudo crontab -e

Append the following line to the bottom of the file to make it run every hour.

Make sure to replace the path with your local one!
  1. 0 * * * * /home/xxx/ErsatzTV-Filler/generator.sh

Docker

Build

docker build -t liam8888999/ersatztv-filler .

Run

docker run --rm -it -v $(pwd):/config -v /media/audio/whatever:/audio -v /media/whatever:/output -v /media/audio/whatever:/tmp/ErsatzTV-Filler liam8888999/ersatztv-filler /config/config.conf

For more information on how to use this with ErsatzTV please visit https://ersatztv.org/user-guide/filler/

I am interested in making different kinds of filler so if you have any suggestions, bugs, improvements, etc. just open a issue and i will get back as soon as i can

ersatztv-filler's People

Contributors

liam8888999 avatar notexpectedyet avatar jasongdove 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.