Update icecast2 FIP relay using HTTP/Json API http://zmpd.zered.net:8042/fip-metadata.mp3
Find a file
Yann Weber fe9df34ee6 Add a debug mode
- a "[debug mode]" line is add when printing FIP datas
- a timestamp is used as suffix for Icecast2 metadata
2016-05-31 19:19:08 +02:00
.gitignore Initial commit 2016-05-28 12:54:49 +02:00
conf-sample.ini Add a debug mode 2016-05-31 19:19:08 +02:00
COPYING Code cleaning 2016-05-29 02:26:50 +02:00
fip_current.py Add a debug mode 2016-05-31 19:19:08 +02:00
README.txt Adding z0x65.red instance in README.txt 2016-05-29 02:30:42 +02:00

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