Update icecast2 FIP relay using HTTP/Json API http://zmpd.zered.net:8042/fip-metadata.mp3
python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yann Weber d35735cf65 Add a loop mode and an init script 8 years ago
.gitignore Initial commit 8 years ago
COPYING Code cleaning 8 years ago
README.txt Adding z0x65.red instance in README.txt 8 years ago
conf-sample.ini Add a loop mode and an init script 8 years ago
fip_current.py Add a loop mode and an init script 8 years ago
init_script Add a loop mode and an init script 8 years ago

README.txt

Usage :
-------

./fip_current.py [-c CONFIG.ini] [-u]

#Show current song metadata
./fip_current.py

#Update icecast2 metadata
./fip_current.py -c CONFIG.ini -u

Instances :
-----------

A FIP relay with fip_current.py metadata update
http://zmpd.zered.net:8042/fip-metadata.mp3

Requierments :
--------------

icecast2
python3
python3-requests

Icecast2 configuration sample :
-------------------------------

<relay>
<server>audio.scdn.arkena.com</server>
<port>80</port>
<mount>/11016/fip-midfi128.mp3</mount>
<local-mount>/fip-metadata.mp3</local-mount>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>

Crontab :
---------

#Update every minute
* * * * * /path/fip_current.py -uc /path/conf.ini