diff --git a/README.md b/README.md index 0dc9617..2be1e3a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ a norns mod to create a public mp3 stream from your norns. broadcast is a simple mod that lets you make a dedicated music stream from your norns. the output is a public URL of an mp3 that can be listened to in a browser, in music apps, etc. -broadcast works by using [`darkice`](http://www.darkice.org/) and [`icecast2`](https://icecast.org/) which interface with JACK and convert the norns output into a mp3 stream (which is [configurable](https://github.com/schollz/broadcast/blob/main/darkice.cfg#L18)). this local stream is then streamed via `curl` to a server I setup at `broadcast.norns.online`. [the server](https://github.com/schollz/broadcast-server) is ~200 lines of code that simply copy bytes from a POST request (i.e. the stream) to any number of GET requests (i.e. browser client(s)). +broadcast works by using [`darkice`](http://www.darkice.org/) and [`icecast2`](https://icecast.org/) which interface with JACK and convert the norns output into a mp3 stream (which is [configurable](https://github.com/schollz/broadcast/blob/main/darkice.cfg#L18)). this local stream is then streamed via `curl` to a server I setup at `streamyouraudio.com`. [the server](https://github.com/schollz/streamyouraudio) is ~200 lines of code that simply copy bytes from a POST request (i.e. the stream) to any number of GET requests (i.e. browser client(s)). broadcast will install ~2.5 MB of linux packages when you run it the first time and while running will take a small amount of CPU to run the stream conversion, and use some internet bandwidth to upload the stream. @@ -23,7 +23,7 @@ you can install *broadcast* and then activate the mod in the `SYSTEM > MODS > BR after installation you can activate the broadcast by going to `SYSTEM > MODS > BROADCAST`. first use E3 to select `edit station name` and press K3 to enter in your station name. then you can use E3 to select `offline` and press K3 to turn go `online`. if you are "online" you can use the URL to listen to your norns. -you can advertise your stream by toggling "advertise" to "true". then your stream will be listed at [`broadcast.norns.online`](https://broadcast.norns.online). _note_: **all the streams are public so don’t share anything private. the streams are not password-protected or anything. but the URL for your stream is private unless you share it (technically the server also sees the URL but I don’t keep logs so I don’t see it…).** +you can advertise your stream by toggling "advertise" to "true". then your stream will be listed at [`streamyouraudio.com`](https://streamyouraudio.com). _note_: **all the streams are public so don’t share anything private. the streams are not password-protected or anything. but the URL for your stream is private unless you share it (technically the server also sees the URL but I don’t keep logs so I don’t see it…).** ### Download diff --git a/broadcast2.sh b/broadcast2.sh index faaf3a0..ba8ee4a 100755 --- a/broadcast2.sh +++ b/broadcast2.sh @@ -1,5 +1,5 @@ #!/bin/bash -echo "streaming at https://broadcast.norns.online/${1}.mp3" +echo "streaming at https://streamyouraudio.com/${1}.mp3" function cleanup { pkill -f radio.mp3 } @@ -8,6 +8,6 @@ trap cleanup EXIT while : do pkill -f radio.mp3 -curl -s http://localhost:8000/radio.mp3 | curl -s -k -H "Transfer-Encoding: chunked" -X POST -T - "https://broadcast.norns.online/${1}.mp3?stream=true&advertise=${2}&archive=${3}" +curl -s http://localhost:8000/radio.mp3 | curl -s -k -H "Transfer-Encoding: chunked" -X POST -T - "https://streamyouraudio.com/${1}.mp3?stream=true&advertise=${2}&archive=${3}" sleep 1 done diff --git a/lib/mod.lua b/lib/mod.lua index e1f0aac..23910da 100644 --- a/lib/mod.lua +++ b/lib/mod.lua @@ -154,9 +154,9 @@ m.redraw=function() if state.station~="" then screen.level(5) screen.move(64,32+yy) - screen.text_center("broadcast.norns.online/") + screen.text_center("streamyouraudio.com/") screen.move(64,40+yy) - screen.text_center(state.station..".mp3") + screen.text_center(state.station) end screen.level(state.x==2 and 15 or 5) screen.move(64,52+yy)