iobroker.boschindego
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"common": { | ||
"name": "boschindego", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"news": { | ||
"0.1.0": { | ||
"0.1.1": { | ||
"en": "initial release", | ||
@@ -8,0 +8,0 @@ "de": "erstausstrahlung", |
40
main.js
@@ -83,2 +83,6 @@ 'use strict'; | ||
} | ||
if (this.config.interval > 2147483647) { | ||
this.log.info('Set interval to maximum 2147483647'); | ||
this.config.interval = 2147483647; | ||
} | ||
if (!this.config.username || !this.config.password) { | ||
@@ -147,2 +151,5 @@ this.log.error('Please set username and password in the instance settings'); | ||
if (!loginForm) { | ||
return; | ||
} | ||
const singleIdUrl = await this.requestClient({ | ||
@@ -442,2 +449,22 @@ method: 'get', | ||
}, | ||
{ | ||
path: 'predictive', | ||
url: 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/$id/predictive', | ||
desc: 'Predictive', | ||
}, | ||
{ | ||
path: 'operatingData', | ||
url: 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/$id/operatingData', | ||
desc: 'Operating Data', | ||
}, | ||
{ | ||
path: 'lastcutting', | ||
url: 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/$id/predictive/lastcutting', | ||
desc: 'Last Cutting', | ||
}, | ||
{ | ||
path: 'nextcutting', | ||
url: 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/$id/predictive/nextcutting', | ||
desc: 'Next Cutting', | ||
}, | ||
]; | ||
@@ -484,3 +511,3 @@ | ||
} | ||
const data = res.data; | ||
let data = res.data; | ||
@@ -495,2 +522,5 @@ const forceIndex = true; | ||
} | ||
if (element.path === 'map') { | ||
data = this.addLocationtoMap(this.lastState[id], data); | ||
} | ||
this.json2iob.parse(id + '.' + element.path, data, { | ||
@@ -540,2 +570,10 @@ forceIndex: forceIndex, | ||
} | ||
addLocationtoMap(state, map) { | ||
map = map.substr(0, map.length - 6); // remove </svg> | ||
map = | ||
map + | ||
`<circle cx="${state.svg_xPos}" cy="${state.svg_yPos}" r="20" stroke="black" stroke-width="3" fill="yellow" /></svg>`; | ||
map = map.replace('ry="0" fill="#FAFAFA"', 'ry="0" fill="#000" fill-opacity="0.0"'); | ||
return map; | ||
} | ||
@@ -542,0 +580,0 @@ async refreshToken() { |
{ | ||
"name": "iobroker.boschindego", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Adapter for Bosch Indego Mower", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -13,6 +13,7 @@ ![Logo](admin/boschindego.png) | ||
**Tests:** ![Test and Release](https://github.com/iobroker-community-adapters/ioBroker.boschindego/workflows/Test%20and%20Release/badge.svg) | ||
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0. | ||
## boschindego adapter for ioBroker | ||
Adapter for Bosch Indego Mower | ||
Adapter for Bosch Indego Mower to show the state of the mower and control the mower. | ||
@@ -30,3 +31,3 @@ ## Usage | ||
### 0.1.0 (2023-11-11) | ||
### 0.1.1 (2023-11-11) | ||
@@ -33,0 +34,0 @@ - (TA2k) initial release |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101670
805
57