用于发现和控制teufel-raumfeld设备的pythonic库。
raumfeld的Python项目详细描述
一个发现和控制Teufel Raumfeld的Python图书馆 设备。
用Raumfeld测试过。改善图书馆的硬件捐赠 欢迎光临:微笑:
支持python>;2.7、3.x
安装
pip install raumfeld
快速启动
importraumfeld# discovery returns a list of RaumfeldDevicesdevices=raumfeld.discover(timeout=1,retries=1)iflen(devices)>0:speaker=devices[0]# now you can control your raumfeld speakerspeaker.mute=True# muteprint(speaker.volume)# print current volumespeaker.volume=50# set volumespeaker.pause()speaker.play()else:print('No devices found.')