Skip to content

Commit

Permalink
typos: success, successful (openhab#13997)
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Uhrin <[email protected]>
  • Loading branch information
dilyanpalauzov authored and andrasU committed Dec 24, 2022
1 parent f8bd574 commit 2cc0f7f
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ private boolean bgStartScanning(boolean active, int interval, int window) {
.withMode(GapDiscoverMode.GAP_DISCOVER_OBSERVATION).build();
if (sendCommand(discoverCommand, BlueGigaDiscoverResponse.class, false)
.getResult() == BgApiResponse.SUCCESS) {
logger.debug("{} scanning succesfully started.", active ? "Active" : "Passive");
logger.debug("{} scanning successfully started.", active ? "Active" : "Passive");
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void startUpdateJob() {
logger.debug("Starting Etherrain Update Job");
this.updateJob = scheduler.scheduleWithFixedDelay(this::updateBridge, 0, config.refresh, TimeUnit.SECONDS);

logger.debug("EtherRain sucessfully initialized. Starting status poll at: {}", config.refresh);
logger.debug("EtherRain successfully initialized. Starting status poll at: {}", config.refresh);
}

private void stopUpdateJob() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void bindWithDevice(DatagramSocket clientSocket) throws GreeException {
resp.decryptedPack = GreeCryptoUtil.decryptPack(GreeCryptoUtil.getAESGeneralKeyByteArray(), resp.pack);
resp.packJson = gson.fromJson(resp.decryptedPack, GreeBindResponsePackDTO.class);

// Now set the key and flag to indicate the bind was succesful
// Now set the key and flag to indicate the bind was successful
encKey = resp.packJson.key;

// save the outcome
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
if (requestUrl.startsWith("/param.cgi?cmd=setasaction&-server=1&enable=1")
&& content.contains("response=\"200\";")) {// new
ipCameraHandler.newInstarApi = true;
ipCameraHandler.logger.debug("Alarm server sucessfully setup for a 2k+ Instar camera");
ipCameraHandler.logger.debug("Alarm server successfully setup for a 2k+ Instar camera");
if (ipCameraHandler.cameraConfig.getFfmpegInput().isEmpty()) {
ipCameraHandler.rtspUri = "rtsp://" + ipCameraHandler.cameraConfig.getIp()
+ "/livestream/12";
Expand All @@ -150,7 +150,7 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
} else if (requestUrl.startsWith("/param.cgi?cmd=setmdalarm&-aname=server2&-switch=on&-interval=1")
&& content.startsWith("[Succeed]set ok")) {
ipCameraHandler.newInstarApi = false;
ipCameraHandler.logger.debug("Alarm server sucessfully setup for a 1080p Instar camera");
ipCameraHandler.logger.debug("Alarm server successfully setup for a 1080p Instar camera");
} else {
ipCameraHandler.logger.debug("Unknown reply from URI:{}", requestUrl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public JsonObject postApiCommand(ApiCommand cmd, @Nullable String token, Map<Str
ContentResponse response = request.send();
if (response.getStatus() != HttpStatus.OK_200) {
throw new JuiceNetApiException(
cmd.command + "from JuiceNet API unsucessful, please check configuation. (HTTP code :"
cmd.command + "from JuiceNet API unsuccessful, please check configuation. (HTTP code :"
+ response.getStatus() + ").");
}

Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.loxone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The binding supports the following authentication methods, which are selected au

For the token-based authentication, the password is required only for the first login and acquiring the token. After the token is acquired, the password is cleared in the binding configuration.

The acquired token will remain active for several weeks following the last succesful authentication with this token. If the connection is not established used during that period and the token expires, a user password has to be re-entered in the binding settings to acquire a new token.
The acquired token will remain active for several weeks following the last successful authentication with this token. If the connection is not established used during that period and the token expires, a user password has to be re-entered in the binding settings to acquire a new token.

In case a websocket connection to the Miniserver remains active for the whole duration of the token's life span, the binding will refresh the token one day before token expiration, without the need of providing the password.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ private void processResponse(String message) {
* This method sends a request to receive Miniserver configuration.
*/
private void authenticated() {
logger.debug("[{}] Websocket authentication successfull.", debugId);
logger.debug("[{}] Websocket authentication successful.", debugId);
webSocketLock.lock();
try {
awaitingConfiguration = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private String extractServiceToken(URI uri) {
logger.trace("Cookie :{} --> {}", cookie.getName(), cookie.getValue());
if (cookie.getName().contentEquals("serviceToken")) {
serviceToken = cookie.getValue();
logger.debug("Xiaomi cloud logon succesfull.");
logger.debug("Xiaomi cloud logon successful.");
logger.trace("Xiaomi cloud servicetoken: {}", serviceToken);
}
}
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.ojelectronics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ There are two things:

## Discovery

After the ojcloud bridge is succesfully initialized all thermostats will be discovered.
After the ojcloud bridge is successfully initialized all thermostats will be discovered.

### OJ Electronics Bridge configuration (ojcloud)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private void refresh() {
try {
owHandler.updateSensorProperties(this);
owHandler.initialize();
logger.debug("{} sucessfully updated properties, removing from property update list",
logger.debug("{} successfully updated properties, removing from property update list",
updateThing.getUID());
} catch (OwException e) {
thingPropertiesUpdateQueue.add(updateThing);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void tearDown() {
}

@Test
public void successfullConnectionReportedToBridgeHandler() {
public void successfulConnectionReportedToBridgeHandler() {
final OwserverConnection owserverConnection = this.owserverConnection;
if (owserverConnection == null) {
fail("connection is null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public class TankerkoenigBindingConstants {
public static final String CONFIG_REFRESH = "refresh";
public static final String CONFIG_MODE_OPENINGTIME = "modeOpeningTime";

// String used Identify unsucessful web-return
// String used Identify unsuccessful web-return
public static final String NO_VALID_RESPONSE = "No valid response from the web-request!";
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ protected void handleSuccessResponse(String responseBody) {
JsonObject jsnResult = getJsonFromResponse(responseBody);
Integer errorCode = jsonObjectToInt(jsnResult, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode != 0) {
logger.debug("({}) set deviceInfo not succesfull: {}", uid, jsnResult);
logger.debug("({}) set deviceInfo not successful: {}", uid, jsnResult);
this.device.handleConnectionState();
}
this.device.responsePasstrough(responseBody);
Expand Down Expand Up @@ -341,7 +341,7 @@ private JsonObject getJsonFromResponse(String responseBody) {
jsonObject = gson.fromJson(responseBody, JsonObject.class);
logger.trace("({}) received result: {}", uid, responseBody);
if (jsonObject != null) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
if (jsonObject.has("result")) {
return jsonObject.getAsJsonObject("result");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private String getTokenFromResponse(@Nullable ContentResponse response) {
if (jsonObject != null) {
Integer errorCode = jsonObjectToInt(jsonObject, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode == 0) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
result = jsonObjectToString(jsonObject.getAsJsonObject("result"), "token");
} else {
/* return errorcode from device */
Expand Down Expand Up @@ -344,7 +344,7 @@ public void onComplete(Result result) {
logger.debug("({}) sendAsyncRequest response error'{}'", uid, response.getStatus());
handleError(new TapoErrorHandler(ERR_HTTP_RESPONSE, getContentAsString()));
} else {
/* request succesfull */
/* request successful */
String rBody = getContentAsString();
logger.trace("({}) receivedRespose '{}'", uid, rBody);
if (!hasErrorCode(rBody)) {
Expand Down
12 changes: 6 additions & 6 deletions bundles/org.openhab.binding.velux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ The method is called with the following syntax `moveMainAndVane(thingName, mainP
The meaning of the arguments is described in the table below.
The method returns a `Boolean` whose meaning is also described in the table below.

| Argument | Type | Example | Description |
|-------------|---------|-------------------------------------|-----------------------------------------------------------------------------------------|
| thingName | String | "velux:rollershutter:hubid:thingid" | The thing name of the shutter. Must be a valid configured thing in the hub. |
| mainPercent | Integer | 75 | The target main position in percent. Integer between 0 and 100. |
| vanePercent | Integer | 25 | The target vane position in percent. Integer between 0 and 100. |
| return | Boolean | `true` | Is `true` if the command was sent sucessfully or `false` if any arguments were invalid. |
| Argument | Type | Example | Description |
|-------------|---------|-------------------------------------|------------------------------------------------------------------------------------------|
| thingName | String | "velux:rollershutter:hubid:thingid" | The thing name of the shutter. Must be a valid configured thing in the hub. |
| mainPercent | Integer | 75 | The target main position in percent. Integer between 0 and 100. |
| vanePercent | Integer | 25 | The target vane position in percent. Integer between 0 and 100. |
| return | Boolean | `true` | Is `true` if the command was sent successfully or `false` if any arguments were invalid. |

Example:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ public boolean rebootBridge() {
// background execution of reboot process
submitCommunicationsJob(() -> {
if (thisBridge.bridgeCommunicate(bcp)) {
logger.info("Reboot command {}sucessfully sent to {}", bcp.isCommunicationSuccessful() ? "" : "un",
logger.info("Reboot command {}successfully sent to {}", bcp.isCommunicationSuccessful() ? "" : "un",
getThing().getUID());
}
});
Expand Down Expand Up @@ -900,7 +900,7 @@ public boolean moveRelative(int nodeId, int relativePercent) {
relativePercent > 0 ? PositionType.OFFSET_POSITIVE : PositionType.OFFSET_NEGATIVE),
null);
if (thisBridge.bridgeCommunicate(bcp)) {
logger.trace("moveRelative() command {}sucessfully sent to {}",
logger.trace("moveRelative() command {}successfully sent to {}",
bcp.isCommunicationSuccessful() ? "" : "un", getThing().getUID());
}
}
Expand Down Expand Up @@ -970,7 +970,7 @@ public Boolean moveMainAndVane(ProductBridgeIndex node, PercentType mainPosition
bcp.setNodeIdAndParameters(node.toInt(), mainPos, functionalParameters);
submitCommunicationsJob(() -> {
if (thisBridge.bridgeCommunicate(bcp)) {
logger.trace("moveMainAndVane() command {}sucessfully sent to {}",
logger.trace("moveMainAndVane() command {}successfully sent to {}",
bcp.isCommunicationSuccessful() ? "" : "un", getThing().getUID());
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void handeAutoRelockResult(String url, String data, BigDecimal installat
if (session != null) {
int httpResultCode = session.sendCommand(url, data, installationId);
if (httpResultCode == HttpStatus.OK_200) {
logger.debug("AutoRelock sucessfully changed to {}", command.toString());
logger.debug("AutoRelock successfully changed to {}", command.toString());
} else {
logger.warn("Failed to send command, HTTP result code {}", httpResultCode);
}
Expand Down Expand Up @@ -223,7 +223,7 @@ private void handleSmartLockVolumeAndVoiceLevel(Command command, boolean setVolu
logger.debug("Trying to set SmartLock volume with URL {} and data {}", url, data);
int httpResultCode = session.sendCommand(url, data, installationId);
if (httpResultCode == HttpStatus.OK_200) {
logger.debug("SmartLock volume sucessfully changed!");
logger.debug("SmartLock volume successfully changed!");
} else {
logger.warn("Failed to send command, HTTP result code {}", httpResultCode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private CompletableFuture<Void> waitForTableToBeActive() {
.thenAcceptAsync(tableWaitResponse -> {
// if waiter fails, the future is completed exceptionally (not entering this step)
ResponseOrException<DescribeTableResponse> responseOrException = tableWaitResponse.matched();
logger.trace("PutItem: Table wait completed sucessfully with {} attempts: {}",
logger.trace("PutItem: Table wait completed successfully with {} attempts: {}",
tableWaitResponse.attemptsExecuted(), toString(responseOrException));
}, executor);
}
Expand Down

0 comments on commit 2cc0f7f

Please sign in to comment.