Pour jouer automatiquement au démarrage une playlist de vidéos
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=13689&p=239521
apt-get install xbmc-eventclients-xbmc-send
xbmc-send --action='PlayMedia("/home/pi/loire.m3u")' --action="PlayerControl(RepeatAll)"
os.system("xbmc-send --action='PlayMedia(\"/home/pi/loire.m3u\")' --action=\"PlayerControl(RepeatAll)\"")
http://stackoverflow.com/questions/89228/calling-an-external-command-in-python
http://wiki.xbmc.org/index.php?title=List_of_built-in_functions
how to post json with curl
curl -X POST -H "application/json" -d '{"key":"val"}' URL