Moin,
@Kueppert Du hast natürlich recht, habe das Kommando aus einem anderen Thread kopiert und genutzt, in der Hoffnung es würde funktionieren.
mit
sudo -H npm i iobroker.zwave -unsafe -perm
komme ich schon einen Schritt weiter, aber die Installation wirft weiter Fehler.
Ich nutze das Image vom 4.1.19 auf einem Raspberry Pi 2 Model B Rev 1.1
Hier die Ausgabe während der Installation
! sudo -H npm i iobroker.zwave -unsafe -perm
! > iobroker.zwave@1.3.1 preinstall /home/pi/node_modules/iobroker.zwave
! > node lib/preinstall.js
! –-> find /tmp -name 'CentralScene.h'
! ---> find /usr/include/ -name 'CentralScene.h'
! ---> find /usr/local/include/ -name 'CentralScene.h'
! CentralScene.h found in /usr/local/include/openzwave/command_classes/CentralScene.h
! ---> find /usr/local/include/ -name 'CentralScene.h'|grep 'createSupportedKeyAttributesValues'
! ---> Error: Command failed: find /usr/local/include/ -name 'CentralScene.h'|grep 'createSupportedKeyAttributesValues'
! ---> apt-get install libudev-dev -y
! ---> curl -L -O https://github.com/OpenZWave/open-zwave ... master.zip
! % Total % Received % Xferd Average Speed Time Time Time Current
! Dload Upload Total Spent Left Speed
! 100 125 0 125 0 0 189 0 --:--:-- --:--:-- --:--:-- 189
! 100 1878k 0 1878k 0 0 855k 0 --:--:-- 0:00:02 --:--:-- 1384k
! ---> rm -rf open-zwave-master
! ---> unzip master.zip && rm master.zip
! ---> cd open-zwave-master && curl -O -L https://github.com/OpenZWave/open-zwave/pull/1125.patch && patch -p1 < 1125.patch
! % Total % Received % Xferd Average Speed Time Time Time Current
! Dload Upload Total Spent Left Speed
! 100 147 0 147 0 0 220 0 --:--:-- --:--:-- --:--:-- 220
! 100 16081 0 16081 0 0 10628 0 --:--:-- 0:00:01 --:--:-- 26801
! ---> cd open-zwave-master && make && make install
! In file included from /usr/include/c++/6/map:60:0,
! from /home/pi/node_modules/iobroker.zwave/open-zwave-master/cpp/src/command_classes/CommandClasses.h:32,
! from /home/pi/node_modules/iobroker.zwave/open-zwave-master/cpp/src/command_classes/ManufacturerSpecific.cpp:28:
! /usr/include/c++/6/bits/stl_tree.h: In function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<long long/int&&="">, std::tuple<>}; _Key = long long int; _Val = std::pair<const long/int,/openzwave::manufacturerspecific::product*="">; _KeyOfValue = std::_Select1st <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>; _Compare = std::less<long long/int="">; _Alloc = std::allocator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>]’:
! /usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<long long/int,/std::pair<const/openzwave::manufacturerspecific::product*="">, std::_Select1st <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>, std::less<long long/int="">, std::allocator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">> >::const_iterator {aka std::_Rb_tree_const_iterator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>}’ will change in GCC 7.1
! _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! In file included from /usr/include/c++/6/map:61:0,
! from /home/pi/node_modules/iobroker.zwave/open-zwave-master/cpp/src/command_classes/CommandClasses.h:32,
! from /home/pi/node_modules/iobroker.zwave/open-zwave-master/cpp/src/command_classes/ManufacturerSpecific.cpp:28:
! /usr/include/c++/6/bits/stl_map.h: In static member function ‘static bool OpenZWave::ManufacturerSpecific::LoadProductXML()’:
! /usr/include/c++/6/bits/stl_map.h:502:4: note: parameter passing for argument of type ‘std::_Rb_tree<long long/int,/std::pair<const/openzwave::manufacturerspecific::product*="">, std::_Select1st <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>, std::less<long long/int="">, std::allocator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">> >::const_iterator {aka std::_Rb_tree_const_iterator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>}’ will change in GCC 7.1
! __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
! ^~~
! /usr/include/c++/6/bits/stl_map.h:502:4: note: parameter passing for argument of type ‘std::_Rb_tree<long long/int,/std::pair<const/openzwave::manufacturerspecific::product*="">, std::_Select1st <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>, std::less<long long/int="">, std::allocator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">> >::const_iterator {aka std::_Rb_tree_const_iterator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>}’ will change in GCC 7.1
! __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
! ^~~
! /usr/include/c++/6/bits/stl_map.h:502:4: note: parameter passing for argument of type ‘std::_Rb_tree<long long/int,/std::pair<const/openzwave::manufacturerspecific::product*="">, std::_Select1st <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>, std::less<long long/int="">, std::allocator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">> >::const_iterator {aka std::_Rb_tree_const_iterator <std::pair<const long/int,/openzwave::manufacturerspecific::product*="">>}’ will change in GCC 7.1
! __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
! ^~~
! Makefile:224: Documentation not being built
! npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
! npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
! npm WARN pi No description
! npm WARN pi No repository field.
! npm WARN pi No README data
! npm WARN pi No license field.
! + iobroker.zwave@1.3.1
! updated 1 package and audited 6 packages in 810.501s
! found 0 vulnerabilities</std::pair<const></std::pair<const></long></std::pair<const></long></std::pair<const></std::pair<const></long></std::pair<const></long></std::pair<const></std::pair<const></long></std::pair<const></long></std::pair<const></std::pair<const></long></std::pair<const></long></std::pair<const></long></std::pair<const></const></long>
Was mich etwas stutzig macht ist, dass die Installation nach /home/pi erfolgt. iobroker läuft mit dem User iobroker
ps aux | grep -i iobroker
avahi 282 0.0 0.3 6532 3176 ? Ss 07:26 0:00 avahi-daemon: running [ioBroker-RasPi.local]
iobroker 414 4.2 7.5 153564 71628 ? Ssl 07:27 1:13 iobroker.js-controller
iobroker 483 1.2 4.4 138768 42332 ? Sl 07:27 0:22 io.admin.0
iobroker 489 0.2 3.1 117532 30200 ? Sl 07:27 0:04 io.discovery.0
iobroker 503 2.5 5.7 140956 54672 ? Sl 07:27 0:43 io.tr-064.0
iobroker 509 6.8 3.9 122540 37520 ? Sl 07:27 1:57 io.hue.0
iobroker 524 0.7 3.5 118624 33332 ? Sl 07:27 0:13 io.ping.0
iobroker 541 0.4 3.5 129012 33288 ? Sl 07:27 0:06 io.web.0
iobroker 555 0.2 3.2 117192 30644 ? Sl 07:27 0:04 io.history.0
iobroker 575 1.6 8.6 164592 82304 ? Sl 07:27 0:27 io.javascript.0
iobroker 585 0.5 3.8 132476 36996 ? Sl 07:27 0:09 io.fritzdect.0
iobroker 591 1.5 8.6 164080 81836 ? Sl 07:27 0:26 io.javascript.1
root 1417 0.0 0.0 4776 568 pts/0 S+ 07:56 0:00 grep -i iobroker
Bin noch relativ frisch dabei ( wie man am Aufruf mit -usafe sehen kann ) Freue mich daher über jede Hilfe, wie ich den Zwave-Adapter zum Fliegen bringen kann.
Grüße Detlev.