iobroker.anthbot 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/admin/anthbot.png +0 -0
- package/admin/i18n/de.json +5 -0
- package/admin/i18n/en.json +5 -0
- package/admin/i18n/es.json +5 -0
- package/admin/i18n/fr.json +5 -0
- package/admin/i18n/it.json +5 -0
- package/admin/i18n/nl.json +5 -0
- package/admin/i18n/pl.json +5 -0
- package/admin/i18n/pt.json +5 -0
- package/admin/i18n/ru.json +5 -0
- package/admin/i18n/uk.json +5 -0
- package/admin/i18n/zh-cn.json +5 -0
- package/admin/jsonConfig.json +74 -0
- package/io-package.json +107 -0
- package/lib/adapter-config.d.ts +19 -0
- package/lib/anthbotApi.js +885 -0
- package/main.js +765 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Robin Rainton <robin@rainton.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+

|
|
2
|
+
# ioBroker.anthbot
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/iobroker.anthbot)
|
|
5
|
+
[](https://www.npmjs.com/package/iobroker.anthbot)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
[](https://nodei.co/npm/iobroker.anthbot/)
|
|
10
|
+
|
|
11
|
+
**Tests:** 
|
|
12
|
+
|
|
13
|
+
## anthbot adapter for ioBroker
|
|
14
|
+
|
|
15
|
+
Connect with Anthbot devices such as their robot mowers.
|
|
16
|
+
|
|
17
|
+
## Changelog
|
|
18
|
+
<!--
|
|
19
|
+
Placeholder for the next version (at the beginning of the line):
|
|
20
|
+
### **WORK IN PROGRESS**
|
|
21
|
+
-->
|
|
22
|
+
### 0.0.2 (2026-04-25)
|
|
23
|
+
* (raintonr) initial release
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
MIT License
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2026 Robin Rainton <robin@rainton.com>
|
|
29
|
+
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
32
|
+
in the Software without restriction, including without limitation the rights
|
|
33
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
furnished to do so, subject to the following conditions:
|
|
36
|
+
|
|
37
|
+
The above copyright notice and this permission notice shall be included in all
|
|
38
|
+
copies or substantial portions of the Software.
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
+
SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "panel",
|
|
4
|
+
"items": {
|
|
5
|
+
"username": {
|
|
6
|
+
"type": "text",
|
|
7
|
+
"label": "Username",
|
|
8
|
+
"newLine": true,
|
|
9
|
+
"xs": 12,
|
|
10
|
+
"sm": 12,
|
|
11
|
+
"md": 12,
|
|
12
|
+
"lg": 9,
|
|
13
|
+
"xl": 6
|
|
14
|
+
},
|
|
15
|
+
"password": {
|
|
16
|
+
"type": "password",
|
|
17
|
+
"label": "Password",
|
|
18
|
+
"newLine": true,
|
|
19
|
+
"xs": 12,
|
|
20
|
+
"sm": 12,
|
|
21
|
+
"md": 12,
|
|
22
|
+
"lg": 9,
|
|
23
|
+
"xl": 6
|
|
24
|
+
},
|
|
25
|
+
"regionCode": {
|
|
26
|
+
"type": "select",
|
|
27
|
+
"label": "Region",
|
|
28
|
+
"newLine": true,
|
|
29
|
+
"options": [
|
|
30
|
+
{ "value": 61, "label": "Australia" },
|
|
31
|
+
{ "value": 43, "label": "Austria" },
|
|
32
|
+
{ "value": 32, "label": "Belgium" },
|
|
33
|
+
{ "value": 55, "label": "Brazil" },
|
|
34
|
+
{ "value": 1, "label": "United States / Canada" },
|
|
35
|
+
{ "value": 86, "label": "China" },
|
|
36
|
+
{ "value": 420, "label": "Czech Republic" },
|
|
37
|
+
{ "value": 45, "label": "Denmark" },
|
|
38
|
+
{ "value": 358, "label": "Finland" },
|
|
39
|
+
{ "value": 33, "label": "France" },
|
|
40
|
+
{ "value": 49, "label": "Germany" },
|
|
41
|
+
{ "value": 30, "label": "Greece" },
|
|
42
|
+
{ "value": 36, "label": "Hungary" },
|
|
43
|
+
{ "value": 91, "label": "India" },
|
|
44
|
+
{ "value": 353, "label": "Ireland" },
|
|
45
|
+
{ "value": 39, "label": "Italy" },
|
|
46
|
+
{ "value": 81, "label": "Japan" },
|
|
47
|
+
{ "value": 352, "label": "Luxembourg" },
|
|
48
|
+
{ "value": 52, "label": "Mexico" },
|
|
49
|
+
{ "value": 31, "label": "Netherlands" },
|
|
50
|
+
{ "value": 64, "label": "New Zealand" },
|
|
51
|
+
{ "value": 47, "label": "Norway" },
|
|
52
|
+
{ "value": 48, "label": "Poland" },
|
|
53
|
+
{ "value": 351, "label": "Portugal" },
|
|
54
|
+
{ "value": 40, "label": "Romania" },
|
|
55
|
+
{ "value": 65, "label": "Singapore" },
|
|
56
|
+
{ "value": 421, "label": "Slovakia" },
|
|
57
|
+
{ "value": 27, "label": "South Africa" },
|
|
58
|
+
{ "value": 82, "label": "South Korea" },
|
|
59
|
+
{ "value": 34, "label": "Spain" },
|
|
60
|
+
{ "value": 46, "label": "Sweden" },
|
|
61
|
+
{ "value": 41, "label": "Switzerland" },
|
|
62
|
+
{ "value": 90, "label": "Turkey" },
|
|
63
|
+
{ "value": 380, "label": "Ukraine" },
|
|
64
|
+
{ "value": 971, "label": "United Arab Emirates" },
|
|
65
|
+
{ "value": 44, "label": "United Kingdom" }
|
|
66
|
+
],
|
|
67
|
+
"xs": 12,
|
|
68
|
+
"sm": 12,
|
|
69
|
+
"md": 12,
|
|
70
|
+
"lg": 9,
|
|
71
|
+
"xl": 6
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
package/io-package.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"name": "anthbot",
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"news": {
|
|
6
|
+
"0.0.2": {
|
|
7
|
+
"en": "initial release",
|
|
8
|
+
"de": "Erstveröffentlichung",
|
|
9
|
+
"ru": "Начальная версия",
|
|
10
|
+
"pt": "lançamento inicial",
|
|
11
|
+
"nl": "Eerste uitgave",
|
|
12
|
+
"fr": "Première version",
|
|
13
|
+
"it": "Versione iniziale",
|
|
14
|
+
"es": "Versión inicial",
|
|
15
|
+
"pl": "Pierwsze wydanie",
|
|
16
|
+
"uk": "Початкова версія",
|
|
17
|
+
"zh-cn": "首次出版"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"titleLang": {
|
|
21
|
+
"en": "Anthbot",
|
|
22
|
+
"de": "Anthbot",
|
|
23
|
+
"ru": "Антбот",
|
|
24
|
+
"pt": "Antobô",
|
|
25
|
+
"nl": "Antbot",
|
|
26
|
+
"fr": "Anthbot",
|
|
27
|
+
"it": "Antbot",
|
|
28
|
+
"es": "Antbot",
|
|
29
|
+
"pl": "Anthbot",
|
|
30
|
+
"uk": "Anthbot",
|
|
31
|
+
"zh-cn": "蚂蚁机器人"
|
|
32
|
+
},
|
|
33
|
+
"desc": {
|
|
34
|
+
"en": "Connect with Anthbot devices such as their robot mowers",
|
|
35
|
+
"de": "Verbinden Sie sich mit Anthbot-Geräten wie den Mährobotern",
|
|
36
|
+
"ru": "Подключайтесь к устройствам Anthbot, например к их роботам-косилкам.",
|
|
37
|
+
"pt": "Conecte-se com dispositivos Anthbot, como seus robôs cortadores",
|
|
38
|
+
"nl": "Maak verbinding met Anthbot-apparaten zoals hun robotmaaiers",
|
|
39
|
+
"fr": "Connectez-vous aux appareils Anthbot tels que leurs robots tondeuses",
|
|
40
|
+
"it": "Connettiti con i dispositivi Anthbot come i robot rasaerba",
|
|
41
|
+
"es": "Conéctese con dispositivos Anthbot como sus robots cortacésped",
|
|
42
|
+
"pl": "Połącz się z urządzeniami Anthbot, takimi jak kosiarki automatyczne",
|
|
43
|
+
"uk": "Підключайтеся до пристроїв Anthbot, наприклад до їхніх роботів-косарок",
|
|
44
|
+
"zh-cn": "与 Anthbot 设备连接,例如机器人割草机"
|
|
45
|
+
},
|
|
46
|
+
"authors": [
|
|
47
|
+
"Robin Rainton <robin@rainton.com>"
|
|
48
|
+
],
|
|
49
|
+
"keywords": [
|
|
50
|
+
"robot",
|
|
51
|
+
"mower",
|
|
52
|
+
"IoT",
|
|
53
|
+
"Anthbot",
|
|
54
|
+
"lawn"
|
|
55
|
+
],
|
|
56
|
+
"licenseInformation": {
|
|
57
|
+
"type": "free",
|
|
58
|
+
"license": "MIT"
|
|
59
|
+
},
|
|
60
|
+
"platform": "Javascript/Node.js",
|
|
61
|
+
"icon": "anthbot.png",
|
|
62
|
+
"enabled": true,
|
|
63
|
+
"extIcon": "https://raw.githubusercontent.com/raintonr/ioBroker.anthbot/main/admin/anthbot.png",
|
|
64
|
+
"readme": "https://github.com/raintonr/ioBroker.anthbot/blob/main/README.md",
|
|
65
|
+
"loglevel": "info",
|
|
66
|
+
"tier": 3,
|
|
67
|
+
"mode": "daemon",
|
|
68
|
+
"type": "garden",
|
|
69
|
+
"compact": true,
|
|
70
|
+
"connectionType": "cloud",
|
|
71
|
+
"dataSource": "poll",
|
|
72
|
+
"adminUI": {
|
|
73
|
+
"config": "json"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": [
|
|
76
|
+
{
|
|
77
|
+
"js-controller": ">=6.0.11"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"globalDependencies": [
|
|
81
|
+
{
|
|
82
|
+
"admin": ">=7.0.23"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"native": {
|
|
87
|
+
"username": "",
|
|
88
|
+
"password": "",
|
|
89
|
+
"regionCode": null
|
|
90
|
+
},
|
|
91
|
+
"objects": [],
|
|
92
|
+
"instanceObjects": [
|
|
93
|
+
{
|
|
94
|
+
"_id": "info.connection",
|
|
95
|
+
"type": "state",
|
|
96
|
+
"common": {
|
|
97
|
+
"role": "indicator.connected",
|
|
98
|
+
"name": "Device is online",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"read": true,
|
|
101
|
+
"write": false,
|
|
102
|
+
"def": false
|
|
103
|
+
},
|
|
104
|
+
"native": {}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file extends the AdapterConfig type from "@iobroker/types"
|
|
2
|
+
// using the actual properties present in io-package.json
|
|
3
|
+
// in order to provide typings for adapter.config properties
|
|
4
|
+
|
|
5
|
+
import { native } from '../io-package.json';
|
|
6
|
+
|
|
7
|
+
type _AdapterConfig = typeof native;
|
|
8
|
+
|
|
9
|
+
// Augment the globally declared type ioBroker.AdapterConfig
|
|
10
|
+
declare global {
|
|
11
|
+
namespace ioBroker {
|
|
12
|
+
interface AdapterConfig extends _AdapterConfig {
|
|
13
|
+
// Do not enter anything here!
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// this is required so the above AdapterConfig is found by TypeScript / type checking
|
|
19
|
+
export {};
|