iobroker.sonoff 3.2.1 → 4.0.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 +1 -1
- package/README.md +95 -149
- package/admin/i18n/de.json +89 -0
- package/admin/i18n/en.json +89 -0
- package/admin/i18n/es.json +89 -0
- package/admin/i18n/fr.json +89 -0
- package/admin/i18n/it.json +89 -0
- package/admin/i18n/nl.json +89 -0
- package/admin/i18n/pl.json +89 -0
- package/admin/i18n/pt.json +89 -0
- package/admin/i18n/ru.json +89 -0
- package/admin/i18n/uk.json +89 -0
- package/admin/i18n/zh-cn.json +89 -0
- package/admin/jsonConfig.json +394 -125
- package/build/lib/bridge.js +512 -0
- package/build/lib/bridge.js.map +1 -0
- package/build/lib/checkStates.js +68 -0
- package/build/lib/checkStates.js.map +1 -0
- package/build/lib/datapoints.js +430 -0
- package/build/lib/datapoints.js.map +1 -0
- package/build/lib/mqttBase.js +1280 -0
- package/build/lib/mqttBase.js.map +1 -0
- package/build/lib/server.js +485 -0
- package/build/lib/server.js.map +1 -0
- package/build/main.js +103 -0
- package/build/main.js.map +1 -0
- package/io-package.json +64 -43
- package/package.json +23 -19
- package/admin/i18n/de/translations.json +0 -54
- package/admin/i18n/en/translations.json +0 -54
- package/admin/i18n/es/translations.json +0 -54
- package/admin/i18n/fr/translations.json +0 -54
- package/admin/i18n/it/translations.json +0 -54
- package/admin/i18n/nl/translations.json +0 -54
- package/admin/i18n/pl/translations.json +0 -54
- package/admin/i18n/pt/translations.json +0 -54
- package/admin/i18n/ru/translations.json +0 -54
- package/admin/i18n/uk/translations.json +0 -54
- package/admin/i18n/zh-cn/translations.json +0 -54
- package/admin/index.html +0 -177
- package/admin/index_m.html +0 -218
- package/admin/words.js +0 -63
- package/lib/datapoints.js +0 -216
- package/lib/server.js +0 -1810
- package/main.js +0 -99
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Paramètres Sonoff",
|
|
3
|
-
"Authentication settings": "Paramètres d'authentification",
|
|
4
|
-
"Auto creation of states": "Création automatique d'états",
|
|
5
|
-
"Chained certificate:": "Certificat chaîné",
|
|
6
|
-
"Client": "Client/abonné",
|
|
7
|
-
"Client ID:": "identité du client",
|
|
8
|
-
"Client timeout": "Délai d'expiration du client",
|
|
9
|
-
"Connection": "Connexion",
|
|
10
|
-
"Connection settings": "Paramètres de connexion",
|
|
11
|
-
"Create object tree": "Créer une arborescence d'objets",
|
|
12
|
-
"Divided by comma": "Divisé par une virgule, par ex. 'mqtt/0/#, javascript/#'",
|
|
13
|
-
"For stat/RESULT": "Pour stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Pour tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Pour tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Ignorer les avertissements avec pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Intervalle avant d'envoyer des sujets par connexion",
|
|
19
|
-
"Main settings": "Réglages principaux",
|
|
20
|
-
"Mask to publish": "par exemple. 'mqtt.0.*, javascript.*'",
|
|
21
|
-
"Mask to publish own states:": "Masque pour publier ses propres états",
|
|
22
|
-
"Max topic length:": "Longueur maximale du nom de la rubrique",
|
|
23
|
-
"Other settings": "Autres réglages",
|
|
24
|
-
"Password confirmation:": "Confirmation mot de passe",
|
|
25
|
-
"Password:": "Mot de passe",
|
|
26
|
-
"Patterns:": "Modèles de souscription",
|
|
27
|
-
"Port:": "Port",
|
|
28
|
-
"Prefix for topics:": "Préfixe pour tous les sujets",
|
|
29
|
-
"Private certificate:": "Certificat privé",
|
|
30
|
-
"Public certificate:": "Certificat public",
|
|
31
|
-
"Publish all states at start:": "Publier ses propres états sur se connecter",
|
|
32
|
-
"Publish states on subscribe:": "Publier les états sur l'abonnement",
|
|
33
|
-
"Result: ": "Résultat",
|
|
34
|
-
"Secure:": "Garantir",
|
|
35
|
-
"Send interval:": "Envoyer un intervalle",
|
|
36
|
-
"Send states (ack=true) too:": "Envoyer des états (ack = true) aussi",
|
|
37
|
-
"Server": "Serveur/courtier",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Définissez des certificats ou chargez-les d'abord dans les paramètres du système (en haut à droite).",
|
|
39
|
-
"Sonoff Settings": "Paramètres Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Paramètres de l'adaptateur Sonoff",
|
|
41
|
-
"Store only on change:": "Publier uniquement en cas de modification",
|
|
42
|
-
"Test connection": "Tester la connexion avec le serveur",
|
|
43
|
-
"Trace output for every message:": "Trace de sortie pour chaque message",
|
|
44
|
-
"Type:": "Type",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Utilisez aussi WebSockets",
|
|
47
|
-
"Use chunk patch:": "Utiliser un patch de morceau",
|
|
48
|
-
"Use different topic names for set and get:": "Utilisez différents noms de sujet pour définir et obtenir",
|
|
49
|
-
"User:": "Utilisateur",
|
|
50
|
-
"WARNING! Check README.md!": "AVERTISSEMENT! Vérifiez README.md!",
|
|
51
|
-
"chars": "chars",
|
|
52
|
-
"connected": "connecté",
|
|
53
|
-
"ms": "Mme"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Impostazioni Sonoff",
|
|
3
|
-
"Authentication settings": "Impostazioni di autenticazione",
|
|
4
|
-
"Auto creation of states": "Creazione automatica di stati",
|
|
5
|
-
"Chained certificate:": "Certificato incatenato",
|
|
6
|
-
"Client": "Client/abbonato",
|
|
7
|
-
"Client ID:": "Identificativo cliente",
|
|
8
|
-
"Client timeout": "Timeout del cliente",
|
|
9
|
-
"Connection": "Connessione",
|
|
10
|
-
"Connection settings": "Impostazioni di connessione",
|
|
11
|
-
"Create object tree": "Crea l'albero degli oggetti",
|
|
12
|
-
"Divided by comma": "Diviso in virgola, ad es. 'MQTT/0/#, JavaScript/#'",
|
|
13
|
-
"For stat/RESULT": "Per stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Per tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Per tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Ignora gli avvisi con pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Intervallo prima di inviare argomenti per connessione",
|
|
19
|
-
"Main settings": "Impostazioni principali",
|
|
20
|
-
"Mask to publish": "per esempio. 'Mqtt.0. *, Javascript. *'",
|
|
21
|
-
"Mask to publish own states:": "Maschera per pubblicare i propri stati",
|
|
22
|
-
"Max topic length:": "Lunghezza massima del nome dell'argomento",
|
|
23
|
-
"Other settings": "Altre impostazioni",
|
|
24
|
-
"Password confirmation:": "conferma password",
|
|
25
|
-
"Password:": "Parola d'ordine",
|
|
26
|
-
"Patterns:": "Iscriviti modelli",
|
|
27
|
-
"Port:": "Porta",
|
|
28
|
-
"Prefix for topics:": "Prefisso per tutti gli argomenti",
|
|
29
|
-
"Private certificate:": "Certificato privato",
|
|
30
|
-
"Public certificate:": "Certificato pubblico",
|
|
31
|
-
"Publish all states at start:": "Pubblica i tuoi stati sulla connessione",
|
|
32
|
-
"Publish states on subscribe:": "Pubblica stati su iscriviti",
|
|
33
|
-
"Result: ": "Risultato",
|
|
34
|
-
"Secure:": "Sicuro",
|
|
35
|
-
"Send interval:": "Invia intervallo",
|
|
36
|
-
"Send states (ack=true) too:": "Invia stati (ack = true) anche",
|
|
37
|
-
"Server": "Server/mediatore",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Imposta i certificati o caricali prima nelle impostazioni di sistema (in alto a destra).",
|
|
39
|
-
"Sonoff Settings": "Impostazioni Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Impostazioni dell'adattatore Sonoff",
|
|
41
|
-
"Store only on change:": "Pubblica solo sul cambiamento",
|
|
42
|
-
"Test connection": "Verifica la connessione con il server",
|
|
43
|
-
"Trace output for every message:": "Traccia l'output per ogni messaggio",
|
|
44
|
-
"Type:": "genere",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Utilizza anche WebSockets",
|
|
47
|
-
"Use chunk patch:": "Usa patch pezzo",
|
|
48
|
-
"Use different topic names for set and get:": "Usa diversi nomi di argomenti per impostare e ottenere",
|
|
49
|
-
"User:": "Utente",
|
|
50
|
-
"WARNING! Check README.md!": "AVVERTIMENTO! Controlla README.md!",
|
|
51
|
-
"chars": "caratteri",
|
|
52
|
-
"connected": "collegato",
|
|
53
|
-
"ms": "Signorina"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Configurações de Sonoff",
|
|
3
|
-
"Authentication settings": "Configurações de autenticação",
|
|
4
|
-
"Auto creation of states": "Automatisch creëren van staten",
|
|
5
|
-
"Chained certificate:": "Certificado acorrentado",
|
|
6
|
-
"Client": "Cliente/assinante",
|
|
7
|
-
"Client ID:": "ID do Cliente",
|
|
8
|
-
"Client timeout": "Client time-out",
|
|
9
|
-
"Connection": "Conexão",
|
|
10
|
-
"Connection settings": "Configurações de conexão",
|
|
11
|
-
"Create object tree": "Maak een objectboom",
|
|
12
|
-
"Divided by comma": "Dividido por vírgula, e. 'mqtt/0/#, javascript/#'",
|
|
13
|
-
"For stat/RESULT": "Voor stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Voor tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Voor tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Negeer waarschuwingen met pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Intervalo antes de enviar tópicos por conexão",
|
|
19
|
-
"Main settings": "Configurações principais",
|
|
20
|
-
"Mask to publish": "por exemplo. 'mqtt.0.*, javascript.*'",
|
|
21
|
-
"Mask to publish own states:": "Máscara para publicar estados próprios",
|
|
22
|
-
"Max topic length:": "Nome máximo do nome do tópico",
|
|
23
|
-
"Other settings": "Andere instellingen",
|
|
24
|
-
"Password confirmation:": "ConfirmaÇão Da Senha",
|
|
25
|
-
"Password:": "Senha",
|
|
26
|
-
"Patterns:": "Assinar padrões",
|
|
27
|
-
"Port:": "Porta",
|
|
28
|
-
"Prefix for topics:": "Prefix para todos os tópicos",
|
|
29
|
-
"Private certificate:": "Certificado privado",
|
|
30
|
-
"Public certificate:": "Certificado público",
|
|
31
|
-
"Publish all states at start:": "Publique seus próprios estados na conexão",
|
|
32
|
-
"Publish states on subscribe:": "Publique estados na assinatura",
|
|
33
|
-
"Result: ": "Resultado",
|
|
34
|
-
"Secure:": "Seguro",
|
|
35
|
-
"Send interval:": "Intervalo de envio",
|
|
36
|
-
"Send states (ack=true) too:": "Enviar estados (ack = true) também",
|
|
37
|
-
"Server": "Servidor/corretor",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Defina certificados ou carregue primeiro nas configurações do sistema (parte superior direita).",
|
|
39
|
-
"Sonoff Settings": "Configurações de Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Configurações do adaptador Sonoff",
|
|
41
|
-
"Store only on change:": "Publique apenas na mudança",
|
|
42
|
-
"Test connection": "Teste a conexão com o Servidor",
|
|
43
|
-
"Trace output for every message:": "Saída de rastreamento para cada mensagem",
|
|
44
|
-
"Type:": "Tipo",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Use também WebSockets",
|
|
47
|
-
"Use chunk patch:": "Use patch de pedaços",
|
|
48
|
-
"Use different topic names for set and get:": "Use nomes de tópicos diferentes para definir e obter",
|
|
49
|
-
"User:": "Do utilizador",
|
|
50
|
-
"WARNING! Check README.md!": "WAARSCHUWING! Controleer README.md!",
|
|
51
|
-
"chars": "caracteres",
|
|
52
|
-
"connected": "conectado",
|
|
53
|
-
"ms": "Senhora"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Ustawienia Sonoff",
|
|
3
|
-
"Authentication settings": "Ustawienia uwierzytelniania",
|
|
4
|
-
"Auto creation of states": "Automatyczne tworzenie stanów",
|
|
5
|
-
"Chained certificate:": "Przykuty certyfikat",
|
|
6
|
-
"Client": "Klient / subskrybent",
|
|
7
|
-
"Client ID:": "Identyfikator klienta",
|
|
8
|
-
"Client timeout": "Limit czasu klienta",
|
|
9
|
-
"Connection": "Połączenie",
|
|
10
|
-
"Connection settings": "Ustawienia połączenia",
|
|
11
|
-
"Create object tree": "Utwórz drzewo obiektów",
|
|
12
|
-
"Divided by comma": "Podzielone przecinkiem, np. \"mqtt / 0 / #, javascript / # '",
|
|
13
|
-
"For stat/RESULT": "Dla stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Dla tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Dla tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Ignoruj ostrzeżenia za pomocą polecenia pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Interwał przed wysłaniem tematów według połączenia",
|
|
19
|
-
"Main settings": "Ustawienia główne",
|
|
20
|
-
"Mask to publish": "na przykład \"mqtt.0. *, javascript. *\"",
|
|
21
|
-
"Mask to publish own states:": "Maskuj, aby publikować własne stany",
|
|
22
|
-
"Max topic length:": "Maksymalna długość nazwy tematu",
|
|
23
|
-
"Other settings": "Inne ustawienia",
|
|
24
|
-
"Password confirmation:": "Potwierdzenie hasła",
|
|
25
|
-
"Password:": "Hasło",
|
|
26
|
-
"Patterns:": "Wzorce subskrypcji",
|
|
27
|
-
"Port:": "Port",
|
|
28
|
-
"Prefix for topics:": "Prefiks dla wszystkich tematów",
|
|
29
|
-
"Private certificate:": "Prywatny certyfikat",
|
|
30
|
-
"Public certificate:": "Certyfikat publiczny",
|
|
31
|
-
"Publish all states at start:": "Opublikuj własne stany przy połączeniu",
|
|
32
|
-
"Publish states on subscribe:": "Opublikuj stany w subskrypcji",
|
|
33
|
-
"Result: ": "Wynik",
|
|
34
|
-
"Secure:": "Bezpieczne",
|
|
35
|
-
"Send interval:": "Interwał wysyłania",
|
|
36
|
-
"Send states (ack=true) too:": "Wyślij także stany (ack = true)",
|
|
37
|
-
"Server": "Serwer / broker",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Ustaw certyfikaty lub załaduj najpierw w ustawieniach systemu (prawy górny).",
|
|
39
|
-
"Sonoff Settings": "Ustawienia Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Ustawienia adaptera Sonoff",
|
|
41
|
-
"Store only on change:": "Opublikuj tylko w przypadku zmiany",
|
|
42
|
-
"Test connection": "Sprawdź połączenie z serwerem",
|
|
43
|
-
"Trace output for every message:": "Dane wyjściowe śledzenia dla każdej wiadomości",
|
|
44
|
-
"Type:": "Rodzaj",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Użyj także WebSockets",
|
|
47
|
-
"Use chunk patch:": "Użyj poprawki kawałka",
|
|
48
|
-
"Use different topic names for set and get:": "Używaj różnych nazw tematów do ustawiania i pobierania",
|
|
49
|
-
"User:": "Użytkownik",
|
|
50
|
-
"WARNING! Check README.md!": "OSTRZEŻENIE! Sprawdź README.md!",
|
|
51
|
-
"chars": "znaki",
|
|
52
|
-
"connected": "połączony",
|
|
53
|
-
"ms": "ms"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Configurações de Sonoff",
|
|
3
|
-
"Authentication settings": "Configurações de autenticação",
|
|
4
|
-
"Auto creation of states": "Criação automática de estados",
|
|
5
|
-
"Chained certificate:": "Certificado acorrentado",
|
|
6
|
-
"Client": "Cliente / assinante",
|
|
7
|
-
"Client ID:": "ID do Cliente",
|
|
8
|
-
"Client timeout": "Tempo limite do cliente",
|
|
9
|
-
"Connection": "Conexão",
|
|
10
|
-
"Connection settings": "Configurações de conexão",
|
|
11
|
-
"Create object tree": "Criar árvore de objetos",
|
|
12
|
-
"Divided by comma": "Dividido por vírgula, e. 'mqtt / 0 / #, javascript / #'",
|
|
13
|
-
"For stat/RESULT": "Para stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Para tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Para tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Ignore os avisos com pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Intervalo antes de enviar tópicos por conexão",
|
|
19
|
-
"Main settings": "Configurações principais",
|
|
20
|
-
"Mask to publish": "por exemplo. 'mqtt.0. *, javascript. *'",
|
|
21
|
-
"Mask to publish own states:": "Máscara para publicar estados próprios",
|
|
22
|
-
"Max topic length:": "Nome máximo do nome do tópico",
|
|
23
|
-
"Other settings": "Outros ajustes",
|
|
24
|
-
"Password confirmation:": "ConfirmaÇão Da Senha",
|
|
25
|
-
"Password:": "Senha",
|
|
26
|
-
"Patterns:": "Assinar padrões",
|
|
27
|
-
"Port:": "Porta",
|
|
28
|
-
"Prefix for topics:": "Prefix para todos os tópicos",
|
|
29
|
-
"Private certificate:": "Certificado privado",
|
|
30
|
-
"Public certificate:": "Certificado público",
|
|
31
|
-
"Publish all states at start:": "Publique seus próprios estados na conexão",
|
|
32
|
-
"Publish states on subscribe:": "Publique estados na assinatura",
|
|
33
|
-
"Result: ": "Resultado",
|
|
34
|
-
"Secure:": "Seguro",
|
|
35
|
-
"Send interval:": "Intervalo de envio",
|
|
36
|
-
"Send states (ack=true) too:": "Enviar estados (ack = true) também",
|
|
37
|
-
"Server": "Servidor / corretor",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Defina certificados ou carregue primeiro nas configurações do sistema (parte superior direita).",
|
|
39
|
-
"Sonoff Settings": "Configurações de Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Configurações do adaptador Sonoff",
|
|
41
|
-
"Store only on change:": "Publique apenas na mudança",
|
|
42
|
-
"Test connection": "Teste a conexão com o Servidor",
|
|
43
|
-
"Trace output for every message:": "Saída de rastreamento para cada mensagem",
|
|
44
|
-
"Type:": "Tipo",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Use também WebSockets",
|
|
47
|
-
"Use chunk patch:": "Use patch de pedaços",
|
|
48
|
-
"Use different topic names for set and get:": "Use nomes de tópicos diferentes para definir e obter",
|
|
49
|
-
"User:": "Utilizador",
|
|
50
|
-
"WARNING! Check README.md!": "AVISO! Verifique README.md!",
|
|
51
|
-
"chars": "caracteres",
|
|
52
|
-
"connected": "conectado",
|
|
53
|
-
"ms": "Senhora"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Настройки Sonoff",
|
|
3
|
-
"Authentication settings": "Настройки аутентификации",
|
|
4
|
-
"Auto creation of states": "Auto creation of states",
|
|
5
|
-
"Chained certificate:": "'Chained' сертификат",
|
|
6
|
-
"Client": "Клиент/подписчик",
|
|
7
|
-
"Client ID:": "ID Клиента",
|
|
8
|
-
"Client timeout": "Время ожидания клиента",
|
|
9
|
-
"Connection": "Соединение",
|
|
10
|
-
"Connection settings": "Настройки соединения",
|
|
11
|
-
"Create object tree": "Создать дерево объектов",
|
|
12
|
-
"Divided by comma": "Использовать запятую, как разделитеть. Например 'mqtt/0/#,javascript/#'",
|
|
13
|
-
"For stat/RESULT": "Для stat/RESULT",
|
|
14
|
-
"For tele/SENSOR": "Для tele/SENSOR",
|
|
15
|
-
"For tele/STATE": "Для tele/STATE",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Игнорировать предупреждения с помощью pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Интервал перед отсылкой всей топиков после соединения",
|
|
19
|
-
"Main settings": "Основные настройки",
|
|
20
|
-
"Mask to publish": "Использовать запятую, как разделитеть. Например 'mqtt.0.*,javascript.*'",
|
|
21
|
-
"Mask to publish own states:": "Маска для собственных значений",
|
|
22
|
-
"Max topic length:": "Максимальная длина имени топика",
|
|
23
|
-
"Other settings": "Другие настройки",
|
|
24
|
-
"Password confirmation:": "Подтверждение пароля",
|
|
25
|
-
"Password:": "Пароль",
|
|
26
|
-
"Patterns:": "Шаблоны подписки",
|
|
27
|
-
"Port:": "Порт",
|
|
28
|
-
"Prefix for topics:": "Префикс для всех значений",
|
|
29
|
-
"Private certificate:": "'Private' сертификат",
|
|
30
|
-
"Public certificate:": "'Public' сертификат",
|
|
31
|
-
"Publish all states at start:": "Выдавать собственные значения при старте",
|
|
32
|
-
"Publish states on subscribe:": "Публиковать состояния при подписке",
|
|
33
|
-
"Result: ": "Результат ",
|
|
34
|
-
"Secure:": "SSL",
|
|
35
|
-
"Send interval:": "Интервал между пакетами",
|
|
36
|
-
"Send states (ack=true) too:": "Посылать не только команды, но и состояния (ack=true)",
|
|
37
|
-
"Server": "Сервер/брокер",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Нужно выбрать сертификаты или сначала загрузить их в системных настройках (вверху справа).",
|
|
39
|
-
"Sonoff Settings": "Настройки Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Настройки драйвера Sonoff",
|
|
41
|
-
"Store only on change:": "Отсылать только изменения",
|
|
42
|
-
"Test connection": "Проверить настройки",
|
|
43
|
-
"Trace output for every message:": "Вывод лога для каждого изменения",
|
|
44
|
-
"Type:": "Тип",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Сервер WebSockets тоже",
|
|
47
|
-
"Use chunk patch:": "Использовать заплатку для Chunking",
|
|
48
|
-
"Use different topic names for set and get:": "Использовать разные имена для чтения и записи",
|
|
49
|
-
"User:": "Имя пользователя",
|
|
50
|
-
"WARNING! Check README.md!": "ПРЕДУПРЕЖДЕНИЕ! Проверьте README.md!",
|
|
51
|
-
"chars": "символов",
|
|
52
|
-
"connected": "успешно",
|
|
53
|
-
"ms": "мс"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Налаштування Sonoff",
|
|
3
|
-
"Authentication settings": "Налаштування автентифікації",
|
|
4
|
-
"Auto creation of states": "Автоматичне створення станів",
|
|
5
|
-
"Chained certificate:": "Прикутий сертифікат",
|
|
6
|
-
"Client": "Клієнт/абонент",
|
|
7
|
-
"Client ID:": "ID клієнта",
|
|
8
|
-
"Client timeout": "Час очікування клієнта",
|
|
9
|
-
"Connection": "Підключення",
|
|
10
|
-
"Connection settings": "Налаштування підключення",
|
|
11
|
-
"Create object tree": "Створення дерева об'єктів",
|
|
12
|
-
"Divided by comma": "Розділяється комою, напр. 'mqtt/0/#,javascript/#'",
|
|
13
|
-
"For stat/RESULT": "Для статистики/РЕЗУЛЬТАТУ",
|
|
14
|
-
"For tele/SENSOR": "Для теле/сенсора",
|
|
15
|
-
"For tele/STATE": "Для теле/ДЕРЖ",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "Ігноруйте попередження за допомогою pingreq",
|
|
18
|
-
"Interval before send topics by connection:": "Інтервал перед надсиланням тем за підключенням",
|
|
19
|
-
"Main settings": "Основні налаштування",
|
|
20
|
-
"Mask to publish": "напр. 'mqtt.0.*,javascript.*'",
|
|
21
|
-
"Mask to publish own states:": "Маска для публікації власних станів",
|
|
22
|
-
"Max topic length:": "Максимальна довжина назви теми",
|
|
23
|
-
"Other settings": "Інші налаштування",
|
|
24
|
-
"Password confirmation:": "Підтвердження паролю",
|
|
25
|
-
"Password:": "Пароль",
|
|
26
|
-
"Patterns:": "Підписатися на шаблони",
|
|
27
|
-
"Port:": "Порт",
|
|
28
|
-
"Prefix for topics:": "Префікс для всіх тем",
|
|
29
|
-
"Private certificate:": "Приватний сертифікат",
|
|
30
|
-
"Public certificate:": "Публічний сертифікат",
|
|
31
|
-
"Publish all states at start:": "Публікуйте власні стани на підключенні",
|
|
32
|
-
"Publish states on subscribe:": "Публікувати стани на підписці",
|
|
33
|
-
"Result: ": "Результат",
|
|
34
|
-
"Secure:": "Безпечний",
|
|
35
|
-
"Send interval:": "Інтервал надсилання",
|
|
36
|
-
"Send states (ack=true) too:": "Стани надсилання (ack=true) теж",
|
|
37
|
-
"Server": "Сервер/брокер",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "Спершу встановіть сертифікати або завантажте їх у налаштуваннях системи (справа вгорі).",
|
|
39
|
-
"Sonoff Settings": "Налаштування Sonoff",
|
|
40
|
-
"Sonoff adapter settings": "Налаштування адаптера Sonoff",
|
|
41
|
-
"Store only on change:": "Публікувати/оновлювати лише у разі зміни",
|
|
42
|
-
"Test connection": "Перевірте з'єднання з сервером",
|
|
43
|
-
"Trace output for every message:": "Виведення трасування для кожного повідомлення",
|
|
44
|
-
"Type:": "Тип",
|
|
45
|
-
"URL:": "URL",
|
|
46
|
-
"Use WebSockets:": "Також використовуйте WebSockets",
|
|
47
|
-
"Use chunk patch:": "Використовуйте chunk patch",
|
|
48
|
-
"Use different topic names for set and get:": "Використовуйте різні назви тем для set і get",
|
|
49
|
-
"User:": "Користувач",
|
|
50
|
-
"WARNING! Check README.md!": "УВАГА! Перевірте README.md!",
|
|
51
|
-
"chars": "символи",
|
|
52
|
-
"connected": "підключений",
|
|
53
|
-
"ms": "РС"
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Adapter settings": "Sonoff设置",
|
|
3
|
-
"Authentication settings": "验证设定",
|
|
4
|
-
"Auto creation of states": "自动创建状态",
|
|
5
|
-
"Chained certificate:": "连锁证书",
|
|
6
|
-
"Client": "客户/订户",
|
|
7
|
-
"Client ID:": "客户编号",
|
|
8
|
-
"Client timeout": "客户端超时",
|
|
9
|
-
"Connection": "连接",
|
|
10
|
-
"Connection settings": "连接设定",
|
|
11
|
-
"Create object tree": "创建对象树",
|
|
12
|
-
"Divided by comma": "除以逗号,例如 'mqtt/0/#,javascript/#'",
|
|
13
|
-
"For stat/RESULT": "对于统计/结果",
|
|
14
|
-
"For tele/SENSOR": "对于电话/传感器",
|
|
15
|
-
"For tele/STATE": "对于电话/状态",
|
|
16
|
-
"IP": "IP",
|
|
17
|
-
"Ignore warnings with pingreq": "忽略pingreq警告",
|
|
18
|
-
"Interval before send topics by connection:": "通过连接发送主题之前的时间间隔",
|
|
19
|
-
"Main settings": "主要设定",
|
|
20
|
-
"Mask to publish": "例如 'mqtt.0.*,javascript.*'",
|
|
21
|
-
"Mask to publish own states:": "遮罩以发布自己的状态",
|
|
22
|
-
"Max topic length:": "主题名称的最大长度",
|
|
23
|
-
"Other settings": "其他设置",
|
|
24
|
-
"Password confirmation:": "确认密码",
|
|
25
|
-
"Password:": "密码",
|
|
26
|
-
"Patterns:": "订阅模式",
|
|
27
|
-
"Port:": "港口",
|
|
28
|
-
"Prefix for topics:": "所有主题的前缀",
|
|
29
|
-
"Private certificate:": "私人证书",
|
|
30
|
-
"Public certificate:": "公开证书",
|
|
31
|
-
"Publish all states at start:": "在连接上发布自己的状态",
|
|
32
|
-
"Publish states on subscribe:": "发布订阅状态",
|
|
33
|
-
"Result: ": "结果",
|
|
34
|
-
"Secure:": "安全",
|
|
35
|
-
"Send interval:": "发送间隔",
|
|
36
|
-
"Send states (ack=true) too:": "也发送状态(ack=true)",
|
|
37
|
-
"Server": "服务器/经纪人",
|
|
38
|
-
"Set certificates or load it first in the system settings (right top).": "设置证书或先将其加载到系统设置中(右上角)。",
|
|
39
|
-
"Sonoff Settings": "Sonoff设置",
|
|
40
|
-
"Sonoff adapter settings": "Sonoff适配器设置",
|
|
41
|
-
"Store only on change:": "仅在更改时发布",
|
|
42
|
-
"Test connection": "测试与服务器的连接",
|
|
43
|
-
"Trace output for every message:": "跟踪每条消息的输出",
|
|
44
|
-
"Type:": "类型",
|
|
45
|
-
"URL:": "网址",
|
|
46
|
-
"Use WebSockets:": "也使用WebSockets",
|
|
47
|
-
"Use chunk patch:": "使用大块补丁",
|
|
48
|
-
"Use different topic names for set and get:": "使用不同的主题名称进行设置和获取",
|
|
49
|
-
"User:": "用户",
|
|
50
|
-
"WARNING! Check README.md!": "警告!检查 README.md!",
|
|
51
|
-
"chars": "字符",
|
|
52
|
-
"connected": "连接的",
|
|
53
|
-
"ms": "毫秒"
|
|
54
|
-
}
|
package/admin/index.html
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<!-- these 4 files always have to be included -->
|
|
4
|
-
<link rel="stylesheet" type="text/css" href="../../lib/css/themes/jquery-ui/redmond/jquery-ui.min.css"/>
|
|
5
|
-
<script type="text/javascript" src="../../lib/js/jquery-1.11.1.min.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../../socket.io/socket.io.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../../lib/js/jquery-ui-1.10.3.full.min.js"></script>
|
|
8
|
-
|
|
9
|
-
<!-- these three files have to be always included -->
|
|
10
|
-
<link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
|
|
11
|
-
<script type="text/javascript" src="../../js/translate.js"></script>
|
|
12
|
-
<script type="text/javascript" src="../../js/adapter-settings.js"></script>
|
|
13
|
-
<script type="text/javascript" src="words.js"></script>
|
|
14
|
-
<!-- you have to define 2 functions in the global scope: -->
|
|
15
|
-
<script type="text/javascript">
|
|
16
|
-
var onChange;
|
|
17
|
-
var secret;
|
|
18
|
-
|
|
19
|
-
function encrypt(key, value) {
|
|
20
|
-
var result = '';
|
|
21
|
-
for(var i = 0; i < value.length; ++i) {
|
|
22
|
-
result += String.fromCharCode(key[i % key.length].charCodeAt(0) ^ value.charCodeAt(i));
|
|
23
|
-
}
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function decrypt(key, value) {
|
|
28
|
-
var result = '';
|
|
29
|
-
for(var i = 0; i < value.length; ++i) {
|
|
30
|
-
result += String.fromCharCode(key[i % key.length].charCodeAt(0) ^ value.charCodeAt(i));
|
|
31
|
-
}
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function setValue(id, value) {
|
|
36
|
-
var $value = $('#' + id + '.value');
|
|
37
|
-
if ($value.attr('type') === 'checkbox') {
|
|
38
|
-
$value.prop('checked', value).change(function() {
|
|
39
|
-
onChange();
|
|
40
|
-
});
|
|
41
|
-
} else {
|
|
42
|
-
$value.val(value).change(function() {
|
|
43
|
-
onChange();
|
|
44
|
-
}).keyup(function() {
|
|
45
|
-
onChange();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function loadHelper(settings, param, subparam) {
|
|
51
|
-
if (!settings) return;
|
|
52
|
-
|
|
53
|
-
if (settings.useChunkPatch === undefined) settings.useChunkPatch = false;
|
|
54
|
-
if (settings.timeout === undefined) settings.timeout = 300;
|
|
55
|
-
|
|
56
|
-
if (subparam && param) {
|
|
57
|
-
for (var key in settings[param][subparam]) {
|
|
58
|
-
if (typeof settings[param][subparam][key] !== 'object') {
|
|
59
|
-
setValue(param + '_' + subparam + '_' + key, settings[param][subparam][key]);
|
|
60
|
-
} else {
|
|
61
|
-
alert('4th level is not supported');
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
} else if (param) {
|
|
65
|
-
for (var key in settings[param]) {
|
|
66
|
-
if (typeof settings[param][key] !== 'object') {
|
|
67
|
-
setValue(param + '_' + key, settings[param][key]);
|
|
68
|
-
} else {
|
|
69
|
-
loadHelper(settings, param, key);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
} else {
|
|
73
|
-
for (var key in settings) {
|
|
74
|
-
if (typeof settings[key] !== 'object') {
|
|
75
|
-
if (key === 'pass') {
|
|
76
|
-
settings[key] = decrypt(secret, settings[key]);
|
|
77
|
-
}
|
|
78
|
-
setValue(key, settings[key]);
|
|
79
|
-
} else {
|
|
80
|
-
loadHelper(settings, key);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// the function loadSettings has to exist ...
|
|
87
|
-
function load(settings, _onChange) {
|
|
88
|
-
$('#tabs').tabs();
|
|
89
|
-
onChange = _onChange;
|
|
90
|
-
socket.emit('getObject', 'system.config', function (err, obj) {
|
|
91
|
-
secret = (obj.native ? obj.native.secret : '') || 'Zgfr56gFe87jJOM';
|
|
92
|
-
loadHelper(settings);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
onChange(false);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function saveHelper(obj, id, value) {
|
|
99
|
-
var ids = id.split('_');
|
|
100
|
-
|
|
101
|
-
if (ids.length === 1) {
|
|
102
|
-
if (ids[0] === 'pass') value = encrypt(secret, value);
|
|
103
|
-
obj[id] = value;
|
|
104
|
-
} else if (ids.length === 2) {
|
|
105
|
-
if (!obj[ids[0]]) obj[ids[0]] = {};
|
|
106
|
-
obj[ids[0]][ids[1]] = value;
|
|
107
|
-
} else if (ids.length === 3) {
|
|
108
|
-
if (!obj[ids[0]]) obj[ids[0]] = {};
|
|
109
|
-
if (!obj[ids[0]][ids[1]]) obj[ids[0]][ids[1]] = {};
|
|
110
|
-
obj[ids[0]][ids[1]][ids[2]] = value;
|
|
111
|
-
}
|
|
112
|
-
return obj;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function getSettings() {
|
|
116
|
-
var obj = {};
|
|
117
|
-
$('.value').each(function () {
|
|
118
|
-
var $this = $(this);
|
|
119
|
-
var id = $this.attr('id');
|
|
120
|
-
|
|
121
|
-
if ($this.attr('type') === 'checkbox') {
|
|
122
|
-
obj = saveHelper(obj, id, $this.prop('checked'))
|
|
123
|
-
} else {
|
|
124
|
-
obj = saveHelper(obj, id, $this.val())
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
return obj;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function save(callback) {
|
|
131
|
-
if ($('#pass').val() !== $('#pass_confirm').val()) {
|
|
132
|
-
showMessage(_('Password confirmation is not equal with password'));
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
callback(getSettings());
|
|
137
|
-
}
|
|
138
|
-
</script>
|
|
139
|
-
</head>
|
|
140
|
-
<body>
|
|
141
|
-
<!-- you have to put your config page in a div with id adapter-container -->
|
|
142
|
-
<div id="adapter-container">
|
|
143
|
-
<table><tr>
|
|
144
|
-
<td><img src="sonoff.png"></td>
|
|
145
|
-
<td style="padding-top: 20px;padding-left: 10px"><h3 class="translate">Sonoff adapter settings</h3></td>
|
|
146
|
-
</tr></table>
|
|
147
|
-
<table>
|
|
148
|
-
<tr>
|
|
149
|
-
<td colspan='2'><h4 class="translate">Connection settings</h4></td>
|
|
150
|
-
</tr>
|
|
151
|
-
<tr>
|
|
152
|
-
<td><label class="translate" for="port">Port:</label></td>
|
|
153
|
-
<td><input id="port" type="number" min="1" max="65565" class="value"/></td>
|
|
154
|
-
</tr>
|
|
155
|
-
<tr>
|
|
156
|
-
<td><label class="translate" for="timeout">Client timeout (sec):</label></td>
|
|
157
|
-
<td><input id="timeout" type="number" min="1" max="65565" class="value"/></td>
|
|
158
|
-
</tr>
|
|
159
|
-
<tr>
|
|
160
|
-
<td colspan='2'><h4 class="translate">Authentication settings</h4></td>
|
|
161
|
-
</tr>
|
|
162
|
-
<tr>
|
|
163
|
-
<td><label class="translate" for="user">User:</label></td>
|
|
164
|
-
<td><input id="user" size="17" class="value"/></td>
|
|
165
|
-
</tr>
|
|
166
|
-
<tr>
|
|
167
|
-
<td><label class="translate" for="pass">Password:</label></td>
|
|
168
|
-
<td><input id="pass" type="password" size="17" class="value"/></td>
|
|
169
|
-
</tr>
|
|
170
|
-
<tr>
|
|
171
|
-
<td><label class="translate" for="pass_confirm">Password confirmation:</label></td>
|
|
172
|
-
<td><input id="pass_confirm" type="password" size="17"/></td>
|
|
173
|
-
</tr>
|
|
174
|
-
</table>
|
|
175
|
-
</div>
|
|
176
|
-
</body>
|
|
177
|
-
</html>
|