Skip to content

Beo web remote - A pPython web server for controlling network link attached B&O devices

License

Notifications You must be signed in to change notification settings

mtlhd/beowebmote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beowebmote

Beo web remote - web server for controlling network link attached B&O devices

All I really wanted was to create a magic button that could shut it all off when leaving home. Along the way and after some serious research on Internet (mainly GitHub) and reverse engineering an app (or rather some of how it communicates with the system) I managed to build the desired functionality. With the knowledge I had gathered I managed to squeeze in a couple of more features. One day I also realized that a snooze function would be useful so that I could fall asleep listening to music (or any other source in fact).

It's nothing fancy really. If you want to add features please go ahead!

Usage

Launch the web server using the following command:

  python beowebmote.py

On startup the script starts to listen for beolink services on the local network and for requests on port 5000.

Supported Commands

Heartbeat/Status

Get the status of the web server.

  http://<beowebmote_host>:5000/

List Available Devices

List all devices available on the local network.

  http://<beowebmote_host>:5000/devices

Basic Playback Handling

Play

Start playback of selected source.

  http://<beowebmote_host>:5000/<device_name>/play

Pause

Pause playback of selected source.

  http://<beowebmote_host>:5000/<device_name>/pause

Stop

Stop playback of selected source.

  http://<beowebmote_host>:5000/<device_name>/stop

Next

Skip to next track or channel for the selected source.

  http://<beowebmote_host>:5000/<device_name>/next

Previous

Select previous track or channel for the selected source.

  http://<beowebmote_host>:5000/<device_name>/prev

Power Management

Single Device Standby

Put a specific device into standby.

  http://<beowebmote_host>:5000/<device_name>/standby

All Devices Standby

Put all devices into standby.

  http://<beowebmote_host>:5000/<device_name>/allstandby

Snooze Single Device

Put a specific device into standby after a delay specified in minutes. Minutes should be an integer value.

  http://<beowebmote_host>:5000/<device_name>/snooze/<delay_in_minutes>

Snooze All Devices

Put all devices into standby after a delay specified in minutes. Minutes should be an integer value.

  http://<beowebmote_host>:5000/<device_name>/allsnooze/<delay_in_minutes>

Volume Handling

Get Device Volume

Get the current volume set for a device.

  http://<beowebmote_host>:5000/<device_name>/volume

Set Device Volume

Set the volume to a certain level for a specific device. Range is 1-100, but is also limited by device settings.

  http://<beowebmote_host>:5000/<device_name>/volume/<level>

Increase Device Volume

Increase the volume by one for a specific device.

  http://<beowebmote_host>:5000/<device_name>/volume/up

Decrease Device Volume

Decrease the volume by one for a specific device.

  http://<beowebmote_host>:5000/<device_name>/volume/down

Get Device Mute Status

Get the mute status for a select device.

  http://<beowebmote_host>:5000/<device_name>/volume/ismuted

Mute Device

Mutes a select device.

  http://<beowebmote_host>:5000/<device_name>/volume/mute

Unmute Device

Unmutes a select device.

  http://<beowebmote_host>:5000/<device_name>/volume/unmute

Source Handling

List Available Sources for Device

  http://<beowebmote_host>:5000/<device_name>/sources

Join an On-going Session

  http://<beowebmote_host>:5000/<device_name>/join

About

Beo web remote - A pPython web server for controlling network link attached B&O devices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages