NEWS
[Vorstellung] Meine zweite Visualisierung
-
@Die-Gedanken-sind-frei für die von die benötigten Icons gibz es extra einen Adapter
-
@Kuddel Danke! habs gleich nach dem Posten selbst gesehen... schon doof
-
@Kuddel Mit geduckter Haltung habe ich einiges von Dir übernommen. Ich bekommen aber "UPTIME CCU" nicht hin. Ich habe dein Skript angepasst (ssh root@IPder CCU uptime | awk '{print $3_$4_$5}') bekomme aber kein Ergebnis, bzw. steht 0Tage 0 Std im iobroker Datenpunkt. Mit "ssh root@IPder CCU uptime" über die Konsole schon. Fehlt mir noch was?
Gruß -
@Blane67 poste mal bitte einen screenshot von der uptime ausgabe ohne pipe.
bei mir sieht das so aus:
root@ioBroker-MASTER:~# ssh root@192.168.4.5 uptime 13:34:44 up 38 days, 19:37, load average: 0.54, 0.66, 0.46
-
@Kuddel Sieht bei mir genauso aus.
-
@Blane67 und so ?
root@ioBroker-MASTER:~# ssh root@192.168.4.5 uptime | awk '{print $3_$4_$5}' 38days,19:47,
-
@Kuddel Sieht auch so aus.
-
@Blane67 dann muss irgendwo im blockly ein fehler sein.
ist exec in der javascript instanz erlaubt ?
-
@Kuddel Ja
-
@Kuddel Das Skript für IOBroker funktioniert.
uptime | awk '{print $3_$4_$5}'
liefert 0 Tage, 04 Std, 27 MinSkript für CCU geht nicht.
ssh root@192.168.1.11 uptime | awk '{print $3_$4_$5}'
liefert 0 Tage, 00 Std, Minüber die Konsole als root:
root@IOBroker:~# ssh root@192.168.1.11 uptime | awk '{print $3_$4_$5}'
9days,5:49,und als pi:
pi@IOBroker:~ $ ssh root@192.168.1.11 uptime | awk '{print $3_$4_$5}'
9days,5:50,Erlaube das Kommando "exec" in der Instanz ist angehakt.
Irgendwas fehlt doch
-
Habs gelöst.
Der public key musste auch für den User iobroker erstellt werden.
Konsole als root anmelden
Dannsu -s /bin/bash iobroker
Dann den public key erstellen und mit
ssh-copy-id -i /home/iobroker/.ssh/id_rsa.pub benutzer@entfernter rechner
auf den entfernten Rechner kopieren. Passwort 1 x eingeben. Fertig.
-
Hallo @Kuddel
super VIS. Konnte mir schon einiges an Ideen dazu abschauen.
Meine Frage bezieht sich auf die Überwachung der Adapter. Das funktioniert bei mir nicht. Hast du da dazu auch einen Tip?Fehler die Überwachung der Adapter funktioniert nicht, Log ist mit Fehlern gefüllt.
Hast du eine Idee dazu? Ich weiß nicht mehr weiter. Die Adapter sind bei mir installiert.javascript.0 2020-04-10 01:52:52.051 info (2942) Stop script script.js.java.abfragen.adapter_infos javascript.0 2020-04-10 01:52:46.192 error (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:46.191 error (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:46.191 error (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:46.191 error (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:46.191 error (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:46.191 error (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:46.191 error (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:46.191 error (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:46.190 error (2942) at script.js.java.abfragen.adapter_infos:14:39 javascript.0 2020-04-10 01:52:46.190 error (2942) Error in callback: TypeError: Cannot read property 'common' of null javascript.0 2020-04-10 01:52:46.189 warn (2942) Object "system.adapter.vis.0.alive" does not exist javascript.0 2020-04-10 01:52:46.172 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:46.172 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:46.172 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:46.172 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:46.171 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:46.171 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:46.171 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:46.171 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:46.170 warn (2942) at script.js.java.abfragen.adapter_infos:35:18 javascript.0 2020-04-10 01:52:46.170 warn (2942) getState "system.adapter.tr-064.0.uptime" not found (3) states[id]=null javascript.0 2020-04-10 01:52:46.014 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:46.014 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:46.014 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:46.014 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:46.014 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:46.013 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:46.013 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:46.013 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:46.013 warn (2942) at script.js.java.abfragen.adapter_infos:47:19 javascript.0 2020-04-10 01:52:46.012 warn (2942) getState "system.adapter.fullybrowser.0.alive" not found (3) states[id]=null javascript.0 2020-04-10 01:52:46.012 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:46.012 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:46.012 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:46.011 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:46.011 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:46.011 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:46.011 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:46.011 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:46.010 warn (2942) at script.js.java.abfragen.adapter_infos:35:18 javascript.0 2020-04-10 01:52:46.009 warn (2942) getState "system.adapter.fullybrowser.0.uptime" not found (3) states[id]=null javascript.0 2020-04-10 01:52:31.272 error (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:31.272 error (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:31.271 error (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:31.271 error (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:31.271 error (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:31.271 error (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:31.270 error (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:31.270 error (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:31.270 error (2942) at script.js.java.abfragen.adapter_infos:14:39 javascript.0 2020-04-10 01:52:31.269 error (2942) Error in callback: TypeError: Cannot read property 'common' of null javascript.0 2020-04-10 01:52:31.267 warn (2942) Object "system.adapter.vis.0.alive" does not exist javascript.0 2020-04-10 01:52:31.249 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:31.249 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:31.249 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:31.248 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:31.247 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:31.247 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:31.247 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:31.247 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:31.246 warn (2942) at script.js.java.abfragen.adapter_infos:35:18 javascript.0 2020-04-10 01:52:31.246 warn (2942) getState "system.adapter.tr-064.0.uptime" not found (3) states[id]=null javascript.0 2020-04-10 01:52:31.083 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:31.083 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:31.083 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:31.083 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:31.083 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:31.082 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:31.082 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:31.082 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:31.082 warn (2942) at script.js.java.abfragen.adapter_infos:47:19 javascript.0 2020-04-10 01:52:31.081 warn (2942) getState "system.adapter.fullybrowser.0.alive" not found (3) states[id]=null javascript.0 2020-04-10 01:52:31.081 warn (2942) at processImmediate (timers.js:658:5) javascript.0 2020-04-10 01:52:31.081 warn (2942) at tryOnImmediate (timers.js:676:5) javascript.0 2020-04-10 01:52:31.081 warn (2942) at runCallback (timers.js:705:18) javascript.0 2020-04-10 01:52:31.080 warn (2942) at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4851:37) javascript.0 2020-04-10 01:52:31.080 warn (2942) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:439:25) javascript.0 2020-04-10 01:52:31.080 warn (2942) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1101:38) javascript.0 2020-04-10 01:52:31.080 warn (2942) at Object.<anonymous> (script.js.java.abfragen.adapter_infos:13:19) javascript.0 2020-04-10 01:52:31.080 warn (2942) at Object.result.each (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:846:29) javascript.0 2020-04-10 01:52:31.079 warn (2942) at script.js.java.abfragen.adapter_infos:35:18 javascript.0 2020-04-10 01:52:31.073 warn (2942) getState "system.adapter.fullybrowser.0.uptime" not found (3) states[id]=null javascript.0 2020-04-10 01:52:21.887 info (2942) script.js.java.abfragen.adapter_infos: registered 2 subscriptions and 0 schedules
-
@cTech sagte in [Vorstellung] Meine zweite Visualisierung:
Die Adapter sind bei mir installiert.
Dann muss auch der Datenpunkt vorhanden sein ... laut Log fehlt er z.B.
(2942) getState "system.adapter.fullybrowser.0.uptime" not found (3) states[id]=null
-
und der fullybrowser auch installiert sein ... g
-
@harrym
diese Ansicht habe ich nicht. Ich bin gerade etwas verwirrt. Der Adapter ist installiert aber ich habe bei den Datenpunkten keinen Ordner System.Adapter....
Unter Objecte ist sofort der Fullybrowser. Oder habe ich einen Denkfehler?##Expertenmodus hilft weiter.
@Kuddel
Irgendwie will das Script das ja überwachen. Wie kann ich denn zur Not den Fullybrowser davon ausschließen? Blicke da durch das Script nicht durch -
@Glasfaser hierzu habe ich auch eine Frage. Wenn ich Simple-SSH zum JavaScript hinzufüge, gibt es Fehler und es kann nicht installiert werden. Was kann ich hier noch machen?
-
@cTech sagte in [Vorstellung] Meine zweite Visualisierung:
Was kann ich hier noch machen?
Das Log davon hier posten !
-
javascript.0 2020-04-10 16:20:04.151 info (32676) received all objects javascript.0 2020-04-10 16:20:02.829 info (32676) received all states host.ioBroker 2020-04-10 16:20:01.872 info instance system.adapter.dwd.0 started with pid 626 javascript.0 2020-04-10 16:19:58.028 info (32676) requesting all objects javascript.0 2020-04-10 16:19:58.024 info (32676) requesting all states javascript.0 2020-04-10 16:19:57.952 error (32676) Cannot install npm packet: Simple-ssh javascript.0 2020-04-10 16:19:57.951 error (32676) Cannot install Simple-ssh: 1 javascript.0 2020-04-10 16:19:57.935 error (32676) npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-04-10T14_19_57_533Z-debug.log javascript.0 2020-04-10 16:19:57.933 error (32676) javascript.0 2020-04-10 16:19:57.530 error (32676) 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. javascript.0 2020-04-10 16:19:57.528 error (32676) npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! javascript.0 2020-04-10 16:19:57.526 error (32676) 404 Not Found - GET https://registry.npmjs.org/Simple-ssh - Not found npm ERR! 404 npm ERR! 404 'Simple-ssh@latest' is not in the npm registry. javascript.0 2020-04-10 16:19:57.524 error (32676) npm ERR! javascript.0 2020-04-10 16:19:57.516 error (32676) ERR! code E404 javascript.0 2020-04-10 16:19:57.514 error (32676) npm javascript.0 2020-04-10 16:19:54.780 info (32676) npm install Simple-ssh --production --prefix "/opt/iobroker/node_modules/iobroker.javascript" (System call) javascript.0 2020-04-10 16:19:54.780 error (32676) Cannot install Simple-ssh: 1 javascript.0 2020-04-10 16:19:54.770 error (32676) npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-04-10T14_19_54_381Z-debug.log javascript.0 2020-04-10 16:19:54.378 error (32676) Your package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, fol javascript.0 2020-04-10 16:19:54.375 error (32676) Not Found - GET https://registry.npmjs.org/Simple-ssh - Not found npm ERR! 404 npm ERR! 404 'Simple-ssh@latest' is not in the npm registry. npm ERR! 404 javascript.0 2020-04-10 16:19:54.373 error (32676) npm ERR! 404 javascript.0 2020-04-10 16:19:54.367 error (32676) ERR! code E404 javascript.0 2020-04-10 16:19:54.365 error (32676) npm javascript.0 2020-04-10 16:19:49.391 info (32676) npm install Simple-ssh --production --prefix "/opt/iobroker/node_modules/iobroker.javascript" (System call) javascript.0 2020-04-10 16:19:49.390 error (32676) Cannot install Simple-ssh: 1 javascript.0 2020-04-10 16:19:49.381 error (32676) npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-04-10T14_19_49_369Z-debug.log javascript.0 2020-04-10 16:19:49.379 error (32676) javascript.0 2020-04-10 16:19:49.367 error (32676) 404 Your package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, javascript.0 2020-04-10 16:19:49.366 error (32676) ERR! 404 Not Found - GET https://registry.npmjs.org/Simple-ssh - Not found npm ERR! 404 npm ERR! 404 'Simple-ssh@latest' is not in the npm registry. npm ERR! javascript.0 2020-04-10 16:19:49.364 error (32676) npm javascript.0 2020-04-10 16:19:49.362 error (32676) npm ERR! code E404 host.ioBroker 2020-04-10 16:19:38.680 info instance system.adapter.javascript.0 started with pid 32676 host.ioBroker 2020-04-10 16:19:36.793 info instance system.adapter.javascript.0 terminated with code 156 (156)
-
Laut Log erreicht er die URL nicht ( error 404 )!!!
Gehen sonst alle Update´s ??
Text Edit:
Error bezog sich auf URL https://registry.npmjs.org .... -
@Glasfaser jetzt geht es. Habe neu gestartet und nochmal ein paar sachen probiert.
Beim Script für die Abfragen geht es auch alles soweit aber ich bekomme jetzt diese Fehler...
javascript.0 2020-04-11 14:41:46.605 warn (2639) at Timer.processTimers (timers.js:223:10) javascript.0 2020-04-11 14:41:46.605 warn (2639) at listOnTimeout (timers.js:263:5) javascript.0 2020-04-11 14:41:46.604 warn (2639) at tryOnTimeout (timers.js:300:5) javascript.0 2020-04-11 14:41:46.604 warn (2639) at ontimeout (timers.js:438:13) javascript.0 2020-04-11 14:41:46.603 warn (2639) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1460:29) javascript.0 2020-04-11 14:41:46.603 warn (2639) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1404:20) javascript.0 2020-04-11 14:41:46.601 warn (2639) You are assigning a object to the state "javascript.0.Adapter.Adapter1.Connected" which expects a number. Please fix your code to use a number or change the state type to object. This warning m javascript.0 2020-04-11 14:41:46.589 warn (2639) at Timer.processTimers (timers.js:223:10) javascript.0 2020-04-11 14:41:46.589 warn (2639) at listOnTimeout (timers.js:263:5) javascript.0 2020-04-11 14:41:46.589 warn (2639) at tryOnTimeout (timers.js:300:5) javascript.0 2020-04-11 14:41:46.588 warn (2639) at ontimeout (timers.js:438:13) javascript.0 2020-04-11 14:41:46.588 warn (2639) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1460:29) javascript.0 2020-04-11 14:41:46.588 warn (2639) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1404:20) javascript.0 2020-04-11 14:41:46.579 warn (2639) You are assigning a object to the state "javascript.0.Adapter.Adapter1.Uptime" which expects a string. Please fix your code to use a string or change the state type to object. This warning migh javascript.0 2020-04-11 14:41:38.136 info (2639) script.js.java.abfragen.adapter_infos: registered 2 subscriptions and 0 schedules