Skip to content

Commit

Permalink
fixed READMED, NOTICE and added dev link to ClementineRemoteHandler.java
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
  • Loading branch information
Stephan Richter committed Jan 8, 2023
1 parent 8e150fb commit 32a5718
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
10 changes: 10 additions & 0 deletions bundles/org.openhab.binding.clementineremote/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

The included protobuf definition file emerged from the Clementine-Player Android-Remote project
and is licensed under the Apache License, Version 2.0.

The file src/main/java/de/qspool/clementineremote/backend/pb/ClementineRemote.java is generated from the
protocol buffers description files using Googles `protoc`.

Usage of protocol buffers within this project is limited to the inclusion of the com.google.protobuf library.

Protoc is *not* part of this project.

== Source Code

https://github.com/openhab/openhab-addons
36 changes: 21 additions & 15 deletions bundles/org.openhab.binding.clementineremote/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Clementine Remote Binding

<img style="float: right; margin: 0 0 5px 5px" src="doc/screenshot.png" alt="Screenshot" />
This binding shall bring the benefits of over-the-network control of the [Clementine-Player] to openHAB!
This binding brings the benefits of over-the-network control of the [Clementine-Player] to openHAB!

It allows control of playback, position and volume and allows display of various title information:

Expand All @@ -13,8 +13,13 @@ It allows control of playback, position and volume and allows display of various

## Discovery

This thing does (currently) not provide auto-discovery.
This thing does not provide auto-discovery.
You will have to manually configure clementine to allow remote connections.

Detailed instructions how to configure Clementine's remote functions are provided here:

https://github.com/clementine-player/Android-Remote/wiki/How-to-use-the-Android-Remote

And you will have to manually configure the Thing instances to talk to your player:

## Thing Configuration
Expand All @@ -36,38 +41,39 @@ If you set a password in the Clementine configuration, you will have to provide

The binding provides the following channels:

| Channel | Type | Read/Write | Description |
|------------------|---------------|-------------|----------------------------------------------|
| album | String | read-only | Album the currently playing song belongs to |
| artist | String | read-only | Artist of the currently playing title |
| cover | Image | read-only | Cover of the current album |
| playback-control | String | read/write | Common control of playback and position |
| position | Number:Time | read-only | Current position within the playing track |
| state | String | read-only | Current state of Clementine player |
| title | String | read-only | Name of the currently playing track |
| track | String | read-only | Number of the title within the current album |
| volume-control | system.volume | read/write | Playback volume |
| Channel | Type | Read/Write | Description |
|------------------|-------------|-------------|----------------------------------------------|
| album | String | read-only | Album the currently playing song belongs to |
| artist | String | read-only | Artist of the currently playing title |
| cover | Image | read-only | Cover of the current album |
| playback-control | String | read/write | Common control of playback and position |
| position | Number:Time | read-only | Current position within the playing track |
| state | String | read-only | Current state of Clementine player |
| title | String | read-only | Name of the currently playing track |
| track | String | read-only | Number of the title within the current album |
| volume-control | Dommer | read/write | Playback volume |



## Full Example

### Thing

```
```yaml
UID: clementineremote:clementine:0590462b5b
label: Clementine
thingTypeUID: clementineremote:clementine
configuration:
port: 5500
hostname: 192.168.1.6
authCode: 123456
```
### Widget
based on https://community.openhab.org/t/universal-remote-widget/118423
```
```yaml
uid: clementine_remote
tags: []
props:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
* The {@link ClementineRemoteHandler} is responsible for handling commands, which are
* sent to one of the channels.
*
* It uses Clementine's own, protocol buffers based communication sheme:
* https://github.com/clementine-player/Android-Remote/wiki/Developer-Documentation
*
* @author Stephan Richter - Initial contribution
*/
@NonNullByDefault
Expand Down

0 comments on commit 32a5718

Please sign in to comment.