mirror of
https://github.com/Adam-Ant/home-assistant
synced 2024-11-14 15:36:22 +00:00
12 lines
195 B
Python
12 lines
195 B
Python
|
import mpd
|
||
|
|
||
|
client = mpd.MPDClient()
|
||
|
client.connect("192.168.1.62",6600)
|
||
|
client.clear()
|
||
|
client.load("morning")
|
||
|
client.random(1)
|
||
|
client.consume(1)
|
||
|
client.play()
|
||
|
client.close()
|
||
|
client.disconnect()
|