MartinHjelmare / PyVolumio

A python library to control Volumio.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyVolumio

A python interface control Volumio.

Installation

You can install pyvolumio from PyPI:

pip3 install pyvolumio

Python 3.7 and above are supported.

How to use

from pyvolumio import Volumio
v = Volumio("<host>", <port>)
# you can also pass in your own session
v = Volumio("<host>", <port>, <session>)

info = await v.get_system_info()
state = await v.get_state()

await v.play()
await v.pause()
await v.stop()
await v.volume_up()
...

About

A python library to control Volumio.

License:MIT License


Languages

Language:Python 100.0%