从python控制spotimote的库
spotimote的Python项目详细描述
使用spotimote服务器的python spotify远程控制
这个库可以使用python控制spotimote(http://www.nodria.com/)服务器。 它可以自动检测正在运行的spotimote服务器,并可以这样调用:
python spotimote.py play_pause python spotimote.py next python spotimote.py prev python spotimote.py shuffle python spotimote.py repeat python spotimote.py volume_up python spotimote.py volume_down
或者不自动检测主机:
python spotimote.py –host 192.168.0.2 –port 5116 volume_down
将其用作库:
# Setup the spotimote library from spotimote import Spotimote spotimote = Spotimote()
# Play the next song spotimote.next()
# Or scan for spotimote servers print ‘Hosts:’, list(spotimote.detect())