iobroker.weather-warnings 0.2.1-alpha.0
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 +130 -0
- package/admin/i18n/de/translations.json +15 -0
- package/admin/i18n/en/translations.json +15 -0
- package/admin/i18n/es/translations.json +15 -0
- package/admin/i18n/fr/translations.json +15 -0
- package/admin/i18n/it/translations.json +15 -0
- package/admin/i18n/nl/translations.json +15 -0
- package/admin/i18n/pl/translations.json +15 -0
- package/admin/i18n/pt/translations.json +15 -0
- package/admin/i18n/ru/translations.json +15 -0
- package/admin/i18n/uk/translations.json +15 -0
- package/admin/i18n/zh-cn/translations.json +15 -0
- package/admin/jsonConfig.json +186 -0
- package/admin/weather-warnings.png +0 -0
- package/admin/words.js +24 -0
- package/build/lib/def/definitionen.js +1610 -0
- package/build/lib/def/definitionen.js.map +7 -0
- package/build/lib/def/dwdWarncellIdLong.js +11857 -0
- package/build/lib/def/dwdWarncellIdLong.js.map +7 -0
- package/build/lib/def/messages-def.js +76 -0
- package/build/lib/def/messages-def.js.map +7 -0
- package/build/lib/def/provider-def.js +17 -0
- package/build/lib/def/provider-def.js.map +7 -0
- package/build/lib/library.js +324 -0
- package/build/lib/library.js.map +7 -0
- package/build/lib/messages.js +340 -0
- package/build/lib/messages.js.map +7 -0
- package/build/lib/provider.js +405 -0
- package/build/lib/provider.js.map +7 -0
- package/build/lib/test-warnings.js +375 -0
- package/build/lib/test-warnings.js.map +7 -0
- package/build/main.js +184 -0
- package/build/main.js.map +7 -0
- package/io-package.json +108 -0
- package/package.json +115 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 ticaki <github@renopoint.de>
|
|
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,130 @@
|
|
|
1
|
+

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

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
[](https://nodei.co/npm/iobroker.weather-warnings/)
|
|
10
|
+
|
|
11
|
+
**Tests:** 
|
|
12
|
+
|
|
13
|
+
## weather-warnings adapter for ioBroker
|
|
14
|
+
|
|
15
|
+
Describe your project here
|
|
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.weather-warnings`
|
|
29
|
+
|
|
30
|
+
1. Push all files to the GitHub repo. The creator has already set up the local repository for you:
|
|
31
|
+
```bash
|
|
32
|
+
git push origin main
|
|
33
|
+
```
|
|
34
|
+
1. Add a new secret under https://github.com/ticaki/ioBroker.weather-warnings/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.
|
|
35
|
+
|
|
36
|
+
1. Head over to [src/main.ts](src/main.ts) and start programming!
|
|
37
|
+
|
|
38
|
+
### Best Practices
|
|
39
|
+
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
|
|
40
|
+
check them out. If you're already experienced, you should also take a look at them - you might learn something new :)
|
|
41
|
+
|
|
42
|
+
### Scripts in `package.json`
|
|
43
|
+
Several npm scripts are predefined for your convenience. You can run them using `npm run <scriptname>`
|
|
44
|
+
| Script name | Description |
|
|
45
|
+
|-------------|-------------|
|
|
46
|
+
| `build` | Compile the TypeScript sources. |
|
|
47
|
+
| `watch` | Compile the TypeScript sources and watch for changes. |
|
|
48
|
+
| `test:ts` | Executes the tests you defined in `*.test.ts` files. |
|
|
49
|
+
| `test:package` | Ensures your `package.json` and `io-package.json` are valid. |
|
|
50
|
+
| `test:integration` | Tests the adapter startup with an actual instance of ioBroker. |
|
|
51
|
+
| `test` | Performs a minimal test run on package files and your tests. |
|
|
52
|
+
| `check` | Performs a type-check on your code (without compiling anything). |
|
|
53
|
+
| `coverage` | Generates code coverage using your test files. |
|
|
54
|
+
| `lint` | Runs `ESLint` to check your code for formatting errors and potential bugs. |
|
|
55
|
+
| `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. |
|
|
56
|
+
| `release` | Creates a new release, see [`@alcalzone/release-script`](https://github.com/AlCalzone/release-script#usage) for more details. |
|
|
57
|
+
|
|
58
|
+
### Configuring the compilation
|
|
59
|
+
The adapter template uses [esbuild](https://esbuild.github.io/) to compile TypeScript and/or React code. You can configure many compilation settings
|
|
60
|
+
either in `tsconfig.json` or by changing options for the build tasks. These options are described in detail in the
|
|
61
|
+
[`@iobroker/adapter-dev` documentation](https://github.com/ioBroker/adapter-dev#compile-adapter-files).
|
|
62
|
+
|
|
63
|
+
### Writing tests
|
|
64
|
+
When done right, testing code is invaluable, because it gives you the
|
|
65
|
+
confidence to change your code while knowing exactly if and when
|
|
66
|
+
something breaks. A good read on the topic of test-driven development
|
|
67
|
+
is https://hackernoon.com/introduction-to-test-driven-development-tdd-61a13bc92d92.
|
|
68
|
+
Although writing tests before the code might seem strange at first, but it has very
|
|
69
|
+
clear upsides.
|
|
70
|
+
|
|
71
|
+
The template provides you with basic tests for the adapter startup and package files.
|
|
72
|
+
It is recommended that you add your own tests into the mix.
|
|
73
|
+
|
|
74
|
+
### Publishing the adapter
|
|
75
|
+
Using GitHub Actions, you can enable automatic releases on npm whenever you push a new git tag that matches the form
|
|
76
|
+
`v<major>.<minor>.<patch>`. We **strongly recommend** that you do. The necessary steps are described in `.github/workflows/test-and-release.yml`.
|
|
77
|
+
|
|
78
|
+
Since you installed the release script, you can create a new
|
|
79
|
+
release simply by calling:
|
|
80
|
+
```bash
|
|
81
|
+
npm run release
|
|
82
|
+
```
|
|
83
|
+
Additional command line options for the release script are explained in the
|
|
84
|
+
[release-script documentation](https://github.com/AlCalzone/release-script#command-line).
|
|
85
|
+
|
|
86
|
+
To get your adapter released in ioBroker, please refer to the documentation
|
|
87
|
+
of [ioBroker.repositories](https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-latest-repository).
|
|
88
|
+
|
|
89
|
+
### Test the adapter manually with dev-server
|
|
90
|
+
Since you set up `dev-server`, you can use it to run, test and debug your adapter.
|
|
91
|
+
|
|
92
|
+
You may start `dev-server` by calling from your dev directory:
|
|
93
|
+
```bash
|
|
94
|
+
dev-server watch
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The ioBroker.admin interface will then be available at http://localhost:8081/
|
|
98
|
+
|
|
99
|
+
Please refer to the [`dev-server` documentation](https://github.com/ioBroker/dev-server#command-line) for more details.
|
|
100
|
+
|
|
101
|
+
## Changelog
|
|
102
|
+
<!--
|
|
103
|
+
Placeholder for the next version (at the beginning of the line):
|
|
104
|
+
### **WORK IN PROGRESS**
|
|
105
|
+
-->
|
|
106
|
+
### 0.2.1-alpha.0 (2023-09-25)
|
|
107
|
+
* (ticaki) initial release
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
MIT License
|
|
111
|
+
|
|
112
|
+
Copyright (c) 2023 ticaki <github@renopoint.de>
|
|
113
|
+
|
|
114
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
115
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
116
|
+
in the Software without restriction, including without limitation the rights
|
|
117
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
118
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
119
|
+
furnished to do so, subject to the following conditions:
|
|
120
|
+
|
|
121
|
+
The above copyright notice and this permission notice shall be included in all
|
|
122
|
+
copies or substantial portions of the Software.
|
|
123
|
+
|
|
124
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
126
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
127
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
128
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
129
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
130
|
+
SOFTWARE.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Testen",
|
|
3
|
+
"dwdEnabled": "DWD aktivieren",
|
|
4
|
+
"dwdSelectId": "Auswahl der DWD-Bezirks-/Stadt-ID",
|
|
5
|
+
"dwdSelectShowName": "DWD-Bezirks-/Stadt-ID-Name",
|
|
6
|
+
"option1": "Option 1",
|
|
7
|
+
"option2": "Option 2",
|
|
8
|
+
"refreshTime": "Aktualisierungsintervall für alle Anbieter. (in Minuten)",
|
|
9
|
+
"templateKey": "Eindeutige Kennung",
|
|
10
|
+
"useTestWarnings": "Testwarnungen aktivieren",
|
|
11
|
+
"uwzEnabled": "UWZ aktivieren",
|
|
12
|
+
"uwzSelectDescription": "UWZ-ID, diese besteht aus Ländercode und Postleitzahl (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Adaptereinstellungen für weather-warnings",
|
|
14
|
+
"zamgEnabled": "ZAMG aktivieren"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Testing",
|
|
3
|
+
"dwdEnabled": "Activate DWD",
|
|
4
|
+
"dwdSelectId": "DWD District/City ID selection",
|
|
5
|
+
"dwdSelectShowName": "DWD District/City ID Name",
|
|
6
|
+
"option1": "",
|
|
7
|
+
"option2": "option2",
|
|
8
|
+
"refreshTime": "Update interval for all providers. (in minutes)",
|
|
9
|
+
"templateKey": "Unique Identifier",
|
|
10
|
+
"useTestWarnings": "Activate Testwarnings! Adapter goes offline ",
|
|
11
|
+
"uwzEnabled": "Activate UWZ",
|
|
12
|
+
"uwzSelectDescription": "UWZ ID this consists of country code and postcode (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Adapter settings for weather-warnings",
|
|
14
|
+
"zamgEnabled": "Activate ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Pruebas",
|
|
3
|
+
"dwdEnabled": "Activar DWD",
|
|
4
|
+
"dwdSelectId": "Selección de identificación de distrito/ciudad de DWD",
|
|
5
|
+
"dwdSelectShowName": "Nombre de identificación del distrito/ciudad del DWD",
|
|
6
|
+
"option1": "Opción 1",
|
|
7
|
+
"option2": "opcion 2",
|
|
8
|
+
"refreshTime": "Intervalo de actualización para todos los proveedores. (en minutos)",
|
|
9
|
+
"templateKey": "Identificador único",
|
|
10
|
+
"useTestWarnings": "Activar advertencias de prueba",
|
|
11
|
+
"uwzEnabled": "Activar UWZ",
|
|
12
|
+
"uwzSelectDescription": "ID UWZ que consta del código de país y el código postal (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Ajustes del adaptador para weather-warnings",
|
|
14
|
+
"zamgEnabled": "Activar ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Essai",
|
|
3
|
+
"dwdEnabled": "Activer DWD",
|
|
4
|
+
"dwdSelectId": "Sélection de l'ID du district/ville DWD",
|
|
5
|
+
"dwdSelectShowName": "Nom du district/ville du DWD",
|
|
6
|
+
"option1": "Option 1",
|
|
7
|
+
"option2": "Option 2",
|
|
8
|
+
"refreshTime": "Intervalle de mise à jour pour tous les fournisseurs. (en minutes)",
|
|
9
|
+
"templateKey": "Identifiant unique",
|
|
10
|
+
"useTestWarnings": "Activer les avertissements de test",
|
|
11
|
+
"uwzEnabled": "Activer l'UWZ",
|
|
12
|
+
"uwzSelectDescription": "ID UWZ composé du code du pays et du code postal (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Paramètres d'adaptateur pour weather-warnings",
|
|
14
|
+
"zamgEnabled": "Activer ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Test",
|
|
3
|
+
"dwdEnabled": "Attiva DWD",
|
|
4
|
+
"dwdSelectId": "Selezione ID distretto/città DWD",
|
|
5
|
+
"dwdSelectShowName": "Nome ID distretto/città DWD",
|
|
6
|
+
"option1": "opzione 1",
|
|
7
|
+
"option2": "opzione 2",
|
|
8
|
+
"refreshTime": "Intervallo di aggiornamento per tutti i provider. (in minuti)",
|
|
9
|
+
"templateKey": "Identificativo unico",
|
|
10
|
+
"useTestWarnings": "Attiva gli avvisi di prova",
|
|
11
|
+
"uwzEnabled": "Attiva UWZ",
|
|
12
|
+
"uwzSelectDescription": "ID UWZ composto dal codice paese e dal codice postale (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Impostazioni dell'adattatore per weather-warnings",
|
|
14
|
+
"zamgEnabled": "Attiva ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Testen",
|
|
3
|
+
"dwdEnabled": "Activeer DWD",
|
|
4
|
+
"dwdSelectId": "DWD District/Stads-ID selectie",
|
|
5
|
+
"dwdSelectShowName": "DWD District/Stad ID-naam",
|
|
6
|
+
"option1": "Optie 1",
|
|
7
|
+
"option2": "Optie 2",
|
|
8
|
+
"refreshTime": "Update-interval voor alle providers. (in minuten)",
|
|
9
|
+
"templateKey": "Unieke identificatie",
|
|
10
|
+
"useTestWarnings": "Activeer Testwaarschuwingen",
|
|
11
|
+
"uwzEnabled": "Activeer UWZ",
|
|
12
|
+
"uwzSelectDescription": "UWZ ID dit bestaat uit landcode en postcode (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Adapterinstellingen voor weather-warnings",
|
|
14
|
+
"zamgEnabled": "Activeer ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Testowanie",
|
|
3
|
+
"dwdEnabled": "Aktywuj DWD",
|
|
4
|
+
"dwdSelectId": "Wybór identyfikatora dzielnicy/miasta DWD",
|
|
5
|
+
"dwdSelectShowName": "Nazwa identyfikacyjna dystryktu/miasta DWD",
|
|
6
|
+
"option1": "opcja 1",
|
|
7
|
+
"option2": "Opcja 2",
|
|
8
|
+
"refreshTime": "Częstotliwość aktualizacji dla wszystkich dostawców. (w minutach)",
|
|
9
|
+
"templateKey": "Unikalny identyfikator",
|
|
10
|
+
"useTestWarnings": "Aktywuj ostrzeżenia testowe",
|
|
11
|
+
"uwzEnabled": "Aktywuj UWZ",
|
|
12
|
+
"uwzSelectDescription": "Identyfikator UWZ składa się z kodu kraju i kodu pocztowego (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Ustawienia adaptera dla weather-warnings",
|
|
14
|
+
"zamgEnabled": "Aktywuj ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Teste",
|
|
3
|
+
"dwdEnabled": "Ativar DWD",
|
|
4
|
+
"dwdSelectId": "Seleção de ID de distrito/cidade DWD",
|
|
5
|
+
"dwdSelectShowName": "Nome do ID do distrito/cidade DWD",
|
|
6
|
+
"option1": "Opção 1",
|
|
7
|
+
"option2": "opção 2",
|
|
8
|
+
"refreshTime": "Intervalo de atualização para todos os provedores. (em minutos)",
|
|
9
|
+
"templateKey": "Identificador único",
|
|
10
|
+
"useTestWarnings": "Ativar avisos de teste",
|
|
11
|
+
"uwzEnabled": "Ativar UWZ",
|
|
12
|
+
"uwzSelectDescription": "ID UWZ consiste no código do país e no código postal (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Configurações do adaptador para weather-warnings",
|
|
14
|
+
"zamgEnabled": "Ativar ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Тестирование",
|
|
3
|
+
"dwdEnabled": "Активировать DWD",
|
|
4
|
+
"dwdSelectId": "Выбор идентификатора района/города DWD",
|
|
5
|
+
"dwdSelectShowName": "Идентификационное имя района/города DWD",
|
|
6
|
+
"option1": "Опция 1",
|
|
7
|
+
"option2": "вариант 2",
|
|
8
|
+
"refreshTime": "Интервал обновления для всех провайдеров. (в минутах)",
|
|
9
|
+
"templateKey": "Уникальный идентификатор",
|
|
10
|
+
"useTestWarnings": "Активировать тестовые предупреждения",
|
|
11
|
+
"uwzEnabled": "Активировать УВЗ",
|
|
12
|
+
"uwzSelectDescription": "Идентификатор UWZ состоит из кода страны и почтового индекса (DE12345, AT54321).",
|
|
13
|
+
"weather-warnings adapter settings": "Настройки адаптера для weather-warnings",
|
|
14
|
+
"zamgEnabled": "Активировать ЗАМГ"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "Тестування",
|
|
3
|
+
"dwdEnabled": "Активуйте DWD",
|
|
4
|
+
"dwdSelectId": "Вибір ідентифікатора району/міста DWD",
|
|
5
|
+
"dwdSelectShowName": "DWD Назва району/міста",
|
|
6
|
+
"option1": "варіант1",
|
|
7
|
+
"option2": "варіант2",
|
|
8
|
+
"refreshTime": "Інтервал оновлення для всіх провайдерів. (за хвилини)",
|
|
9
|
+
"templateKey": "Унікальний ідентифікатор",
|
|
10
|
+
"useTestWarnings": "Активуйте тестові попередження",
|
|
11
|
+
"uwzEnabled": "Активуйте UWZ",
|
|
12
|
+
"uwzSelectDescription": "UWZ ID складається з коду країни та поштового індексу (DE12345, AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "Налаштування адаптера для weather-warnings",
|
|
14
|
+
"zamgEnabled": "Активуйте ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dividerHdr": "测试",
|
|
3
|
+
"dwdEnabled": "激活DWD",
|
|
4
|
+
"dwdSelectId": "DWD 区/市 ID 选择",
|
|
5
|
+
"dwdSelectShowName": "DWD 区/城市 ID 名称",
|
|
6
|
+
"option1": "选项1",
|
|
7
|
+
"option2": "选项2",
|
|
8
|
+
"refreshTime": "所有提供商的更新间隔。 (以分钟为单位)",
|
|
9
|
+
"templateKey": "唯一标识符",
|
|
10
|
+
"useTestWarnings": "激活测试警告",
|
|
11
|
+
"uwzEnabled": "激活UWZ",
|
|
12
|
+
"uwzSelectDescription": "UWZ ID 由国家/地区代码和邮政编码组成(DE12345、AT54321)",
|
|
13
|
+
"weather-warnings adapter settings": "weather-warnings的适配器设置",
|
|
14
|
+
"zamgEnabled": "激活ZAMG"
|
|
15
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"i18n": true,
|
|
4
|
+
"type": "tabs",
|
|
5
|
+
"items": {
|
|
6
|
+
"_options": {
|
|
7
|
+
"type": "panel",
|
|
8
|
+
"label": "basicconfig",
|
|
9
|
+
"items": {
|
|
10
|
+
"dwdEnabled": {
|
|
11
|
+
"type": "checkbox",
|
|
12
|
+
"sm": 6,
|
|
13
|
+
"md": 4,
|
|
14
|
+
"lg": 2,
|
|
15
|
+
"label": "Activate DWD",
|
|
16
|
+
"newLine": true
|
|
17
|
+
},
|
|
18
|
+
"uwzEnabled": {
|
|
19
|
+
"type": "checkbox",
|
|
20
|
+
"sm": 6,
|
|
21
|
+
"md": 4,
|
|
22
|
+
"lg": 2,
|
|
23
|
+
"label": "Activate UWZ",
|
|
24
|
+
"newLine": true
|
|
25
|
+
},
|
|
26
|
+
"zamgEnabled": {
|
|
27
|
+
"type": "checkbox",
|
|
28
|
+
"sm": 6,
|
|
29
|
+
"md": 4,
|
|
30
|
+
"lg": 2,
|
|
31
|
+
"label": "Activate ZAMG",
|
|
32
|
+
"newLine": true
|
|
33
|
+
},
|
|
34
|
+
"refreshTime": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"label": "Update interval for all providers. (in minutes)",
|
|
37
|
+
"min":5,
|
|
38
|
+
"step": 1,
|
|
39
|
+
"sm": 8,
|
|
40
|
+
"md": 4,
|
|
41
|
+
"lg": 2
|
|
42
|
+
},
|
|
43
|
+
"dividerHdr": {
|
|
44
|
+
"newLine": true,
|
|
45
|
+
"type": "header",
|
|
46
|
+
"text": "Testing",
|
|
47
|
+
"size": 2
|
|
48
|
+
},
|
|
49
|
+
"useTestWarnings": {
|
|
50
|
+
"type": "checkbox",
|
|
51
|
+
"sm": 12,
|
|
52
|
+
"md": 6,
|
|
53
|
+
"lg": 3,
|
|
54
|
+
"label": "Activate Testwarnings",
|
|
55
|
+
"newLine": true
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"_dwdpanel": {
|
|
60
|
+
"type": "panel",
|
|
61
|
+
"label": "DWD",
|
|
62
|
+
"hidden": "!data.dwdEnabled",
|
|
63
|
+
"items": {
|
|
64
|
+
"dwdSelectId": {
|
|
65
|
+
"type": "autocompleteSendTo",
|
|
66
|
+
"command": "dwd.name",
|
|
67
|
+
"jsonData": "{ \"dwd\": \"${data.dwdSelectId}\" }",
|
|
68
|
+
"freeSolo": false,
|
|
69
|
+
|
|
70
|
+
"alsoDependsOn": [
|
|
71
|
+
"dwdSelectId"
|
|
72
|
+
],
|
|
73
|
+
"sm": 12,
|
|
74
|
+
"md": 6,
|
|
75
|
+
"lg": 4,
|
|
76
|
+
"label": "DWD District/City ID selection",
|
|
77
|
+
"newLine": true
|
|
78
|
+
},
|
|
79
|
+
"dwdSelectShowName": {
|
|
80
|
+
"type": "textSendTo",
|
|
81
|
+
"command": "dwd.name.text",
|
|
82
|
+
"jsonData": "{ \"dwd\": \"${data.dwdSelectId}\" }",
|
|
83
|
+
"alsoDependsOn": [
|
|
84
|
+
"dwdSelectId"
|
|
85
|
+
],
|
|
86
|
+
"sm": 12,
|
|
87
|
+
"md": 6,
|
|
88
|
+
"lg": 4,
|
|
89
|
+
"label": "DWD District/City ID Name"
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"_uwzpanel": {
|
|
95
|
+
"type": "panel",
|
|
96
|
+
"label": "UWZ",
|
|
97
|
+
"hidden": "!data.uwzEnabled",
|
|
98
|
+
"items": {
|
|
99
|
+
"uwzSelectDescription": {
|
|
100
|
+
"type": "staticText",
|
|
101
|
+
"text": "UWZ ID diese besteht aus Länderkennzeichen und Postleitzahl (DE12345, AT54321)",
|
|
102
|
+
"newLine": true
|
|
103
|
+
},
|
|
104
|
+
"uwzSelectID": {
|
|
105
|
+
"type": "text",
|
|
106
|
+
"label": "DE12345",
|
|
107
|
+
"newLine": true
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"_zamgpanel": {
|
|
112
|
+
"type": "panel",
|
|
113
|
+
"label": "ZAMG",
|
|
114
|
+
"hidden": "!data.zamgEnabled",
|
|
115
|
+
"items": {
|
|
116
|
+
|
|
117
|
+
"coordinates1Txt": {
|
|
118
|
+
"type": "staticText",
|
|
119
|
+
"text": "COORDINATES (divider: #)",
|
|
120
|
+
"newLine": true
|
|
121
|
+
},
|
|
122
|
+
"zamgSelectID": {
|
|
123
|
+
"type": "coordinates",
|
|
124
|
+
"divider": "#",
|
|
125
|
+
"useSystemName": false,
|
|
126
|
+
"newLine": true,
|
|
127
|
+
"sm": 12,
|
|
128
|
+
"md": 6,
|
|
129
|
+
"lg": 4
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"_templates": {
|
|
134
|
+
"type": "panel",
|
|
135
|
+
"label": "Templates",
|
|
136
|
+
|
|
137
|
+
"items": {
|
|
138
|
+
"templateTable": {
|
|
139
|
+
"type": "table",
|
|
140
|
+
"newLine": true,
|
|
141
|
+
"sm": 12,
|
|
142
|
+
"md": 12,
|
|
143
|
+
"lg": 12,
|
|
144
|
+
"label": "",
|
|
145
|
+
"showSecondAddAt": 5,
|
|
146
|
+
"items": [
|
|
147
|
+
{
|
|
148
|
+
"type": "text",
|
|
149
|
+
"attr": "templateKey",
|
|
150
|
+
"width": "10% ",
|
|
151
|
+
"title": "Unique Identifier",
|
|
152
|
+
"tooltip": "Enter a unique text",
|
|
153
|
+
"filter": false,
|
|
154
|
+
"sort": false,
|
|
155
|
+
"default": "",
|
|
156
|
+
"validator": "const x={};for (const c of globalData.templateTable) {if (x[c.templateKey]==='x') return false; x[c.templateKey]='x';}; return true;",
|
|
157
|
+
"validatorNoSaveOnError": true
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "text",
|
|
161
|
+
"attr": "template",
|
|
162
|
+
"width": "90% ",
|
|
163
|
+
"title": "Text",
|
|
164
|
+
"tooltip": "Enter your template text.",
|
|
165
|
+
"filter": false,
|
|
166
|
+
"sort": false,
|
|
167
|
+
"default": ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"_options6": {
|
|
174
|
+
"type": "panel",
|
|
175
|
+
"label": "Whatsapp",
|
|
176
|
+
"hidden": "true",
|
|
177
|
+
"items": {}
|
|
178
|
+
},
|
|
179
|
+
"_options7": {
|
|
180
|
+
"type": "panel",
|
|
181
|
+
"label": "Options",
|
|
182
|
+
"hidden": "true",
|
|
183
|
+
"items": {}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
Binary file
|
package/admin/words.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*global systemDictionary:true */
|
|
2
|
+
/*
|
|
3
|
+
+===================== DO NOT MODIFY ======================+
|
|
4
|
+
| This file was generated by translate-adapter, please use |
|
|
5
|
+
| `translate-adapter adminLanguages2words` to update it. |
|
|
6
|
+
+===================== DO NOT MODIFY ======================+
|
|
7
|
+
*/
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
systemDictionary = {
|
|
11
|
+
"useTestWarnings": { "en": "Activate Testwarnings! Adapter goes offline ", "de": "Testwarnungen aktivieren", "ru": "Активировать тестовые предупреждения", "pt": "Ativar avisos de teste", "nl": "Activeer Testwaarschuwingen", "fr": "Activer les avertissements de test", "it": "Attiva gli avvisi di prova", "es": "Activar advertencias de prueba", "pl": "Aktywuj ostrzeżenia testowe", "uk": "Активуйте тестові попередження", "zh-cn": "激活测试警告"},
|
|
12
|
+
"weather-warnings adapter settings": { "en": "Adapter settings for weather-warnings", "de": "Adaptereinstellungen für weather-warnings", "ru": "Настройки адаптера для weather-warnings", "pt": "Configurações do adaptador para weather-warnings", "nl": "Adapterinstellingen voor weather-warnings", "fr": "Paramètres d'adaptateur pour weather-warnings", "it": "Impostazioni dell'adattatore per weather-warnings", "es": "Ajustes del adaptador para weather-warnings", "pl": "Ustawienia adaptera dla weather-warnings", "uk": "Налаштування адаптера для weather-warnings", "zh-cn": "weather-warnings的适配器设置"},
|
|
13
|
+
"dwdEnabled": { "en": "Activate DWD", "de": "DWD aktivieren", "ru": "Активировать DWD", "pt": "Ativar DWD", "nl": "Activeer DWD", "fr": "Activer DWD", "it": "Attiva DWD", "es": "Activar DWD", "pl": "Aktywuj DWD", "uk": "Активуйте DWD", "zh-cn": "激活DWD"},
|
|
14
|
+
"uwzEnabled": { "en": "Activate UWZ", "de": "UWZ aktivieren", "ru": "Активировать УВЗ", "pt": "Ativar UWZ", "nl": "Activeer UWZ", "fr": "Activer l'UWZ", "it": "Attiva UWZ", "es": "Activar UWZ", "pl": "Aktywuj UWZ", "uk": "Активуйте UWZ", "zh-cn": "激活UWZ"},
|
|
15
|
+
"zamgEnabled": { "en": "Activate ZAMG", "de": "ZAMG aktivieren", "ru": "Активировать ЗАМГ", "pt": "Ativar ZAMG", "nl": "Activeer ZAMG", "fr": "Activer ZAMG", "it": "Attiva ZAMG", "es": "Activar ZAMG", "pl": "Aktywuj ZAMG", "uk": "Активуйте ZAMG", "zh-cn": "激活ZAMG"},
|
|
16
|
+
"refreshTime": { "en": "Update interval for all providers. (in minutes)", "de": "Aktualisierungsintervall für alle Anbieter. (in Minuten)", "ru": "Интервал обновления для всех провайдеров. (в минутах)", "pt": "Intervalo de atualização para todos os provedores. (em minutos)", "nl": "Update-interval voor alle providers. (in minuten)", "fr": "Intervalle de mise à jour pour tous les fournisseurs. (en minutes)", "it": "Intervallo di aggiornamento per tutti i provider. (in minuti)", "es": "Intervalo de actualización para todos los proveedores. (en minutos)", "pl": "Częstotliwość aktualizacji dla wszystkich dostawców. (w minutach)", "uk": "Інтервал оновлення для всіх провайдерів. (за хвилини)", "zh-cn": "所有提供商的更新间隔。 (以分钟为单位)"},
|
|
17
|
+
"dividerHdr": { "en": "Testing", "de": "Testen", "ru": "Тестирование", "pt": "Teste", "nl": "Testen", "fr": "Essai", "it": "Test", "es": "Pruebas", "pl": "Testowanie", "uk": "Тестування", "zh-cn": "测试"},
|
|
18
|
+
"dwdSelectId": { "en": "DWD District/City ID selection", "de": "Auswahl der DWD-Bezirks-/Stadt-ID", "ru": "Выбор идентификатора района/города DWD", "pt": "Seleção de ID de distrito/cidade DWD", "nl": "DWD District/Stads-ID selectie", "fr": "Sélection de l'ID du district/ville DWD", "it": "Selezione ID distretto/città DWD", "es": "Selección de identificación de distrito/ciudad de DWD", "pl": "Wybór identyfikatora dzielnicy/miasta DWD", "uk": "Вибір ідентифікатора району/міста DWD", "zh-cn": "DWD 区/市 ID 选择"},
|
|
19
|
+
"dwdSelectShowName": { "en": "DWD District/City ID Name", "de": "DWD-Bezirks-/Stadt-ID-Name", "ru": "Идентификационное имя района/города DWD", "pt": "Nome do ID do distrito/cidade DWD", "nl": "DWD District/Stad ID-naam", "fr": "Nom du district/ville du DWD", "it": "Nome ID distretto/città DWD", "es": "Nombre de identificación del distrito/ciudad del DWD", "pl": "Nazwa identyfikacyjna dystryktu/miasta DWD", "uk": "DWD Назва району/міста", "zh-cn": "DWD 区/城市 ID 名称"},
|
|
20
|
+
"uwzSelectDescription": { "en": "UWZ ID this consists of country code and postcode (DE12345, AT54321)", "de": "UWZ-ID, diese besteht aus Ländercode und Postleitzahl (DE12345, AT54321)", "ru": "Идентификатор UWZ состоит из кода страны и почтового индекса (DE12345, AT54321).", "pt": "ID UWZ consiste no código do país e no código postal (DE12345, AT54321)", "nl": "UWZ ID dit bestaat uit landcode en postcode (DE12345, AT54321)", "fr": "ID UWZ composé du code du pays et du code postal (DE12345, AT54321)", "it": "ID UWZ composto dal codice paese e dal codice postale (DE12345, AT54321)", "es": "ID UWZ que consta del código de país y el código postal (DE12345, AT54321)", "pl": "Identyfikator UWZ składa się z kodu kraju i kodu pocztowego (DE12345, AT54321)", "uk": "UWZ ID складається з коду країни та поштового індексу (DE12345, AT54321)", "zh-cn": "UWZ ID 由国家/地区代码和邮政编码组成(DE12345、AT54321)"},
|
|
21
|
+
"templateKey": { "en": "Unique Identifier", "de": "Eindeutige Kennung", "ru": "Уникальный идентификатор", "pt": "Identificador único", "nl": "Unieke identificatie", "fr": "Identifiant unique", "it": "Identificativo unico", "es": "Identificador único", "pl": "Unikalny identyfikator", "uk": "Унікальний ідентифікатор", "zh-cn": "唯一标识符"},
|
|
22
|
+
"option1": { "en": "", "de": "Option 1", "ru": "Опция 1", "pt": "Opção 1", "nl": "Optie 1", "fr": "Option 1", "it": "opzione 1", "es": "Opción 1", "pl": "opcja 1", "uk": "варіант1", "zh-cn": "选项1"},
|
|
23
|
+
"option2": { "en": "option2", "de": "Option 2", "ru": "вариант 2", "pt": "opção 2", "nl": "Optie 2", "fr": "Option 2", "it": "opzione 2", "es": "opcion 2", "pl": "Opcja 2", "uk": "варіант2", "zh-cn": "选项2"},
|
|
24
|
+
};
|