Skip to content

Commit

Permalink
bug in info.connection fixed and handling of user ids expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
TKnpl committed Mar 3, 2021
1 parent c52bdb0 commit 2386c13
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 236 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ Adapter for the alerting service "Divera 24/7"
For full usability of this adapter your organisation has to subscribe the "Alarm" plan of Divera 24/7 services

## Configuartion of this adapter
You have to enter your personal "Divera 24/7" access token and user ID to this adapter.

To find out the access token, go to the official [Divera 24 / 7 webseite](https://www.divera247.com/) and navigate to administration -> settings -> interfaces -> API. Here you can find the token in the "authorisation" area.
You have to enter the "Divera 24/7" API key of your organisation to this adapter.
To find out the API key, go to the official [Divera 24 / 7 webseite](https://www.divera247.com/) and navigate to administration -> settings -> interfaces -> API. Here you can find the token in the "authorisation" area.

Furthermore you can restrict the alarms on specific users.
For this you have to enter the Divera user IDs into the admin page of this adapter. Multiple user IDs can be specifyed by comma (,).
To find out the user ID, go to the official [Divera 24 / 7 webseite](https://www.divera247.com/) and navigate to user profile -> settings -> debug -> "Aktuelle ID".
Copy these values and paste it in the relevant fields in the admin page of this adapter.

Furthermore please chose an updating interval for calling the API server. 30 seconds are recommended. The minimum is 10 seconds.
To subscribe **all alarms**, just leave the relevant field empty.

Please also chose an updating interval for calling the API server. 30 seconds are recommended. The minimum is 10 seconds.

## Changelog

### 0.0.10
* (TKnpl) bug in info.connection fixed and handling of user ids expanded

### 0.0.9
* (TKnpl) added default values for admin page

Expand Down
13 changes: 7 additions & 6 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,17 @@
</div>
</div>
<div class="row">
<div class="col s6 input-field">
<div class="col s5 input-field">
<input type="text" class="value" id="diveraAccessKey" />
<label for="diveraAccessKey" class="translate">Access-Key</label>
<span id="diveraAccessKeyInformation" class="translate">Personal Access-Key for Divera 24 / 7</span><br>
<label for="diveraAccessKey" class="translate">API-Key</label>
<span id="diveraAccessKeyInformation" class="translate">API-Key for your Divera 24 / 7 organisation</span><br>
<a href='https://github.com/TKnpl/ioBroker.divera247/blob/master/README.md#configuartion-of-this-adapter' target='_blank'><span id="diveraConfigurationHelpLink" class="translate">Configuration help</span></a>
</div>
<div class="col s3 input-field">
<input type="number" class="value" id="diveraUserId" />
<div class="col s4 input-field">
<input type="text" class="value" id="diveraUserId" />
<label for="diveraUserId" class="translate">Divera user ID</label>
<span id="diveraUserIdInformation" class="translate">Personal User ID in Divera 24 / 7</span>
<span id="diveraUserIdInformation" class="translate">Alarm only for following Divera User IDs</span><br>
<span id="diveraUserIdInformationForAllAlarms" class="translate">(leave blank to subscribe all alarms)</span>
</div>
<div class="col s3 input-field">
<input type="number" class="value" id="pollIntervall" min="10" />
Expand Down
78 changes: 45 additions & 33 deletions admin/words.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ systemDictionary = {
"pl": "Ustawienia adaptera divera247",
"zh-cn": "divera247适配器设置"
},
"Access-Key": {
"en": "Access-Key",
"de": "Zugangs-Key",
"ru": "Ключ доступа",
"pt": "Chave de acesso",
"nl": "Toegangssleutel",
"fr": "Clé d'accès",
"it": "Chiave di accesso",
"es": "Llave de acceso",
"pl": "Klucz dostępu",
"zh-cn": "存取键"
"API-Key": {
"en": "API-Key",
"de": "API-Key",
"ru": "API-ключ",
"pt": "Chave API",
"nl": "API sleutel",
"fr": "Clé API",
"it": "Chiave API",
"es": "Clave API",
"pl": "Klucz API",
"zh-cn": "API密钥"
},
"Personal Access-Key for Divera 24 / 7": {
"en": "Personal Access-Key for Divera 24 / 7",
"de": "Persönlicher Zugangs-Key für Divera 24/7",
"ru": "Персональный ключ доступа для Divera 24/7",
"pt": "Chave de acesso pessoal para Divera 24/7",
"nl": "Persoonlijke toegangssleutel voor Divera 24/7",
"fr": "Clé d'accès personnelle pour Divera 24/7",
"it": "Chiave di accesso personale per Divera 24/7",
"es": "Clave de acceso personal para Divera 24/7",
"pl": "Osobisty klucz dostępu do Divera 24/7",
"zh-cn": "Divera 24/7的个人访问密钥"
"API-Key for your Divera 24 / 7 organisation": {
"en": "API-Key for your Divera 24 / 7 organisation",
"de": "API-Key für Ihre Divera 24/7 Einheit",
"ru": "API-ключ для вашей организации Divera 24/7",
"pt": "Chave API para sua organização Divera 24/7",
"nl": "API-Key voor uw Divera 24/7 organisatie",
"fr": "Clé API pour votre organisation Divera 24/7",
"it": "Chiave API per la tua organizzazione Divera 24 ore su 24, 7 giorni su 7",
"es": "API-Key para su organización Divera 24/7",
"pl": "Klucz API dla Twojej organizacji Divera 24/7",
"zh-cn": "适用于Divera 24/7组织的API密钥"
},
"Configuration help": {
"en": "Configuration help",
Expand All @@ -62,17 +62,29 @@ systemDictionary = {
"pl": "Identyfikator użytkownika Divera",
"zh-cn": "Divera用户ID"
},
"Personal User ID in Divera 24 / 7": {
"en": "Personal User ID in Divera 24 / 7",
"de": "Persönliche Benutzer ID in Divera 24/7",
"ru": "Персональный идентификатор пользователя в Divera 24/7",
"pt": "ID de usuário pessoal em Divera 24/7",
"nl": "Persoonlijke gebruikers-ID in Divera 24/7",
"fr": "ID utilisateur personnel dans Divera 24/7",
"it": "ID utente personale in Divera 24/7",
"es": "Identificación de usuario personal en Divera 24/7",
"pl": "Osobisty identyfikator użytkownika w Divera 24/7",
"zh-cn": "Divera中的个人用户ID 24/7"
"Alarm only for following Divera User IDs": {
"en": "Alarm only for following Divera User IDs",
"de": "Alarm nur für folgende Divera-Benutzer-IDs",
"ru": "Тревога только для следующих идентификаторов пользователя Divera",
"pt": "Alarme apenas para os seguintes IDs de usuário Divera",
"nl": "Alarm alleen voor volgende Divera gebruikers-ID's",
"fr": "Alarme uniquement pour les ID utilisateur Divera suivants",
"it": "Allarme solo per i seguenti ID utente Divera",
"es": "Alarma solo para los siguientes ID de usuario de Divera",
"pl": "Alarm tylko dla następujących identyfikatorów użytkowników Divera",
"zh-cn": "仅针对以下Divera用户ID发出警报"
},
"(leave blank to subscribe all alarms)": {
"en": "(leave blank to subscribe all alarms)",
"de": "(Leer lassen, um alle Alarme zu abonnieren)",
"ru": "(оставьте поле пустым, чтобы подписаться на все будильники)",
"pt": "(deixe em branco para inscrever todos os alarmes)",
"nl": "(laat dit veld leeg om alle alarmen te abonneren)",
"fr": "(laissez vide pour souscrire à toutes les alarmes)",
"it": "(lasciare vuoto per sottoscrivere tutti gli allarmi)",
"es": "(déjelo en blanco para suscribir todas las alarmas)",
"pl": "(pozostaw puste, aby zasubskrybować wszystkie alarmy)",
"zh-cn": "(留空以订阅所有警报)"
},
"update interval (seconds)": {
"en": "update interval (seconds)",
Expand Down
8 changes: 6 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"common": {
"name": "divera247",
"version": "0.0.9",
"version": "0.0.10",
"news": {
"0.0.10": {
"en": "bug in info.connection fixed and handling of user ids expanded",
"de": "Fehler in Verbindungsanzeige behoben und Handling von UserIDs erweitert"
},
"0.0.9": {
"en": "added default values for admin page",
"de": "Standardwerte für Admin-Seite hinzugefügt"
Expand Down Expand Up @@ -82,7 +86,7 @@
},
"native": {
"diveraAccessKey": "",
"diveraUserId": 0,
"diveraUserId": "",
"pollIntervall": 30
},
"objects": [],
Expand Down
Loading

0 comments on commit 2386c13

Please sign in to comment.