@Homoran
Hehe nice für meine vu gibt's zum Glück schon nen Adapter.
Hab sowas mit meinem Unifi UDMPro - UbiOs gemacht und lese damit die vpn l2tp Verbindungen aus.
Tipp: Allen Datenpunkte des Host (DreamBox) auf die Blacklist ziehen, dann hast auch keine Fehlermeldung mehr.
wollte nur mal fragen - absolut keine prio - habe meine axhd60 ( enigma-receiver) eingebunden
habe alle datenpunkte entfernt außer ip, is-online, restart und shutdown. 2 befehle sind noch drin - werden auch angezeigt
ich bekomme leider fehler, obwohl ich die daten dazu nicht abfrage (systemctl, os release)
linux-control.0 2020-08-21 07:21:32.593 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:21:32.593 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:21:32.593 error (24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
linux-control.0 2020-08-21 07:21:32.578 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
linux-control.0 2020-08-21 07:21:32.578 error at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
linux-control.0 2020-08-21 07:21:32.578 error at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
linux-control.0 2020-08-21 07:21:32.578 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:21:32.578 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:21:32.578 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:21:32.578 error (24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
linux-control.0 2020-08-21 07:21:32.565 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
linux-control.0 2020-08-21 07:21:32.565 error at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
linux-control.0 2020-08-21 07:21:32.565 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:21:32.565 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:21:32.565 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:21:32.565 error (24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
linux-control.0 2020-08-21 07:20:32.431 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
linux-control.0 2020-08-21 07:20:32.431 error at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
linux-control.0 2020-08-21 07:20:32.431 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:20:32.431 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:20:32.431 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:20:32.431 error (24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
linux-control.0 2020-08-21 07:20:32.399 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
linux-control.0 2020-08-21 07:20:32.399 error at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
linux-control.0 2020-08-21 07:20:32.399 error at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
linux-control.0 2020-08-21 07:20:32.399 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:20:32.399 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:20:32.399 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:20:32.399 error (24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
linux-control.0 2020-08-21 07:20:32.386 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
linux-control.0 2020-08-21 07:20:32.386 error at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
linux-control.0 2020-08-21 07:20:32.386 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:20:32.386 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:20:32.386 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:20:32.386 error (24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
linux-control.0 2020-08-21 07:19:32.061 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
linux-control.0 2020-08-21 07:19:32.061 error at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
linux-control.0 2020-08-21 07:19:32.061 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:19:32.061 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:19:32.061 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:19:32.061 error (24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
linux-control.0 2020-08-21 07:19:32.044 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
linux-control.0 2020-08-21 07:19:32.044 error at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
linux-control.0 2020-08-21 07:19:32.044 error at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
linux-control.0 2020-08-21 07:19:32.044 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:19:32.044 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:19:32.044 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:19:32.044 error (24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
linux-control.0 2020-08-21 07:19:32.024 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
linux-control.0 2020-08-21 07:19:32.024 error at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
linux-control.0 2020-08-21 07:19:32.024 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:19:32.024 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:19:32.024 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:19:32.024 error (24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
linux-control.0 2020-08-21 07:18:31.755 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:72:5)
linux-control.0 2020-08-21 07:18:31.755 error at LinuxControl.servicesInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:392:21)
linux-control.0 2020-08-21 07:18:31.755 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:18:31.755 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:18:31.755 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:18:31.755 error (24951) [servicesInfo] AX--HD-60 (192.168.178.72:22): response error: [servicesInfo] AX--HD-60 (192.168.178.72:22): bash: systemctl: command not found, stack: ResponseError: [servicesInfo] AX--HD-60
linux-control.0 2020-08-21 07:18:31.725 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:71:5)
linux-control.0 2020-08-21 07:18:31.725 error at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:512:5)
linux-control.0 2020-08-21 07:18:31.725 error at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:609:21)
linux-control.0 2020-08-21 07:18:31.725 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:18:31.725 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:18:31.725 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:18:31.725 error (24951) [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): response error: [cmdAptUpdate] AX--HD-60 (192.168.178.72:22): bash: apt-get: command not found, stack: ResponseError: [cmdAptUpdate] AX--HD-60 (1
linux-control.0 2020-08-21 07:18:31.619 error at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:70:5)
linux-control.0 2020-08-21 07:18:31.619 error at LinuxControl.distributionInfo (/opt/iobroker/node_modules/iobroker.linux-control/main.js:458:21)
linux-control.0 2020-08-21 07:18:31.619 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
linux-control.0 2020-08-21 07:18:31.619 error at runMicrotasks (<anonymous>)
linux-control.0 2020-08-21 07:18:31.619 error at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:749:26)
linux-control.0 2020-08-21 07:18:31.619 error (24951) [distributionInfo] AX--HD-60 (192.168.178.72:22): response error: [distributionInfo] AX--HD-60 (192.168.178.72:22): cat: can't open '/etc/os-release': No such file or directory, stack: Respon
Ich würde gerne ein Script mit dem Adapter ersetzen.
Wie kann ich den diesen Befehl aus dem Script: "ssh.execCommand("bash /home/coyote/Downloads/nichtdimmen.sh");
im Adapter starten über einen Button?
#!/bin/bash
pkill nichtdimmen
pkill python3
# While the user is not logged in == until the $DISPLAY variable is unset or empty
unset DISPLAY
while [ -z "$DISPLAY" ] || [ "$DISPLAY" == "" ]; do
DISPLAY=$(w "$(id -un)" | awk 'NF > 7 && $2 ~ /tty[0-9]+/ {print $3; exit}' 2>/dev/null)
if [ "$DISPLAY" == "" ]; then sleep 30; else export DISPLAY="$DISPLAY"; fi
done
/bin/bash -c "python3 /home/coyote/Downloads/dimscreens.py 30 0.2"
@coyote - da fällt mir nix ein - ohne zu wissen warum, würde ich mal testen, was passiert wenn in zeile 13 nur das phyton aufgerufen wird - evtl geht das so nicht aber probieren kann man ja
#!/bin/bash
pkill nichtdimmen
pkill python3
# While the user is not logged in == until the $DISPLAY variable is unset or empty
unset DISPLAY
while [ -z "$DISPLAY" ] || [ "$DISPLAY" == "" ]; do
DISPLAY=$(w "$(id -un)" | awk 'NF > 7 && $2 ~ /tty[0-9]+/ {print $3; exit}' 2>/dev/null)
if [ "$DISPLAY" == "" ]; then sleep 30; else export DISPLAY="$DISPLAY"; fi
done
# /bin/bash -c "python3 /home/coyote/Downloads/dimscreens.py 30 0.2"
python3 /home/coyote/Downloads/dimscreens.py 30 0.2
@Thomas-Braun wie mache ich dass denn? Sorry, bin kein Linux Experte. Aber hast du weiter oben gelesen, dass ich die Scripte momentan noch über Javascript ausführen kann.
So:
node_ssh = require('node-ssh').NodeSSH;
ssh = new node_ssh();
ssh.connect({
host: '192.168.XXX.XXX', //MintTab VM
username: 'coyote',
password: 'pwd'
}).then(() => {
ssh.execCommand("bash /home/coyote/Downloads/nichtdimmen.sh");
});
}
Das funktioniert ohne Probleme