mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
[mybmw] Fix images not loading anymore (#16643)
* [mybmw] fix image not loading anymore Fixes #16642 Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
This commit is contained in:
parent
7f82032643
commit
995ea2dd35
@ -492,13 +492,9 @@ Image representation of the vehicle.
|
|||||||
| png | Image | Read | The image as png |
|
| png | Image | Read | The image as png |
|
||||||
| view | String | Write | The view port of the car |
|
| view | String | Write | The view port of the car |
|
||||||
|
|
||||||
Possible view ports:
|
Possible view ports (currently only one is available, which is automatically set as default):
|
||||||
|
|
||||||
- _VehicleStatus_ Front Left Side View
|
- _AngleSideViewForty_ Front Left Side View
|
||||||
- _FrontView_ Front View
|
|
||||||
- _FrontLeft_ Front Left Side View
|
|
||||||
- _FrontRight_ Front Right Side View
|
|
||||||
- _RearView_ Rear View
|
|
||||||
|
|
||||||
## Further Descriptions
|
## Further Descriptions
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
|||||||
public class ImageProperties {
|
public class ImageProperties {
|
||||||
public static final int RETRY_COUNTER = 5;
|
public static final int RETRY_COUNTER = 5;
|
||||||
public int failCounter = 0;
|
public int failCounter = 0;
|
||||||
public String viewport = "VehicleStatus";
|
public String viewport = "AngleSideViewForty"; // default view
|
||||||
|
|
||||||
public ImageProperties(String viewport) {
|
public ImageProperties(String viewport) {
|
||||||
this.viewport = viewport;
|
this.viewport = viewport;
|
||||||
|
@ -98,11 +98,7 @@ channel-type.mybmw.home-distance-channel.label = Distance From Home
|
|||||||
channel-type.mybmw.hood-channel.label = Hood
|
channel-type.mybmw.hood-channel.label = Hood
|
||||||
|
|
||||||
channel-type.mybmw.image-update-channel.label = Force update of the image
|
channel-type.mybmw.image-update-channel.label = Force update of the image
|
||||||
channel-type.mybmw.image-view-channel.command.option.FrontLeft = Left Side View
|
channel-type.mybmw.image-view-channel.command.option.AngleSideViewForty = Left Side View
|
||||||
channel-type.mybmw.image-view-channel.command.option.FrontRight = Right Side View
|
|
||||||
channel-type.mybmw.image-view-channel.command.option.FrontView = Front View
|
|
||||||
channel-type.mybmw.image-view-channel.command.option.RearView = Rear View
|
|
||||||
channel-type.mybmw.image-view-channel.command.option.VehicleStatus = Front Side View
|
|
||||||
channel-type.mybmw.image-view-channel.label = Image Viewport
|
channel-type.mybmw.image-view-channel.label = Image Viewport
|
||||||
channel-type.mybmw.last-fetched-channel.label = Last Openhab Update Timestamp
|
channel-type.mybmw.last-fetched-channel.label = Last Openhab Update Timestamp
|
||||||
channel-type.mybmw.last-update-channel.label = Last Car Status Timestamp
|
channel-type.mybmw.last-update-channel.label = Last Car Status Timestamp
|
||||||
|
@ -13,11 +13,7 @@
|
|||||||
<label>Image Viewport</label>
|
<label>Image Viewport</label>
|
||||||
<command>
|
<command>
|
||||||
<options>
|
<options>
|
||||||
<option value="VehicleStatus">Front Side View</option>
|
<option value="AngleSideViewForty">Left Side View</option>
|
||||||
<option value="FrontView">Front View</option>
|
|
||||||
<option value="FrontLeft">Left Side View</option>
|
|
||||||
<option value="FrontRight">Right Side View</option>
|
|
||||||
<option value="RearView">Rear View</option>
|
|
||||||
</options>
|
</options>
|
||||||
</command>
|
</command>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<property name="thingTypeVersion">2</property>
|
<property name="thingTypeVersion">3</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<representation-property>vin</representation-property>
|
<representation-property>vin</representation-property>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<property name="thingTypeVersion">2</property>
|
<property name="thingTypeVersion">3</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<representation-property>vin</representation-property>
|
<representation-property>vin</representation-property>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<property name="thingTypeVersion">2</property>
|
<property name="thingTypeVersion">3</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<representation-property>vin</representation-property>
|
<representation-property>vin</representation-property>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</channel-groups>
|
</channel-groups>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<property name="thingTypeVersion">2</property>
|
<property name="thingTypeVersion">3</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<representation-property>vin</representation-property>
|
<representation-property>vin</representation-property>
|
||||||
|
@ -44,6 +44,15 @@
|
|||||||
</add-channel>
|
</add-channel>
|
||||||
<!-- channels to be updated -->
|
<!-- channels to be updated -->
|
||||||
</instruction-set>
|
</instruction-set>
|
||||||
|
<instruction-set targetVersion="3">
|
||||||
|
<!-- channels to be removed -->
|
||||||
|
<!-- channels to be added -->
|
||||||
|
<!-- channels to be updated -->
|
||||||
|
<update-channel id="view" groupIds="image">
|
||||||
|
<type>mybmw:image-view-channel</type>
|
||||||
|
<label>Image Viewport</label>
|
||||||
|
</update-channel>
|
||||||
|
</instruction-set>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
<thing-type uid="mybmw:bev">
|
<thing-type uid="mybmw:bev">
|
||||||
<instruction-set targetVersion="1">
|
<instruction-set targetVersion="1">
|
||||||
@ -78,6 +87,15 @@
|
|||||||
</add-channel>
|
</add-channel>
|
||||||
<!-- channels to be updated -->
|
<!-- channels to be updated -->
|
||||||
</instruction-set>
|
</instruction-set>
|
||||||
|
<instruction-set targetVersion="3">
|
||||||
|
<!-- channels to be removed -->
|
||||||
|
<!-- channels to be added -->
|
||||||
|
<!-- channels to be updated -->
|
||||||
|
<update-channel id="view" groupIds="image">
|
||||||
|
<type>mybmw:image-view-channel</type>
|
||||||
|
<label>Image Viewport</label>
|
||||||
|
</update-channel>
|
||||||
|
</instruction-set>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
<thing-type uid="mybmw:conv">
|
<thing-type uid="mybmw:conv">
|
||||||
<instruction-set targetVersion="1">
|
<instruction-set targetVersion="1">
|
||||||
@ -110,6 +128,15 @@
|
|||||||
</add-channel>
|
</add-channel>
|
||||||
<!-- channels to be updated -->
|
<!-- channels to be updated -->
|
||||||
</instruction-set>
|
</instruction-set>
|
||||||
|
<instruction-set targetVersion="3">
|
||||||
|
<!-- channels to be removed -->
|
||||||
|
<!-- channels to be added -->
|
||||||
|
<!-- channels to be updated -->
|
||||||
|
<update-channel id="view" groupIds="image">
|
||||||
|
<type>mybmw:image-view-channel</type>
|
||||||
|
<label>Image Viewport</label>
|
||||||
|
</update-channel>
|
||||||
|
</instruction-set>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
<thing-type uid="mybmw:phev">
|
<thing-type uid="mybmw:phev">
|
||||||
<instruction-set targetVersion="1">
|
<instruction-set targetVersion="1">
|
||||||
@ -152,6 +179,15 @@
|
|||||||
</add-channel>
|
</add-channel>
|
||||||
<!-- channels to be updated -->
|
<!-- channels to be updated -->
|
||||||
</instruction-set>
|
</instruction-set>
|
||||||
|
<instruction-set targetVersion="3">
|
||||||
|
<!-- channels to be removed -->
|
||||||
|
<!-- channels to be added -->
|
||||||
|
<!-- channels to be updated -->
|
||||||
|
<update-channel id="view" groupIds="image">
|
||||||
|
<type>mybmw:image-view-channel</type>
|
||||||
|
<label>Image Viewport</label>
|
||||||
|
</update-channel>
|
||||||
|
</instruction-set>
|
||||||
</thing-type>
|
</thing-type>
|
||||||
|
|
||||||
</update:update-descriptions>
|
</update:update-descriptions>
|
||||||
|
Loading…
Reference in New Issue
Block a user