-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[plex] Initial contribution #15057
[plex] Initial contribution #15057
Conversation
Signed-off-by: Michael Lobstein <[email protected]>
Signed-off-by: Michael Lobstein <[email protected]>
Signed-off-by: Michael Lobstein <[email protected]>
Signed-off-by: Michael Lobstein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for keeping the Git history! That made the review a lot easier.
sslContextFactory.setEndpointIdentificationAlgorithm(null); | ||
logger.debug("Connecting to WebSocket"); | ||
try { | ||
wsClient = new WebSocketClient(sslContextFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constructor is deprecated. You could pass a HttpClient
with the SslContextFactory
set. See
Line 75 in 214e31b
httpClient = httpClientFactory.createHttpClient(BINDING_ID, sslContextFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the change to pass in the httpClientFactory, create the custom httpClient, start it, stop it, etc. Hopefully someone can test these changes. The attached jar was updated.
...nhab.binding.plex/src/main/java/org/openhab/binding/plex/discovery/PlexDiscoveryService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Michael Lobstein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aronbeurskens is there any chance you can give this a quick connection test?
....binding.plex/src/main/java/org/openhab/binding/plex/internal/handler/PlexServerHandler.java
Outdated
Show resolved
Hide resolved
@mlobstein @fwolter I did a quick test run with the provided JAR on OpenHab 4.0.0 with Java 17. |
Signed-off-by: Michael Lobstein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for finishing this!
Now, any of you could add the binding's logo to the openHAB website. See https://www.openhab.org/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
Great news, nice to see it finally merged into main. |
Yes, thanks for the reminder! |
* aronbeurskens plex baseline Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * Clean-up PlexApiConnector exception handling Signed-off-by: Michael Lobstein <[email protected]> * Additional clean-up Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> --------- Signed-off-by: Michael Lobstein <[email protected]> Signed-off-by: Thomas Burri <[email protected]>
* aronbeurskens plex baseline Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * Clean-up PlexApiConnector exception handling Signed-off-by: Michael Lobstein <[email protected]> * Additional clean-up Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> --------- Signed-off-by: Michael Lobstein <[email protected]> Signed-off-by: Matt Myers <[email protected]>
* Updated logo for the Plex Media Player PR openhab#15057 Added support for the Plex Media Player. This updates the logo for the binding. Signed-off-by: Aron Beurskens <[email protected]> * Added dark plex logo Added dark plex logo to be visible on white background Signed-off-by: Aron Beurskens <[email protected]> --------- Signed-off-by: Aron Beurskens <[email protected]>
* aronbeurskens plex baseline Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * Clean-up PlexApiConnector exception handling Signed-off-by: Michael Lobstein <[email protected]> * Additional clean-up Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> * review changes Signed-off-by: Michael Lobstein <[email protected]> --------- Signed-off-by: Michael Lobstein <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
Replaces #12135
Add the binding that enables openHAB to communicate with PLEX.
Test jar: https://github.com/mlobstein/openhab-addons/releases/download/4.0/org.openhab.binding.plex-4.0.0-SNAPSHOT.jar
@aronbeurskens
#4949