Code cleaning

Adding GPL licence
Commenting and code cleaning
Adding a README
This commit is contained in:
Yann Weber 2016-05-29 02:26:50 +02:00
commit ac7483d5d0
3 changed files with 772 additions and 34 deletions

34
README.txt Normal file
View file

@ -0,0 +1,34 @@
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
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