NEWS
MQTT Adapter - wie Nachrichten auslesen?
-
Hallo!
Ich habe iobroker und einen MQTT Broker beide auf meinem Synology NAS installiert. Nun versuche ich meine Sonoff RF Bridge per MQTT einzubinden:
-
der Adapter Sonoff für iobroker geht überhaupt nicht. Keine Verbindung, keine Meldungen, vermutlich aufgegebenes Github Projekt…
-
der mqtt adapter verbinden sich, wenn ich eine Status Meldung der RF Bridge generiere (direkt in der Weboberfläche der Bridge i.e /stat/sonoff/status o-ä) werden die entsprechenden Variablen im Objekt Fenster erzeugt, enthalten aber keine Werte!?? :shock: Daher kann ich auch kein Widget generieren um diese Variablen darzustellen...
-
-
Siehe hier, da hat es Beschreibungen der User und auch ein Skript zum Auswerten
-
Danke, aber ein Script zum auslesen hilft auch nicht viel wenn die Variable nicht vom MQTT Adapter gefüllt wird…. das scheint nämlich der Fall zu sein. Obwohl die Variable stat.sonofoff.Status automatisch erzeugt wenn wenn ich ein entsprechendes MQTT Kommando sende hat sie keinen Inhalt!!?
Habe nun 3x iobroker auf meinem NAS neu installiert, immer wieder mit anderen Fehlern.. :shock: Habe nun node v6.12.3 und ppm v3.10.10. Insgesamt schein dieses Javascript Install System nicht sehr robust zu sein.... was soll ich z.B. von solchen Fehlermeldungen halten wo nicht mal der User root Zugriff auf gewisse Verzeichnisse hat??:
` > $ ./iobroker add cloudnpm install iobroker.cloud –production --prefix "/opt/iobroker" (System call)
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAd ... arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@6.12.3 (node-v48 ABI) (falling back to source compile with node-gyp)
gyp
WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.12.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/serialport/.node-gyp"
gyp
ERR!
build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/opt/iobroker/node_modules/npm/node_modules/which/which.js:14:12)gyp ERR!
stack at F (/opt/iobroker/node_modules/npm/node_modules/which/which.js:69:19)gyp
ERR!
stack at E (/opt/iobroker/node_modules/npm/node_modules/which/which.js:81:29)
gyp
ERR! stack at /opt/iobroker/node_modules/npm/node_modules/which/which.js:90:16gyp ERR!
stack at /opt/iobroker/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5gyp ERR! stack at /opt/iobroker/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Linux 3.10.102
gyp
ERR! command "/volume1/@appstore/Node.js_v6/usr/local/bin/node" "/opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/serialport/build/Release"gyp ERR! cwd /opt/iobroker/node_modules/serialport
gyp ERR! node -v v6.12.3
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack
Error: Failed to execute '/volume1/@appstore/Node.js_v6/usr/local/bin/node /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/serialport/build/Release' (1)node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:920:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
node-pre-gyp
ERR!
System Linux 3.10.102
node-pre-gyp ERR!
command
"/volume1/@appstore/Node.js_v6/usr/local/bin/node" "/opt/iobroker/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /opt/iobroker/node_modules/serialportnode-pre-gyp ERR! node -v v6.12.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
gyp
WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.12.3"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/unix-dgram/.node-gyp"
gyp
ERR!
build error
gyp
ERR! stack
Error: not found: make
gyp
ERR!
stack
at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:14:12)gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:69:19)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:81:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:90:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack
at FSReqWrap.oncomplete (fs.js:123:15)
gyp
ERR!
System Linux 3.10.102gyp ERR! command "/volume1/@appstore/Node.js_v6/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/unix-dgram
gyp ERR! node -v v6.12.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR!
not ok
gyp
WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.12.3"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/ursa/.node-gyp"
gyp
ERR!
build error</anonymous> `