https://github.com/tfeldmann/python-raumfeld
A pythonic library for discovering and controlling Teufel Raumfeld devices.
https://github.com/tfeldmann/python-raumfeld
Last synced: over 1 year ago
JSON representation
A pythonic library for discovering and controlling Teufel Raumfeld devices.
- Host: GitHub
- URL: https://github.com/tfeldmann/python-raumfeld
- Owner: tfeldmann
- License: mit
- Created: 2014-05-17T14:22:41.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-10T12:30:53.000Z (over 11 years ago)
- Last Synced: 2025-03-18T14:05:48.479Z (over 1 year ago)
- Language: Python
- Size: 273 KB
- Stars: 23
- Watchers: 11
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
python-raumfeld
===============
A pythonic library for discovering and controlling Teufel Raumfeld
devices.
Tested with a Raumfeld One. Hardware donations to improve the library
are welcome :smile:
Supports Python >2.7, 3.x
Installation
------------
::
pip install raumfeld
Quickstart
----------
.. code:: python
import raumfeld
# discovery returns a list of RaumfeldDevices
devices = raumfeld.discover(timeout=1, retries=1)
if len(devices) > 0:
speaker = devices[0]
# now you can control your raumfeld speaker
speaker.mute = True # mute
print(speaker.volume) # print current volume
speaker.volume = 50 # set volume
speaker.pause()
speaker.play()
else:
print('No devices found.')