-
Notifications
You must be signed in to change notification settings - Fork 782
Initial version of FS internet radio binding. #429
Initial version of FS internet radio binding. #429
Conversation
48235cf
to
289b481
Compare
Thanks! I'll do the review in September and come back to you! |
|
||
<config-description> | ||
<parameter name="ip" type="text" required="true"> | ||
<label>Internet Radio Address</label> |
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.
Remove the "Internet Radio" from all labels (config as well as channels), please - labels should be as short as possible.
@teichsta Thanks for testing :-) |
To be more precise: I will not change the HTTP client within the next days or even weeks, so I would suggest to finish this pull request and to open a new issue for switching to another HTTP client? |
Ok, I am fine with that. Would be great if you could find the time in the next months to work on the http client replacement though. |
FYI: The ESH transport bundle upnp imports packages of jupnp. The jupnp bundle itself imports a lot of the org.apache.http.* packages. So, we can get rid off it in the ESH bundles, but as long as jupnp using it, we cannot really get rid off (using e.g. the hue bundle will add it to the dependency chain). |
@maggu2810, the discussion here is about Apache Commons HTTP which is yet another lib than org.apache.http, so this does not make a difference here. |
641df39
to
dec35b8
Compare
This binding is based on openhab 1.x binding frontiersiliconradio and is migrated to the new ESH API, including device discovery. Bug: eclipse-archived#429 Signed-off-by: Patrick Koenemann <patrick.koenemann@itemis.de> Also-by: Rainer Ostendorf <github@linlab.de>
@kaikreuzer, there are now two volume items, one is the absolute 0..32 number item, the other is a percent item. I further created a new issue about the http client that is used in this binding: #682 |
<label>Preset</label> | ||
<description>Preset radio stations configured in the radio.</description> | ||
</channel-type> | ||
<channel-type id="volume-absolute"> |
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.
Could you define this channel type as "advanced=true"?
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.
Done.
dec35b8
to
4ad454d
Compare
This binding is based on openhab 1.x binding frontiersiliconradio and is migrated to the new ESH API, including device discovery. Bug: eclipse-archived#429 Signed-off-by: Patrick Koenemann <patrick.koenemann@itemis.de> Also-by: Rainer Ostendorf <github@linlab.de>
4ad454d
to
48da1fe
Compare
This binding is based on openhab 1.x binding frontiersiliconradio and is migrated to the new ESH API, including device discovery. Bug: eclipse-archived#429 Signed-off-by: Patrick Koenemann <patrick.koenemann@itemis.de> Also-by: Rainer Ostendorf <github@linlab.de>
Thanks a lot for the updates, @paphko. |
try { | ||
xml = getXmlDocFromString(requestResultString); | ||
} catch (Exception e) { | ||
logger.error("converting to XML failed: '" + requestResultString + "' with " + e.getClass().getName() + ": " |
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 should only be debugging or trace level - and the message prints out the full XML, which is potentially huge. So you might log the e.getMessage() as debug, but the requestResultString should definitely only be trace level.
This binding is based on openhab 1.x binding frontiersiliconradio and is migrated to the new ESH API, including device discovery. Bug: eclipse-archived#429 Signed-off-by: Patrick Koenemann <patrick.koenemann@itemis.de> Also-by: Rainer Ostendorf <github@linlab.de>
48da1fe
to
e16ab74
Compare
@kaikreuzer Done. |
Thanks! |
CQ has been approved for parallel IP checkin! |
This binding is based on openhab 1.x binding frontiersiliconradio and is
migrated to the new ESH API, including device discovery.