ridgekuhn / radico8

A pico8 web radio.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

radico8

radico8 is both a youtube stream and web radio that plays pico-8 music.

submitting songs

if you know some good pico-8 music, submit a pull request adding the lexaloffle cart-id and track to the playlist.txt file.

issues

please create a github issue if the stream is down and i'll try to get it back up as soon as i can. you can submit issues for small feature suggestions and bugfixes too.

how it works

  • a headless instance of pico-8 is running inside a docker container.
  • pico-8 listens on stdin to figure out which carts it should play next.
  • a shell script listens on stdout of pico-8 to produce the youtube video image.
  • ffmpeg listens to any audio produced in the docker container and forwards it to icecast and youtube.
  • a cron job runs every hour to load playlist updates into the radio.
  • carts are downloaded as p8.png images directly from lexaloffle.

behavior

  • once radico8 notices a song is repeating, it will end the song in 20 seconds.
  • the max length a single song can play is 5 minutes, before radico8 will end the song.
  • radico8 shuffles the entire playlist then plays songs until every song has been played.

todo

  • optional way to add music author
  • try getting lexaloffle username of cart uploader

credits

legal stuff

please don't sue me. i'm not that rich anyways, so it's probably not worth it. if you're the author of a song and you'd like it removed from the radio, just submit a pull request to remove that song.

this repo is licensed under CC4-BY-NC-SA because most pico-8 games use that license too.

About

A pico8 web radio.

License:Other


Languages

Language:Shell 67.7%Language:Lua 29.2%Language:Dockerfile 3.1%