|
11 months ago | |
---|---|---|
jstemplates | 6 years ago | |
libs | 11 months ago | |
static | 11 months ago | |
templates | 6 years ago | |
Readme.md | 6 years ago | |
app.py | 11 months ago |
A python3 web app to record internet radio streams and present them in a podcast
mkdir files/ ; mkdir files/output/ ; mkdir files/temp/ ; ln -s ../files/output static/test
Podcast usage: each schedule has a numerical id. To view the podcast, http://my.server/api/getPodcast?id=[number]
Something like:
[uwsgi]
uid = streamrecord
pid = streamrecord
plugins = python3
touch-reload = /home/streamrecord/app/app.py
chdir = /home/streamrecord/app/
wsgi-file = /home/streamrecord/app/app.py
callable = application
master = true
processes = 1
socket = 127.0.0.1:3330
pidfile = /tmp/streamrecord.pid
enable-threads = true
no-threads-wait = true
die-on-term = true
Something like:
server {
listen 30000;
listen [::]:30000 ipv6only=on;
include uwsgi_params;
access_log /var/log/nginx/stremrecord.log;
location / {
uwsgi_pass 127.0.0.1:3330;
}
location /streamrecord/static/ {
autoindex off;
alias /home/streamrecord/app/static/;
}
}