mirror of
https://github.com/Adam-Ant/home-assistant
synced 2024-11-13 23:16:23 +00:00
11 lines
172 B
Python
11 lines
172 B
Python
|
import mpd
|
||
|
|
||
|
client = mpd.MPDClient()
|
||
|
client.connect("192.168.1.62",6600)
|
||
|
client.stop()
|
||
|
client.clear()
|
||
|
client.random(0)
|
||
|
client.consume(0)
|
||
|
client.close()
|
||
|
client.disconnect()
|