mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
Compare commits
1 Commits
0f2d30ba3c
...
c83cad4741
Author | SHA1 | Date | |
---|---|---|---|
|
c83cad4741 |
@ -365,19 +365,13 @@ public class SpeedtestHandler extends BaseThingHandler {
|
|||||||
isp = tmpCont.getIsp();
|
isp = tmpCont.getIsp();
|
||||||
interfaceInternalIp = tmpCont.getInterface().getInternalIp();
|
interfaceInternalIp = tmpCont.getInterface().getInternalIp();
|
||||||
interfaceExternalIp = tmpCont.getInterface().getExternalIp();
|
interfaceExternalIp = tmpCont.getInterface().getExternalIp();
|
||||||
if (tmpCont.getResult().isPersisted()) {
|
resultUrl = tmpCont.getResult().getUrl();
|
||||||
resultUrl = tmpCont.getResult().getUrl();
|
String url = String.valueOf(resultUrl) + ".png";
|
||||||
String url = String.valueOf(resultUrl) + ".png";
|
logger.debug("Downloading result image from: {}", url);
|
||||||
logger.debug("Downloading result image from: {}", url);
|
RawType image = HttpUtil.downloadImage(url);
|
||||||
RawType image = HttpUtil.downloadImage(url);
|
if (image != null) {
|
||||||
if (image != null) {
|
resultImage = image;
|
||||||
resultImage = image;
|
|
||||||
} else {
|
|
||||||
resultImage = UnDefType.NULL;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Result image not persisted");
|
|
||||||
resultUrl = "";
|
|
||||||
resultImage = UnDefType.NULL;
|
resultImage = UnDefType.NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,9 +263,6 @@ public class ResultContainer {
|
|||||||
@SerializedName("url")
|
@SerializedName("url")
|
||||||
@Expose
|
@Expose
|
||||||
private String url;
|
private String url;
|
||||||
@SerializedName("persisted")
|
|
||||||
@Expose
|
|
||||||
private boolean persisted;
|
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
@ -282,14 +279,6 @@ public class ResultContainer {
|
|||||||
public void setUrl(String url) {
|
public void setUrl(String url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPersisted() {
|
|
||||||
return persisted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPersisted(boolean persisted) {
|
|
||||||
this.persisted = persisted;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Server {
|
public class Server {
|
||||||
|
@ -1,18 +1,6 @@
|
|||||||
# Basic Profiles
|
# Basic Profiles
|
||||||
|
|
||||||
This bundle provides a list of useful Profiles:
|
This bundle provides a list of useful Profiles.
|
||||||
|
|
||||||
| Profile | Description |
|
|
||||||
| --------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
||||||
| [Generic Command Profile](#generic-command-profile) | Sends a Command towards the Item when an event is triggered |
|
|
||||||
| [Generic Toggle Switch Profile](#generic-toggle-switch-profile) | Toggles a Switch Item when an event is triggered |
|
|
||||||
| [Debounce (Counting) Profile](#debounce-counting-profile) | Counts and skip a number of State changes |
|
|
||||||
| [Debounce (Time) Profile](#debounce-time-profile) | Reduces the frequency of commands/state updates |
|
|
||||||
| [Invert / Negate Profile](#invert--negate-profile) | Inverts or negate a Command / State |
|
|
||||||
| [Round Profile](#round-profile) | Reduces the number of decimal places from input data |
|
|
||||||
| [Threshold Profile](#threshold-profile) | Translates numeric input data to `ON` or `OFF` based on a threshold value |
|
|
||||||
| [Time Range Command Profile](#time-range-command-profile) | An enhanced implementation of a follow profile which converts `OnOffType` to a `PercentType` |
|
|
||||||
| [State Filter Profile](#state-filter-profile) | Filters input data using arithmetic comparison conditions |
|
|
||||||
|
|
||||||
## Generic Command Profile
|
## Generic Command Profile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user