iobroker.device-watcher 0.0.8 → 0.1.1
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 +10 -0
- package/admin/i18n/de/translations.json +13 -1
- package/admin/i18n/en/translations.json +12 -1
- package/admin/i18n/es/translations.json +15 -1
- package/admin/i18n/fr/translations.json +15 -1
- package/admin/i18n/it/translations.json +15 -1
- package/admin/i18n/nl/translations.json +15 -1
- package/admin/i18n/pl/translations.json +15 -1
- package/admin/i18n/pt/translations.json +15 -1
- package/admin/i18n/ru/translations.json +15 -1
- package/admin/i18n/zh-cn/translations.json +15 -1
- package/admin/index_m.html +6 -45
- package/admin/jsonConfig.json +347 -88
- package/io-package.json +48 -16
- package/main.js +647 -116
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,16 @@ The adapter has also the option to send notifications if the number of offline d
|
|
|
36
36
|
Placeholder for the next version (at the beginning of the line):
|
|
37
37
|
### **WORK IN PROGRESS**
|
|
38
38
|
-->
|
|
39
|
+
### 0.1.1 (2022-07-22)
|
|
40
|
+
|
|
41
|
+
- changed wrong type of datapoint lastCheck
|
|
42
|
+
- added possibility to choose own offline time for each adapter
|
|
43
|
+
- added Whatsapp notification services
|
|
44
|
+
- improved sonoff devices
|
|
45
|
+
- added row with online and offline status in table allDevices
|
|
46
|
+
- added alexa2 and esphome devices
|
|
47
|
+
- Added priority for pushover notifications
|
|
48
|
+
|
|
39
49
|
### 0.0.8 (2022-07-05)
|
|
40
50
|
|
|
41
51
|
- added own notes field for blacklist
|
|
@@ -44,5 +44,17 @@
|
|
|
44
44
|
"Choose your Chat-ID": "Wählen Sie Ihre Chat-ID",
|
|
45
45
|
"Add own notes, name, etc": "Fügen Sie eigene Notizen, Namen usw. hinzu",
|
|
46
46
|
"List only devices with battery": "Nur Geräte mit Akku auflisten",
|
|
47
|
-
"Choose if only devices with battery should be listed or all devices": "Wählen Sie, ob nur Geräte mit Akku aufgelistet werden sollen oder alle Geräte"
|
|
47
|
+
"Choose if only devices with battery should be listed or all devices": "Wählen Sie, ob nur Geräte mit Akku aufgelistet werden sollen oder alle Geräte",
|
|
48
|
+
"Choose the priority": "Wählen Sie die Priorität",
|
|
49
|
+
"High Priority": "Hohe Priorität",
|
|
50
|
+
"With confirmation": "Mit Bestätigung",
|
|
51
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Verwenden Sie den wahren Zustand aus dem Qualitätszustand, sonst wird er in Prozentwerte umgewandelt.",
|
|
52
|
+
"Offline Time": "Offline-Zeit",
|
|
53
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Hier können Sie die Offline-Zeit der Geräte für jeden Adapter auswählen. Wenn auf „-1“ gesetzt, verwendet der Adapter den Datenpunkt available, reachable, alive usw. wenn das Gerät einen davon hat.",
|
|
54
|
+
"Choose the day(s) where you want to get the message of low battery:": "Wählen Sie den/die Tag(e), an dem/denen Sie die Meldung über schwache Batterie erhalten möchten:",
|
|
55
|
+
"Here you can choose the offline time of devices for each adapter. ": "Hier können Sie die Offline-Zeit der Geräte für jeden Adapter auswählen.",
|
|
56
|
+
"Whatsapp Instance": "WhatsApp-Instanz",
|
|
57
|
+
"Please choose the Whatsapp instance": "Bitte wählen Sie die WhatsApp-Instanz aus",
|
|
58
|
+
"Recipient (optional)": "Empfänger (optional)",
|
|
59
|
+
"Choose your recipient": "Wählen Sie Ihren Empfänger"
|
|
48
60
|
}
|
|
@@ -26,10 +26,17 @@
|
|
|
26
26
|
"Device-ID (optional)": "Device-ID (optional)",
|
|
27
27
|
"Choose your device": "Choose your device",
|
|
28
28
|
"Title (optional)": "Title (optional)",
|
|
29
|
+
"Choose the priority": "Choose the priority",
|
|
30
|
+
"High Priority": "High Priority",
|
|
31
|
+
"With confirmation": "With confirmation",
|
|
29
32
|
"Choose your title for Pushmessage": "Choose your title for Pushmessage",
|
|
30
33
|
"Telegram Instance": "Telegram Instance",
|
|
31
34
|
"Please choose the telegram instance": "Please choose the telegram instance",
|
|
32
35
|
"Choose your Chat-ID": "Choose your Chat-ID",
|
|
36
|
+
"Whatsapp Instance": "Whatsapp Instance",
|
|
37
|
+
"Please choose the Whatsapp instance": "Please choose the Whatsapp instance",
|
|
38
|
+
"Recipient (optional)": "Recipient (optional)",
|
|
39
|
+
"Choose your recipient": "Choose your recipient",
|
|
33
40
|
"Jarvis Instance": "Jarvis Instance",
|
|
34
41
|
"Please choose the jarvis instance": "Please choose the jarvis instance",
|
|
35
42
|
"Choose which devices should be excluded": "Choose which devices should be excluded",
|
|
@@ -44,5 +51,9 @@
|
|
|
44
51
|
"Please choose the lovelace instance": "Please choose the lovelace instance",
|
|
45
52
|
"Add own notes, name, etc": "Add own notes, name, etc",
|
|
46
53
|
"List only devices with battery": "List only devices with battery",
|
|
47
|
-
"Choose if only devices with battery should be listed or all devices": "Choose if only devices with battery should be listed or all devices"
|
|
54
|
+
"Choose if only devices with battery should be listed or all devices": "Choose if only devices with battery should be listed or all devices",
|
|
55
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Use the true state from quality state, otherwise it will be converted in percent value.",
|
|
56
|
+
"Offline Time": "Offline Time",
|
|
57
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.",
|
|
58
|
+
"Choose the day(s) where you want to get the message of low battery:": "Choose the day(s) where you want to get the message of low battery:"
|
|
48
59
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Elija su ID de chat",
|
|
53
53
|
"Add own notes, name, etc": "Agregar notas propias, nombre, etc.",
|
|
54
54
|
"List only devices with battery": "Listar solo dispositivos con batería",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Elija si solo deben aparecer en la lista los dispositivos con batería o todos los dispositivos"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Elija si solo deben aparecer en la lista los dispositivos con batería o todos los dispositivos",
|
|
56
|
+
"Choose the priority": "Elige la prioridad",
|
|
57
|
+
"High Priority": "Alta prioridad",
|
|
58
|
+
"With confirmation": "Con confirmación",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Utilice el estado verdadero del estado de calidad; de lo contrario, se convertirá en valor porcentual.",
|
|
60
|
+
"Offline Time": "Tiempo fuera de línea",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Aquí puede elegir el tiempo sin conexión de los dispositivos para cada adaptador. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Elige el/los día(s) en los que quieres recibir el mensaje de batería baja:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Aquí puede elegir el tiempo sin conexión de los dispositivos para cada adaptador.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Si se establece en '-1', el adaptador utilizará el punto de datos disponible, accesible, activo, etc.",
|
|
65
|
+
"when the device has one of these.": "cuando el dispositivo tiene uno de estos.",
|
|
66
|
+
"Whatsapp Instance": "Instancia de Whatsapp",
|
|
67
|
+
"Please choose the Whatsapp instance": "Elija la instancia de Whatsapp",
|
|
68
|
+
"Recipient (optional)": "Destinatario (opcional)",
|
|
69
|
+
"Choose your recipient": "Elige tu destinatario"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Choisissez votre identifiant de chat",
|
|
53
53
|
"Add own notes, name, etc": "Ajoutez vos propres notes, nom, etc.",
|
|
54
54
|
"List only devices with battery": "Répertorier uniquement les appareils avec batterie",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Choisissez si seuls les appareils avec batterie doivent être répertoriés ou tous les appareils"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Choisissez si seuls les appareils avec batterie doivent être répertoriés ou tous les appareils",
|
|
56
|
+
"Choose the priority": "Choisissez la priorité",
|
|
57
|
+
"High Priority": "Haute priorité",
|
|
58
|
+
"With confirmation": "Avec confirmation",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Utilisez l'état réel de l'état de qualité, sinon il sera converti en pourcentage.",
|
|
60
|
+
"Offline Time": "Temps hors ligne",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Ici, vous pouvez choisir le temps hors ligne des appareils pour chaque adaptateur. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Choisissez le(s) jour(s) où vous souhaitez recevoir le message de batterie faible :",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Ici, vous pouvez choisir le temps hors ligne des appareils pour chaque adaptateur.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "S'il est défini sur '-1', l'adaptateur utilisera le point de données disponible, accessible, actif, etc.",
|
|
65
|
+
"when the device has one of these.": "lorsque l'appareil en possède un.",
|
|
66
|
+
"Whatsapp Instance": "Instance Whatsapp",
|
|
67
|
+
"Please choose the Whatsapp instance": "Veuillez choisir l'instance Whatsapp",
|
|
68
|
+
"Recipient (optional)": "Destinataire (facultatif)",
|
|
69
|
+
"Choose your recipient": "Choisissez votre destinataire"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Scegli il tuo ID chat",
|
|
53
53
|
"Add own notes, name, etc": "Aggiungi le proprie note, nome, ecc",
|
|
54
54
|
"List only devices with battery": "Elenca solo i dispositivi con batteria",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Scegli se devono essere elencati solo i dispositivi con batteria o tutti i dispositivi"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Scegli se devono essere elencati solo i dispositivi con batteria o tutti i dispositivi",
|
|
56
|
+
"Choose the priority": "Scegli la priorità",
|
|
57
|
+
"High Priority": "Priorità alta",
|
|
58
|
+
"With confirmation": "Con conferma",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Usa lo stato vero dallo stato di qualità, altrimenti verrà convertito in valore percentuale.",
|
|
60
|
+
"Offline Time": "Tempo offline",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Qui puoi scegliere il tempo offline dei dispositivi per ciascun adattatore. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Scegli i giorni in cui desideri ricevere il messaggio di batteria scarica:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Qui puoi scegliere il tempo offline dei dispositivi per ciascun adattatore.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Se impostato su '-1', l'adattatore utilizzerà il punto dati disponibile, raggiungibile, vivo ecc.",
|
|
65
|
+
"when the device has one of these.": "quando il dispositivo ne ha uno.",
|
|
66
|
+
"Whatsapp Instance": "Istanza Whatsapp",
|
|
67
|
+
"Please choose the Whatsapp instance": "Scegli l'istanza di Whatsapp",
|
|
68
|
+
"Recipient (optional)": "Destinatario (facoltativo)",
|
|
69
|
+
"Choose your recipient": "Scegli il tuo destinatario"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Kies je Chat-ID",
|
|
53
53
|
"Add own notes, name, etc": "Eigen notities, naam, enz. toevoegen",
|
|
54
54
|
"List only devices with battery": "Alleen apparaten met batterij weergeven",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Kies of alleen apparaten met batterij moeten worden vermeld of alle apparaten"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Kies of alleen apparaten met batterij moeten worden vermeld of alle apparaten",
|
|
56
|
+
"Choose the priority": "Kies de prioriteit",
|
|
57
|
+
"High Priority": "Hoge prioriteit",
|
|
58
|
+
"With confirmation": "Met bevestiging",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Gebruik de ware staat van de kwaliteitsstatus, anders wordt deze omgezet in procentuele waarde.",
|
|
60
|
+
"Offline Time": "Offline tijd",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Hier kunt u voor elke adapter de offline tijd van apparaten kiezen. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Kies de dag(en) waarop u de melding batterij bijna leeg wilt krijgen:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Hier kunt u voor elke adapter de offline tijd van apparaten kiezen.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Indien ingesteld op '-1', gebruikt de adapter het beschikbare, bereikbare, actieve enz. Datapunt.",
|
|
65
|
+
"when the device has one of these.": "wanneer het apparaat een van deze heeft.",
|
|
66
|
+
"Whatsapp Instance": "Whatsapp-instantie",
|
|
67
|
+
"Please choose the Whatsapp instance": "Kies de WhatsApp-instantie",
|
|
68
|
+
"Recipient (optional)": "Ontvanger (optioneel)",
|
|
69
|
+
"Choose your recipient": "Kies je ontvanger"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Wybierz swój identyfikator czatu",
|
|
53
53
|
"Add own notes, name, etc": "Dodaj własne notatki, imię itp.",
|
|
54
54
|
"List only devices with battery": "Wyświetlaj tylko urządzenia z baterią",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Wybierz, czy mają być wyświetlane tylko urządzenia z baterią, czy wszystkie urządzenia"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Wybierz, czy mają być wyświetlane tylko urządzenia z baterią, czy wszystkie urządzenia",
|
|
56
|
+
"Choose the priority": "Wybierz priorytet",
|
|
57
|
+
"High Priority": "Wysoki priorytet",
|
|
58
|
+
"With confirmation": "Z potwierdzeniem",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Użyj prawdziwego stanu ze stanu jakości, w przeciwnym razie zostanie przekonwertowany w wartości procentowej.",
|
|
60
|
+
"Offline Time": "Czas offline",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Tutaj możesz wybrać czas offline urządzeń dla każdego adaptera. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Wybierz dzień lub dni, w których chcesz otrzymać komunikat o niskim poziomie baterii:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Tutaj możesz wybrać czas offline urządzeń dla każdego adaptera.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Jeśli ustawiono na „-1”, adapter użyje dostępnego, osiągalnego, aktywnego itp. punktu danych.",
|
|
65
|
+
"when the device has one of these.": "gdy urządzenie ma jeden z nich.",
|
|
66
|
+
"Whatsapp Instance": "Instancja Whatsapp",
|
|
67
|
+
"Please choose the Whatsapp instance": "Wybierz instancję Whatsapp",
|
|
68
|
+
"Recipient (optional)": "Odbiorca (opcjonalnie)",
|
|
69
|
+
"Choose your recipient": "Wybierz odbiorcę"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Escolha seu Chat-ID",
|
|
53
53
|
"Add own notes, name, etc": "Adicione notas próprias, nome, etc.",
|
|
54
54
|
"List only devices with battery": "Listar apenas dispositivos com bateria",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Escolha se apenas os dispositivos com bateria devem ser listados ou todos os dispositivos"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Escolha se apenas os dispositivos com bateria devem ser listados ou todos os dispositivos",
|
|
56
|
+
"Choose the priority": "Escolha a prioridade",
|
|
57
|
+
"High Priority": "Prioridade máxima",
|
|
58
|
+
"With confirmation": "Com confirmação",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Use o estado verdadeiro do estado de qualidade, caso contrário, ele será convertido em valor percentual.",
|
|
60
|
+
"Offline Time": "Tempo off-line",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Aqui você pode escolher o tempo offline dos dispositivos para cada adaptador. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Escolha o(s) dia(s) em que deseja receber a mensagem de bateria fraca:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Aqui você pode escolher o tempo offline dos dispositivos para cada adaptador.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Se definido como '-1', o adaptador usará o ponto de dados disponível, alcançável, ativo etc.",
|
|
65
|
+
"when the device has one of these.": "quando o dispositivo tem um destes.",
|
|
66
|
+
"Whatsapp Instance": "Instância do Whatsapp",
|
|
67
|
+
"Please choose the Whatsapp instance": "Escolha a instância do Whatsapp",
|
|
68
|
+
"Recipient (optional)": "Destinatário (opcional)",
|
|
69
|
+
"Choose your recipient": "Escolha seu destinatário"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "Выберите свой идентификатор чата",
|
|
53
53
|
"Add own notes, name, etc": "Добавляйте собственные заметки, имя и т. д.",
|
|
54
54
|
"List only devices with battery": "Список только устройств с аккумулятором",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "Выберите, должны ли быть перечислены только устройства с аккумулятором или все устройства"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "Выберите, должны ли быть перечислены только устройства с аккумулятором или все устройства",
|
|
56
|
+
"Choose the priority": "Выберите приоритет",
|
|
57
|
+
"High Priority": "Высокий приоритет",
|
|
58
|
+
"With confirmation": "С подтверждением",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "Используйте истинное состояние из состояния качества, иначе оно будет преобразовано в процентное значение.",
|
|
60
|
+
"Offline Time": "Время автономной работы",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "Здесь вы можете выбрать время автономной работы устройств для каждого адаптера. ",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "Выберите день (дни), когда вы хотите получать сообщение о низком заряде батареи:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "Здесь вы можете выбрать время автономной работы устройств для каждого адаптера.",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "Если установлено значение «-1», адаптер будет использовать доступную, достижимую, активную точку данных и т. д.",
|
|
65
|
+
"when the device has one of these.": "когда устройство имеет один из них.",
|
|
66
|
+
"Whatsapp Instance": "WhatsApp экземпляр",
|
|
67
|
+
"Please choose the Whatsapp instance": "Пожалуйста, выберите экземпляр WhatsApp",
|
|
68
|
+
"Recipient (optional)": "Получатель (необязательно)",
|
|
69
|
+
"Choose your recipient": "Выберите получателя"
|
|
56
70
|
}
|
|
@@ -52,5 +52,19 @@
|
|
|
52
52
|
"Choose your Chat-ID": "选择您的聊天 ID",
|
|
53
53
|
"Add own notes, name, etc": "添加自己的注释、姓名等",
|
|
54
54
|
"List only devices with battery": "仅列出带电池的设备",
|
|
55
|
-
"Choose if only devices with battery should be listed or all devices": "选择是否应仅列出带电池的设备或所有设备"
|
|
55
|
+
"Choose if only devices with battery should be listed or all devices": "选择是否应仅列出带电池的设备或所有设备",
|
|
56
|
+
"Choose the priority": "选择优先级",
|
|
57
|
+
"High Priority": "高优先级",
|
|
58
|
+
"With confirmation": "经确认",
|
|
59
|
+
"Use the true state from quality state, otherwise it will be converted in percent value.": "使用质量状态中的真实状态,否则将转换为百分比值。",
|
|
60
|
+
"Offline Time": "离线时间",
|
|
61
|
+
"Here you can choose the offline time of devices for each adapter. The device is considered offline after the specified time. If set to '-1', the adapter will use the datapoint available, reachable, alive etc. when the device has one of these.": "您可以在此处为每个适配器选择设备的离线时间。",
|
|
62
|
+
"Choose the day(s) where you want to get the message of low battery:": "选择您希望收到电池电量不足消息的日期:",
|
|
63
|
+
"Here you can choose the offline time of devices for each adapter. ": "您可以在此处为每个适配器选择设备的离线时间。",
|
|
64
|
+
"If set to '-1', the adapter will use the datapoint available, reachable, alive etc.": "如果设置为“-1”,适配器将使用可用、可达、活动等数据点。",
|
|
65
|
+
"when the device has one of these.": "当设备具有其中之一时。",
|
|
66
|
+
"Whatsapp Instance": "Whatsapp 实例",
|
|
67
|
+
"Please choose the Whatsapp instance": "请选择 Whatsapp 实例",
|
|
68
|
+
"Recipient (optional)": "收件人(可选)",
|
|
69
|
+
"Choose your recipient": "选择您的收件人"
|
|
56
70
|
}
|
package/admin/index_m.html
CHANGED
|
@@ -14,50 +14,16 @@
|
|
|
14
14
|
<script type="text/javascript" src="../../js/adapter-settings.js"></script>
|
|
15
15
|
|
|
16
16
|
<!-- Load our own files -->
|
|
17
|
-
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
18
|
-
<script type="text/javascript" src="words.js"></script>
|
|
19
17
|
|
|
20
18
|
<script type="text/javascript">
|
|
21
19
|
// This will be called by the admin adapter when the settings page loads
|
|
22
20
|
function load(settings, onChange) {
|
|
23
|
-
|
|
24
|
-
if (!settings) return;
|
|
25
|
-
$('.value').each(function () {
|
|
26
|
-
var $key = $(this);
|
|
27
|
-
var id = $key.attr('id');
|
|
28
|
-
if ($key.attr('type') === 'checkbox') {
|
|
29
|
-
// do not call onChange direct, because onChange could expect some arguments
|
|
30
|
-
$key.prop('checked', settings[id])
|
|
31
|
-
.on('change', () => onChange())
|
|
32
|
-
;
|
|
33
|
-
} else {
|
|
34
|
-
// do not call onChange direct, because onChange could expect some arguments
|
|
35
|
-
$key.val(settings[id])
|
|
36
|
-
.on('change', () => onChange())
|
|
37
|
-
.on('keyup', () => onChange())
|
|
38
|
-
;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
onChange(false);
|
|
42
|
-
// reinitialize all the Materialize labels on the page if you are dynamically adding inputs:
|
|
43
|
-
if (M) M.updateTextFields();
|
|
21
|
+
|
|
44
22
|
}
|
|
45
23
|
|
|
46
24
|
// This will be called by the admin adapter when the user presses the save button
|
|
47
25
|
function save(callback) {
|
|
48
|
-
|
|
49
|
-
var obj = {};
|
|
50
|
-
$('.value').each(function () {
|
|
51
|
-
var $this = $(this);
|
|
52
|
-
if ($this.attr('type') === 'checkbox') {
|
|
53
|
-
obj[$this.attr('id')] = $this.prop('checked');
|
|
54
|
-
} else if ($this.attr('type') === 'number') {
|
|
55
|
-
obj[$this.attr('id')] = parseFloat($this.val());
|
|
56
|
-
} else {
|
|
57
|
-
obj[$this.attr('id')] = $this.val();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
callback(obj);
|
|
26
|
+
|
|
61
27
|
}
|
|
62
28
|
</script>
|
|
63
29
|
|
|
@@ -75,16 +41,11 @@
|
|
|
75
41
|
|
|
76
42
|
<!-- Put your content here -->
|
|
77
43
|
|
|
78
|
-
<!-- For example columns with settings: -->
|
|
79
44
|
<div class="row">
|
|
80
|
-
<div class="col
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<div class="col s6 input-field">
|
|
86
|
-
<input type="text" class="value" id="option2" />
|
|
87
|
-
<label for="option2" class="translate">option2</label>
|
|
45
|
+
<div class="col s12">
|
|
46
|
+
<p style="font-weight: bold; font-size: 1.2em; color: red;">
|
|
47
|
+
This adapter version has no support for "Admin 4" configuration. Please switch to "Admin 5" UI or downgrade to an older version (see changelog for details).
|
|
48
|
+
</p>
|
|
88
49
|
</div>
|
|
89
50
|
</div>
|
|
90
51
|
|