Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/iobroker/adapter-cor…
Browse files Browse the repository at this point in the history
…e-3.1.6
  • Loading branch information
SKB-CGN authored Sep 18, 2024
2 parents fc03e72 + c0a1579 commit 292a276
Show file tree
Hide file tree
Showing 9 changed files with 1,372 additions and 1,189 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/.eslintrc.js
admin/words.js
lib/dictionary.js
www/js/*
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parserOptions": {
"ecmaVersion": "latest"
},

"env": {
"es6": true
}
}
53 changes: 27 additions & 26 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'
lint: true
lint-command: 'npm run lint .'

# Runs adapter tests on all supported node versions and OSes
adapter-tests:
Expand All @@ -40,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand All @@ -55,31 +56,31 @@ jobs:
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
# Then uncomment the following block:

# # Deploys the final package to NPM
# deploy:
# needs: [check-and-lint, adapter-tests]
#
# # Trigger this step only when a commit on any branch is tagged with a version number
# if: |
# contains(github.event.head_commit.message, '[skip ci]') == false &&
# github.event_name == 'push' &&
# startsWith(github.ref, 'refs/tags/v')
#
# runs-on: ubuntu-latest
#
# # Write permissions are required to create Github releases
# permissions:
# contents: write
#
# steps:
# - uses: ioBroker/testing-action-deploy@v1
# with:
# node-version: '16.x'
# # Uncomment the following line if your adapter cannot be installed using 'npm ci'
# # install-command: 'npm install'
# npm-token: ${{ secrets.NPM_TOKEN }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# Deploys the final package to NPM
deploy:
needs: [check-and-lint, adapter-tests]

# Trigger this step only when a commit on any branch is tagged with a version number
if: |
contains(github.event.head_commit.message, '[skip ci]') == false &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest

# Write permissions are required to create Github releases
permissions:
contents: write

steps:
- uses: ioBroker/testing-action-deploy@v1
with:
node-version: '18.x'
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

# # When using Sentry for error reporting, Sentry can be informed about new releases
# # To enable create a API-Token in Sentry (User settings, API keys)
# # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ If you like the adapter and want to support me, you can do so here:
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### 1.1.1 (2024-09-18)
- updated dependencies

### 1.1.0 (2024-02-08)
- Prepared Adapter to be added to ioBroker repotories

Expand Down
7 changes: 7 additions & 0 deletions admin/i18n/uk/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"charger_serial": "Серійний номер вашої Wallbox",
"ex_charger_serial": "Можна знайти на:",
"password": "Пароль",
"poll_time": "Час опитування в секундах (мін. 30 секунд)",
"wallbox adapter settings": "Налаштування адаптера для Wallbox"
}
10 changes: 5 additions & 5 deletions admin/words.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 36 additions & 24 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "mywallbox",
"version": "1.1.0",
"version": "1.1.1",
"news": {
"1.1.1": {
"en": "updated dependencies",
"de": "aktualisierte abhängigkeiten",
"ru": "обновленные зависимости",
"pt": "dependências atualizadas",
"nl": "bijgewerkte afhankelijkheden",
"fr": "dépendances actualisées",
"it": "dipendenze aggiornate",
"es": "dependencias actualizadas",
"pl": "zaktualizowane zależności",
"uk": "оновлені залежності",
"zh-cn": "更新的依赖关系"
},
"1.1.0": {
"en": "Prepared Adapter to be added to ioBroker repotories",
"de": "Vorbereitet Adapter zu ioBroker repotories hinzugefügt werden",
Expand Down Expand Up @@ -39,7 +52,8 @@
"it": "piccolo bug fisso",
"es": "pequeño fallo fijo",
"pl": "a type of crash bug bug",
"zh-cn": "固定的小型事故 bug"
"zh-cn": "固定的小型事故 bug",
"uk": "виправлена ​​невелика помилка збою"
},
"0.0.18": {
"en": "renamed Adapter to My-Wallbox to get adapter added to iobroker repoy",
Expand All @@ -51,7 +65,8 @@
"it": "rinominato adattatore a My-Wallbox per ottenere l'adattatore aggiunto al repoy dello iobroker",
"es": "adaptador renombrado a My-Wallbox para conseguir adaptador añadido a iobroker repoy",
"pl": "nazwa Adapter to My-Wallbox została zmieniona na Iobroker repoyer",
"zh-cn": "改装给我-Wall箱的阿帕特,使人加入奥罗布克托公司"
"zh-cn": "改装给我-Wall箱的阿帕特,使人加入奥罗布克托公司",
"uk": "перейменовано Adapter у My-Wallbox, щоб адаптер було додано до iobroker repoy"
},
"0.0.17": {
"en": "crash handler extended\nAfter some time, the charge value disappears. The value is now kept as long as the wallbox is in charge mode",
Expand All @@ -63,7 +78,8 @@
"it": "manico di arresto esteso\nDopo qualche tempo, il valore di carica scompare. Il valore è ora mantenuto fino a quando la scatola da parete è in modalità di carica",
"es": "controlador de choque extendido\nDespués de algún tiempo, el valor de carga desaparece. El valor se mantiene ahora mientras la caja de pared está en modo de carga",
"pl": "uchwyt\nPo pewnym czasie wartość obciążenia zanika. Wartość ta jest obecnie utrzymywana tak długo, jak ściana jest w trybie ładunku",
"zh-cn": "c 坠毁者\n一段时间后,收费价值消失。 目前,只要墙箱是负责任的方式,价值就一直保持。"
"zh-cn": "c 坠毁者\n一段时间后,收费价值消失。 目前,只要墙箱是负责任的方式,价值就一直保持。",
"uk": "обробник збоїв розширено\nЧерез деякий час значення заряду зникає. Тепер значення зберігається, поки Wallbox перебуває в режимі заряджання"
},
"0.0.16": {
"en": "added error handling for cost-data, if server did not respond properly\nchanged some error-handling to prevent crashing if JSON is empty",
Expand All @@ -75,22 +91,10 @@
"it": "gestione degli errori aggiunti per i dati di costo, se il server non ha risposto correttamente\nha cambiato qualche errore di gestione per evitare crash se JSON è vuoto",
"es": "manejo de errores añadido para datos de costes, si el servidor no respondió correctamente\ncambió algunos errores para evitar que se estrelle si JSON está vacío",
"pl": "dodano obsługę błędów dla danych kosztowych, jeśli serwer nie odpowiada prawidłowo\nzmieniło się to, aby zapobiec rozbiciu się JSON",
"zh-cn": "如果服务器没有作出适当反应,则为成本数据处理增加错误。\n如果联合协商会空洞,则为防止意外事故而改变了一些错误的处理办法。"
},
"0.0.15": {
"en": "changed some error-handling to prevent crashing if JSON is empty",
"de": "einige Fehlerbehebungen geändert, um zu verhindern, dass stürzt, wenn JSON leer ist",
"ru": "изменил некоторые ошибки, чтобы предотвратить сбой, если JSON пуст",
"pt": "alterou algum manuseio de erro para evitar que se despense se JSON estiver vazio",
"nl": "veranderde fouten om te voorkomen dat JSON leeg is",
"fr": "a changé quelques manipulations d'erreur pour empêcher l'écrasement si JSON est vide",
"it": "ha cambiato qualche errore di gestione per evitare crash se JSON è vuoto",
"es": "cambió algunos errores para evitar que se estrelle si JSON está vacío",
"pl": "zmieniło się to, aby zapobiec rozbiciu się JSON",
"zh-cn": "如果联合协商会空洞,则为防止意外事故而改变了一些错误的处理办法。"
"zh-cn": "如果服务器没有作出适当反应,则为成本数据处理增加错误。\n如果联合协商会空洞,则为防止意外事故而改变了一些错误的处理办法。",
"uk": "додано обробку помилок для даних про вартість, якщо сервер не відповідає належним чином\nзмінено певну обробку помилок, щоб запобігти збою, якщо JSON порожній"
}
},
"title": "MyWallbox",
"titleLang": {
"en": "MyWallbox",
"de": "MyWallbox",
Expand All @@ -101,7 +105,8 @@
"it": "Scatola da muro",
"es": "Caja de pared",
"pl": "My-Wallbox",
"zh-cn": "墙盒"
"zh-cn": "墙盒",
"uk": "MyWallbox"
},
"desc": {
"en": "Connect your My-Wallbox (e.g. Pulsar Plus) with ioBroker",
Expand All @@ -113,7 +118,8 @@
"it": "Collega la tua My-Wallbox (ad es. Pulsar Plus) con ioBroker",
"es": "Conecte su My-Wallbox (por ejemplo, Pulsar Plus) con ioBroker",
"pl": "Połącz swój My-Wallbox (np. Pulsar Plus) z ioBroker",
"zh-cn": "将您的 My-Wallbox(例如 Pulsar Plus)与 ioBroker 连接"
"zh-cn": "将您的 My-Wallbox(例如 Pulsar Plus)与 ioBroker 连接",
"uk": "Підключіть свій My-Wallbox (наприклад, Pulsar Plus) до ioBroker"
},
"authors": [
"SKB-CGN <[email protected]>"
Expand All @@ -124,23 +130,29 @@
"pulsar plus",
"wallbox"
],
"license": "MIT",
"licenseInformation": {
"license": "MIT",
"type": "free"
},
"platform": "Javascript/Node.js",
"main": "main.js",
"icon": "wallbox.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/SKB-CGN/ioBroker.mywallbox/main/admin/wallbox.png",
"readme": "https://raw.githubusercontent.com/SKB-CGN/ioBroker.mywallbox/main/README.md",
"loglevel": "info",
"mode": "daemon",
"tier": 3,
"type": "hardware",
"compact": true,
"connectionType": "cloud",
"dataSource": "poll",
"materialize": true,
"adminUI": {
"config": "materialize",
"tab": false
},
"dependencies": [
{
"js-controller": ">=2.0.0"
"js-controller": ">=5.0.19"
}
],
"globalDependencies": [
Expand Down
Loading

0 comments on commit 292a276

Please sign in to comment.