openhab-addons icon indicating copy to clipboard operation
openhab-addons copied to clipboard

[ClementineRemote] Initial contribution

Open StephanRichter opened this issue 2 years ago • 3 comments

ClementineRemote Binding

This new binding allows controlling Clementine Player from OpenHAB.

The binding is located @ bundles/org.openhab.binding.clementineremote.

Description

Connection between Handler and Clementine Player is done via Google Protocol Buffers. The protobuf definition file is included in the folder proto.

Based on this definition file, a class ClementineRemote.java has been generated in the package bundles/org.openhab.binding.clementineremote/src/main/java/de/qspool/clementineremote/backend/pb via the command

bundles/org.openhab.binding.clementineremote$> protoc --java_out=src/main/java/ proto/remotecontrolmessages.proto

OpenHAB version

As per request from Maintainer, this commit is now based on lastest 4.0.0 main.

Static Code Analysis

All code in org/openhab/binding/clementineremote should conform to the requirements given in the Coding Guidelines.

However the code in de/qspool/clementineremote/backend/pb does not! As this class is script-generated, I think it should be excluded from code analysis. There already is a thread for discussion of that topic.

StephanRichter avatar Dec 29 '22 17:12 StephanRichter

I fixed all suggestions by lsiepel – with on exception:

I did not change the channel type of playback-control to the predefined system.media-control, as that does not seem to support STOP command.

StephanRichter avatar Jan 08 '23 11:01 StephanRichter

I fixed all suggestions by lsiepel – with on exception:

I did not change the channel type of playback-control to the predefined system.media-control, as that does not seem to support STOP command.

Great, some small issues left. Maybe look at some other binding regarding the player / media control. Don't have a real opinion on it, juist know there is a dedicated control for such tasks.

I leave this now for a real maintainer to review. :-)

lsiepel avatar Jan 08 '23 13:01 lsiepel

Hm, any progress here? Did I miss something when fixing the denoted issues?

StephanRichter avatar Mar 06 '23 23:03 StephanRichter

@StephanRichter there has been some time without any updated / commits to this PR. Do you think you will be able to finish this or did you abandon this PR? At some time we will close this PR due to inactivity.

lsiepel avatar Sep 09 '24 19:09 lsiepel