Tuesday 23 June 2020

[Open-source] OpenRadio

I'm not sure if this is the right place to post projects so feel free to lock/delete this and point me in a good place to post this project.I've always wanted to make something like this but I was limited by the way python works. Streams weren't commonly used in python and the youtube-dl library doesn't support it plus it gets blocked a lot. Using ytdl-core with streams was a lot better. Anyway, without further ado lemme present my project OpenRadioHave you ever wanted to create your own music radio stations that cycle randomly or just cycle through songs in playlists? OpenRadio makes this possible without setting up a fully-fledged streaming server like icecast(I do recommend it if you are running something like a podcast). Each radio has it's own url and is a infinite mp3 file. To conserve resources radio stations check if users are listening at the end of each song and automatically shut down if they aren't and restart when they start listening again. Also since each station has it's own url you can listen to your radio from smart devices like google cast(Use https://speedtesting.herokuapp.com/cloudcast/ and input your url) and theoretically can play on amazon alexa. There is a simple admin interface available on /admin to manage your playlists without having to dig into a json or sqlite db. Also recently I added a visualizer using butterchurn which you can enable by typing "milkdrop" into the page.SetupAll you need to do is extract a release(recommended) or download the repo. Create a file called .env. This will be used to store the most sensitive information so keep this file safe. In this file put the followingSECRET=somethingrandom PASSWORD=adminpasswordhere PORT=portnumberhere To start the server run `node server.js`. I strongly recommend you have a https connection otherwise your password can be stolen pretty easily.Other Links + demoI have an instance running at: https://frill-corn.glitch.meIf no one is on for 5 mins it turns off automaticallyAlso if you are interested here's my original thread I made when I worked on this project: https://support.glitch.com/t/openradio-make-your-own-radio/25275/1Github: https://github.com/javaarchive/OpenRadio/blob/glitch/server.jsReleases: https://github.com/javaarchive/OpenRadio/releases

Submitted June 24, 2020 at 05:38AM by smashjarchivemaster

No comments:

Post a Comment