iobroker.absolutehumidity 0.0.1 → 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/README.md +2 -94
- package/io-package.json +120 -107
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
# ioBroker.absolutehumidity
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/iobroker.absolutehumidity)
|
|
@@ -14,104 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
build absolute humidity from actual temperature and relative humidity
|
|
16
16
|
|
|
17
|
-
## Developer manual
|
|
18
|
-
This section is intended for the developer. It can be deleted later.
|
|
19
|
-
|
|
20
|
-
### DISCLAIMER
|
|
21
|
-
|
|
22
|
-
Please make sure that you consider copyrights and trademarks when you use names or logos of a company and add a disclaimer to your README.
|
|
23
|
-
You can check other adapters for examples or ask in the developer community. Using a name or logo of a company without permission may cause legal problems for you.
|
|
24
|
-
|
|
25
|
-
### Getting started
|
|
26
|
-
|
|
27
|
-
You are almost done, only a few steps left:
|
|
28
|
-
1. Create a new repository on GitHub with the name `ioBroker.absolutehumidity`
|
|
29
|
-
1. Initialize the current folder as a new git repository:
|
|
30
|
-
```bash
|
|
31
|
-
git init -b main
|
|
32
|
-
git add .
|
|
33
|
-
git commit -m "Initial commit"
|
|
34
|
-
```
|
|
35
|
-
1. Link your local repository with the one on GitHub:
|
|
36
|
-
```bash
|
|
37
|
-
git remote add origin https://github.com/BenAhrdt/ioBroker.absolutehumidity
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
1. Push all files to the GitHub repo:
|
|
41
|
-
```bash
|
|
42
|
-
git push origin main
|
|
43
|
-
```
|
|
44
|
-
1. Add a new secret under https://github.com/BenAhrdt/ioBroker.absolutehumidity/settings/secrets. It must be named `AUTO_MERGE_TOKEN` and contain a personal access token with push access to the repository, e.g. yours. You can create a new token under https://github.com/settings/tokens.
|
|
45
|
-
|
|
46
|
-
1. Head over to [main.js](main.js) and start programming!
|
|
47
|
-
|
|
48
|
-
### Best Practices
|
|
49
|
-
We've collected some [best practices](https://github.com/ioBroker/ioBroker.repositories#development-and-coding-best-practices) regarding ioBroker development and coding in general. If you're new to ioBroker or Node.js, you should
|
|
50
|
-
check them out. If you're already experienced, you should also take a look at them - you might learn something new :)
|
|
51
|
-
|
|
52
|
-
### State Roles
|
|
53
|
-
When creating state objects, it is important to use the correct role for the state. The role defines how the state should be interpreted by visualizations and other adapters. For a list of available roles and their meanings, please refer to the [state roles documentation](https://www.iobroker.net/#en/documentation/dev/stateroles.md).
|
|
54
|
-
|
|
55
|
-
**Important:** Do not invent your own custom role names. If you need a role that is not part of the official list, please contact the ioBroker developer community for guidance and discussion about adding new roles.
|
|
56
|
-
|
|
57
|
-
### Scripts in `package.json`
|
|
58
|
-
Several npm scripts are predefined for your convenience. You can run them using `npm run <scriptname>`
|
|
59
|
-
| Script name | Description |
|
|
60
|
-
|-------------|-------------|
|
|
61
|
-
| `test:js` | Executes the tests you defined in `*.test.js` files. |
|
|
62
|
-
| `test:package` | Ensures your `package.json` and `io-package.json` are valid. |
|
|
63
|
-
| `test:integration` | Tests the adapter startup with an actual instance of ioBroker. |
|
|
64
|
-
| `test` | Performs a minimal test run on package files and your tests. |
|
|
65
|
-
| `check` | Performs a type-check on your code (without compiling anything). |
|
|
66
|
-
| `lint` | Runs `ESLint` to check your code for formatting errors and potential bugs. |
|
|
67
|
-
| `translate` | Translates texts in your adapter to all required languages, see [`@iobroker/adapter-dev`](https://github.com/ioBroker/adapter-dev#manage-translations) for more details. |
|
|
68
|
-
| `release` | Creates a new release, see [`@alcalzone/release-script`](https://github.com/AlCalzone/release-script#usage) for more details. |
|
|
69
|
-
|
|
70
|
-
### Writing tests
|
|
71
|
-
When done right, testing code is invaluable, because it gives you the
|
|
72
|
-
confidence to change your code while knowing exactly if and when
|
|
73
|
-
something breaks. A good read on the topic of test-driven development
|
|
74
|
-
is https://hackernoon.com/introduction-to-test-driven-development-tdd-61a13bc92d92.
|
|
75
|
-
Although writing tests before the code might seem strange at first, but it has very
|
|
76
|
-
clear upsides.
|
|
77
|
-
|
|
78
|
-
The template provides you with basic tests for the adapter startup and package files.
|
|
79
|
-
It is recommended that you add your own tests into the mix.
|
|
80
|
-
|
|
81
|
-
### Publishing the adapter
|
|
82
|
-
Using GitHub Actions, you can enable automatic releases on npm whenever you push a new git tag that matches the form
|
|
83
|
-
`v<major>.<minor>.<patch>`. We **strongly recommend** that you do. The necessary steps are described in `.github/workflows/test-and-release.yml`.
|
|
84
|
-
|
|
85
|
-
Since you installed the release script, you can create a new
|
|
86
|
-
release simply by calling:
|
|
87
|
-
```bash
|
|
88
|
-
npm run release
|
|
89
|
-
```
|
|
90
|
-
Additional command line options for the release script are explained in the
|
|
91
|
-
[release-script documentation](https://github.com/AlCalzone/release-script#command-line).
|
|
92
|
-
|
|
93
|
-
To get your adapter released in ioBroker, please refer to the documentation
|
|
94
|
-
of [ioBroker.repositories](https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-latest-repository).
|
|
95
|
-
|
|
96
|
-
### Test the adapter manually with dev-server
|
|
97
|
-
Since you set up `dev-server`, you can use it to run, test and debug your adapter.
|
|
98
|
-
|
|
99
|
-
You may start `dev-server` by calling from your dev directory:
|
|
100
|
-
```bash
|
|
101
|
-
dev-server watch
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
The ioBroker.admin interface will then be available at http://localhost:undefined/
|
|
105
|
-
|
|
106
|
-
Please refer to the [`dev-server` documentation](https://github.com/ioBroker/dev-server#command-line) for more details.
|
|
107
|
-
|
|
108
17
|
## Changelog
|
|
109
18
|
<!--
|
|
110
19
|
Placeholder for the next version (at the beginning of the line):
|
|
111
20
|
### **WORK IN PROGRESS**
|
|
112
21
|
-->
|
|
113
|
-
|
|
114
|
-
### **WORK IN PROGRESS**
|
|
22
|
+
### 0.0.2 (2026-07-05)
|
|
115
23
|
* (BenAhrdt) initial release
|
|
116
24
|
|
|
117
25
|
## License
|
package/io-package.json
CHANGED
|
@@ -1,109 +1,122 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
2
|
+
"common": {
|
|
3
|
+
"name": "absolutehumidity",
|
|
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 release",
|
|
12
|
+
"fr": "version initiale",
|
|
13
|
+
"it": "rilascio iniziale",
|
|
14
|
+
"es": "lanzamiento inicial",
|
|
15
|
+
"pl": "wydanie początkowe",
|
|
16
|
+
"uk": "початковий випуск",
|
|
17
|
+
"zh-cn": "初始版本"
|
|
18
|
+
},
|
|
19
|
+
"0.0.1": {
|
|
20
|
+
"en": "initial release",
|
|
21
|
+
"de": "Erstveröffentlichung",
|
|
22
|
+
"ru": "Начальная версия",
|
|
23
|
+
"pt": "lançamento inicial",
|
|
24
|
+
"nl": "Eerste uitgave",
|
|
25
|
+
"fr": "Première version",
|
|
26
|
+
"it": "Versione iniziale",
|
|
27
|
+
"es": "Versión inicial",
|
|
28
|
+
"pl": "Pierwsze wydanie",
|
|
29
|
+
"uk": "Початкова версія",
|
|
30
|
+
"zh-cn": "首次出版"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"titleLang": {
|
|
34
|
+
"en": "Absolute Humidity",
|
|
35
|
+
"de": "Absolute Luftfeuchtigkeit",
|
|
36
|
+
"ru": "Абсолютная влажность",
|
|
37
|
+
"pt": "Umidade Absoluta",
|
|
38
|
+
"nl": "Absolute vochtigheid",
|
|
39
|
+
"fr": "Humidité absolue",
|
|
40
|
+
"it": "Umidità assoluta",
|
|
41
|
+
"es": "Humedad absoluta",
|
|
42
|
+
"pl": "Wilgotność bezwzględna",
|
|
43
|
+
"uk": "Абсолютна вологість",
|
|
44
|
+
"zh-cn": "绝对湿度"
|
|
45
|
+
},
|
|
46
|
+
"desc": {
|
|
47
|
+
"en": "build absolute humidity from actual temperature and relative humidity",
|
|
48
|
+
"de": "Ermitteln Sie die absolute Luftfeuchtigkeit aus der tatsächlichen Temperatur und der relativen Luftfeuchtigkeit",
|
|
49
|
+
"ru": "построить абсолютную влажность на основе фактической температуры и относительной влажности",
|
|
50
|
+
"pt": "construir umidade absoluta a partir da temperatura real e umidade relativa",
|
|
51
|
+
"nl": "bouw de absolute vochtigheid op uit de werkelijke temperatuur en de relatieve vochtigheid",
|
|
52
|
+
"fr": "construire l'humidité absolue à partir de la température réelle et de l'humidité relative",
|
|
53
|
+
"it": "costruire l'umidità assoluta dalla temperatura effettiva e dall'umidità relativa",
|
|
54
|
+
"es": "construir humedad absoluta a partir de la temperatura real y la humedad relativa",
|
|
55
|
+
"pl": "zbuduj wilgotność bezwzględną na podstawie rzeczywistej temperatury i wilgotności względnej",
|
|
56
|
+
"uk": "побудувати абсолютну вологість з фактичної температури та відносної вологості",
|
|
57
|
+
"zh-cn": "根据实际温度和相对湿度建立绝对湿度"
|
|
58
|
+
},
|
|
59
|
+
"authors": [
|
|
60
|
+
"BenAhrdt <github@ben-schmidt.net>"
|
|
61
|
+
],
|
|
62
|
+
"keywords": [
|
|
63
|
+
"absolute Humidity",
|
|
64
|
+
"dewpoint temperature"
|
|
65
|
+
],
|
|
66
|
+
"licenseInformation": {
|
|
67
|
+
"type": "free",
|
|
68
|
+
"license": "MIT"
|
|
69
|
+
},
|
|
70
|
+
"platform": "Javascript/Node.js",
|
|
71
|
+
"icon": "absolutehumidity.svg",
|
|
72
|
+
"enabled": true,
|
|
73
|
+
"extIcon": "https://raw.githubusercontent.com/BenAhrdt/ioBroker.absolutehumidity/main/admin/absolutehumidity.svg",
|
|
74
|
+
"readme": "https://github.com/BenAhrdt/ioBroker.absolutehumidity/blob/main/README.md",
|
|
75
|
+
"loglevel": "info",
|
|
76
|
+
"tier": 3,
|
|
77
|
+
"mode": "daemon",
|
|
78
|
+
"type": "weather",
|
|
79
|
+
"compact": true,
|
|
80
|
+
"connectionType": "local",
|
|
81
|
+
"dataSource": "push",
|
|
82
|
+
"supportedMessages": {
|
|
83
|
+
"deviceManager": true
|
|
84
|
+
},
|
|
85
|
+
"adminUI": {
|
|
86
|
+
"config": "json",
|
|
87
|
+
"tab": "json"
|
|
88
|
+
},
|
|
89
|
+
"adminTab": {
|
|
90
|
+
"singleton": true,
|
|
91
|
+
"name": {
|
|
92
|
+
"en": "Absolute Humidity",
|
|
93
|
+
"de": "Absolute Luftfeuchtigkeit",
|
|
94
|
+
"ru": "Абсолютная влажность",
|
|
95
|
+
"pt": "Umidade Absoluta",
|
|
96
|
+
"nl": "Absolute vochtigheid",
|
|
97
|
+
"fr": "Humidité absolue",
|
|
98
|
+
"it": "Umidità assoluta",
|
|
99
|
+
"es": "Humedad absoluta",
|
|
100
|
+
"pl": "Wilgotność bezwzględna",
|
|
101
|
+
"uk": "Абсолютна вологість",
|
|
102
|
+
"zh-cn": "绝对湿度"
|
|
103
|
+
},
|
|
104
|
+
"link": "TabConfig.json"
|
|
105
|
+
},
|
|
106
|
+
"dependencies": [
|
|
107
|
+
{
|
|
108
|
+
"js-controller": ">=6.0.11"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"globalDependencies": [
|
|
112
|
+
{
|
|
113
|
+
"admin": ">=7.0.23"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"native": {
|
|
118
|
+
"devices": []
|
|
119
|
+
},
|
|
120
|
+
"objects": [],
|
|
121
|
+
"instanceObjects": []
|
|
109
122
|
}
|