NEWS
Инсталляция под Linux
-
@kto:http://forum.iobroker.net/viewtopic.php … =20#p10299
apt-get update && apt-get upgrade apt-get install unzip apt-get install libudev-dev ```` `
Так, unzip был установлен, libudev-dev установился.
Это повлияло в лучшую сторону, но полного успеха всё ещё нет.
При попытке установить через ioBroker:
! ````
$ ./iobroker add zwave
npm install iobroker.zwave --production --prefix "/opt/iobroker" (System call)
In file included from ../src/openzwave.hpp:27:0, from ../src/callbacks.cc:18:
/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/node_modules/nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
! make: *** [Release/obj.target/openzwave_shared/src/callbacks.o] Error 1
gyp
ERR! build error
gyp
ERR! stack Error:make
failed with exit code: 2gyp ERR!
stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.1.17-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared
gyp ERR!
node -v v0.10.29gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
! npm
WARN This failure might be due to the use of legacy binary "node"npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian! npm
ERR! openzwave-shared@1.1.7 install:node-gyp rebuild
npm ERR! Exit status 1
! npm ERR! npm ERR! Failed at the openzwave-shared@1.1.7 install script.
npm ERR! This is most likely a problem with the openzwave-shared package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
! npm
ERR! npm owner ls openzwave-sharednpm ERR! There is likely additional logging output above.
! npm ERR! System Linux 4.1.17-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.zwave" "--production" "--prefix" "/opt/iobroker"
npm ERR! cwd /
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
! npm
ERR! Error: EACCES, open 'npm-debug.log'npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
! npm
ERR! System Linux 4.1.17-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.zwave" "--production" "--prefix" "/opt/iobroker"
npm ERR! cwd /npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
! npm ERR! npm ERR! Additional logging details can be found in:
npm ERR! /npm-debug.log
npm ERR! not ok code 0
! ERROR: host.raspberrypi Cannot install iobroker.zwave: 1
ERROR: process exited with code 25Та же ошибка и при установке через консоль: >! ```` -----бла---бла---бла-------- inflating: open-zwave-master/openzwave.dsc inflating: open-zwave-master/openzwave.spec >! stderr: ---> cd open-zwave-master && make stdout: CPPFLAGS= make -C /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build/ - make[1]: Entering directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build' Building OpenZWave Version 1.4.-1 Building tinystr.o Building tinyxmlerror.o Building tinyxml.o -----бла---бла---бла-------- Building vers.o Linking Static Library Linking Shared Library Making ozw_config file make[1]: Leaving directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build' CPPFLAGS= make -C /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW/ - make[1]: Entering directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW' Building Main.o Linking /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/.lib/MinOZW g++ -o /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/.lib/MinOZW /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/.lib/Main.o /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/libopenzwave.so -pthread Creating Temporary Shell Launch Script make[1]: Leaving directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW' >! stderr: ---> cd open-zwave-master && sudo make install stdout: make -C /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build/ - install make[1]: Entering directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build' Making libopenzwave pkg-config file Installing Shared Library Installing Headers Installing Config Database Installing Documentation Installing Pkg-config Files make[1]: Leaving directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/build' make -C /opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW/ - install make[1]: Entering directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW' Installing into Prefix: /usr/local make[1]: Leaving directory '/opt/iobroker/node_modules/iobroker.zwave/open-zwave-master/cpp/examples/MinOZW' >! stderr: Makefile:193: Documentation not being built >! | > openzwave-shared@1.1.7 preinstall /opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared > node lib/install-ozw.js >! / > openzwave-shared@1.1.7 install /opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared > node-gyp rebuild >! make: Entering directory '/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/build' CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o In file included from ../src/openzwave.hpp:27:0, from ../src/callbacks.cc:18: /opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/node_modules/nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’ static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8; ^ openzwave_shared.target.mk:105: recipe for target 'Release/obj.target/openzwave_shared/src/callbacks.o' failed make: *** [Release/obj.target/openzwave_shared/src/callbacks.o] Error 1 make: Leaving directory '/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) gyp ERR! System Linux 4.1.17-v7+ gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! openzwave-shared@1.1.7 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the openzwave-shared@1.1.7 install script. npm ERR! This is most likely a problem with the openzwave-shared package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls openzwave-shared npm ERR! There is likely additional logging output above. >! npm ERR! System Linux 4.1.17-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.zwave" npm ERR! cwd /opt/iobroker npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/iobroker/npm-debug.log npm ERR! not ok code 0
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
Насколько я понял - это вызвано проблемами с версией nodejs.
У меня стоит v0.10.29, в google борются с этой ошибкой другой версией nodejs.
В частности https://github.com/nodesource/distributions .
Насколько это правильный подход? Стоит ему последовать или будут другие рекомендации?
На всякий случай напомню, что ставлю это всё на raspbian, который крутиться на raspberry pi 2B. `
А эта инструкция не ваш случай?
Installation First of all, Implemenation is tested only on ARM Linux (e.g. Raspberry Pi (2)). You need a fully Development Environment (gcc, make,...) npm install iobroker.zwave does following Steps for you: Download and install latest openzwave from github # cd /opt # curl -L -O https://github.com/OpenZWave/open-zwave/archive/master.zip # unzip master.zip # cd open-zwave-master # make # sudo make install After that you have to do the following Steps: Put your USB Stick into your Server Check whether the system has recognized the USB stick # lsusb # ls -al /dev/ttyA* Go into iobroker Website and add the Zwave Adapter Configure zwave Adapter as described Start the new zwave Adapter instance wait -- until the Message "zwave.0 Scan completed" is found in iobroker.log -- the Object zwave.0.completed has State "true"
-
Отмучал!
Выполняем все под рутом.
/etc/init.d/iobroker stop apt-get update && apt-get -y upgrade && apt-get -y remove nodejs npm && apt-get -y autoremove wget http://node-arm.herokuapp.com/node_latest_armhf.deb && dpkg -i node_latest_armhf.deb sed -i 's/^NODECMD=\/usr\/bin\/node/NODECMD=\/usr\/local\/bin\/node/g' /etc/init.d/iobroker.sh init 6
После того как малинка загрузится, можно ставить ZWave драйвер. `
Огромное человеческое спасибище)Прямо сейчас мучаю Малинку)
Установилось!) Спасибо) Завтра буду пробовать подключить адаптер и проверить работу в целом.
Для справки - теперь версия node - 4.2.1, а npm - 2.14.7.
А эта инструкция не ваш случай?
! ````
Installation
! First of all, Implemenation is tested only on ARM Linux (e.g. Raspberry Pi (2)).
You need a fully Development Environment (gcc, make,...)
! npm install iobroker.zwave does following Steps for you:
! Download and install latest openzwave from githubcd /opt
curl -L -O https://github.com/OpenZWave/open-zwave/archive/master.zip
unzip master.zip
cd open-zwave-master
make
sudo make install
After that you have to do the following Steps:
! Put your USB Stick into your Server
Check whether the system has recognized the USB sticklsusb
ls -al /dev/ttyA*
! Go into iobroker Website and add the Zwave Adapter
! Configure zwave Adapter as described
Start the new zwave Adapter instance
wait
-- until the Message "zwave.0 Scan completed" is found in iobroker.log
-- the Object zwave.0.completed has State "true"
```` `Похоже, я перед тем, как ставить по инструкции Haus'a сделал бекап. Нужно будет проверить и этот метод.
Меня единственное что смущает - так это````
make installЧто скажите?
-
Нормальная и правильная практика, только не надо удалять исходники после установки.
Когда надо обновить пакет или удалить, делаем
make remove
В папке с иходниками и он удалит все поставленные компоненты.
-
Нормальная и правильная практика, только не надо удалять исходники после установки.
Когда надо обновить пакет или удалить, делаем
make remove
В папке с иходниками и он удалит все поставленные компоненты. `
Понял, спасибо.Сегодня с работы пытался завести Zwave. Получилось, хоть и не с первого раза.
При запуске драйвера в лог выпадает такое:
! ````
host-raspberrypi 2016-02-18 12:50:33 error instance system.adapter.zwave.0 terminated with code 6 (uncaught exception)
Error: 2016-02-18 12:50:33 error at Module.load (module.js:356:32)
Error: 2016-02-18 12:50:33 error at Object.Module._extensions..js (module.js:442:10)
Error: 2016-02-18 12:50:33 error at Module._compile (module.js:435:26)
Error: 2016-02-18 12:50:33 error at Object. (/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/lib/openzwave-shared.js:26:19)
Error: 2016-02-18 12:50:33 error at require (module.js:385:17)
Error: 2016-02-18 12:50:33 error at Module.require (module.js:366:17)
Error: 2016-02-18 12:50:33 error at Function.Module._load (module.js:311:12)
Error: 2016-02-18 12:50:33 error at Module.load (module.js:356:32)
Error: 2016-02-18 12:50:33 error at Object.Module._extensions..node (module.js:460:18)
Error: 2016-02-18 12:50:33 error at Error (native)
Error: 2016-02-18 12:50:33 error libopenzwave.so.1.4: cannot open shared object file: No such file or directory
uncaught 2016-02-18 12:50:33 error exception: libopenzwave.so.1.4: cannot open shared object file: No such file or directoryПомог совет из гугла. Выполнить на Raspberry
sudo ldconfig
После этого стартовал нормально. Разве что ошибка в логе:
zwave-0 2016-02-18 12:50:51 error ##### Value added: zwave.0.NODE1.BASIC.Basic = 0 index = 0 comclass = 32 instance = 1
Пока не знаю, насколько критично, так как судя по логу, USB свисток оно подтянуло.
zwave-0 2016-02-18 12:50:51 info Scan completed
zwave-0 2016-02-18 12:50:51 info node ready nodeid:1 nodeinfo:{"manufacturer":"Aeotec","manufacturerid":"0x0086","product":"Z-Stick Gen5","producttype":"0x0001","productid":"0x005a","type":"Static PC Controller","name":"","loc":""}
zwave-0 2016-02-18 12:50:51 info nodeid 1 is now available, but maybe not ready
zwave-0 2016-02-18 12:50:51 error ##### Value added: zwave.0.NODE1.BASIC.Basic = 0 index = 0 comclass = 32 instance = 1
zwave-0 2016-02-18 12:50:51 info driver ready: homeid = 3607400198
zwave-0 2016-02-18 12:50:51 info scanning homeid=0xd7048f06...
zwave-0 2016-02-18 12:50:51 info connected: homeid = 1.4.0
zwave-0 2016-02-18 12:50:50 info starting. Version 0.2.5 in /opt/iobroker/node_modules/iobroker.zwave
host-raspberrypi 2016-02-18 12:50:48 info instance system.adapter.zwave.0 started with pid 2361
host-raspberrypi 2016-02-18 12:50:47 info object change system.adapter.zwave.0
host-raspberrypi 2016-02-18 12:50:33 info Restart adapter system.adapter.zwave.0 because enabled -
К сожалению не получается воспользоваться Zwave адаптером.
При подключении устройства (Fibaro Switch) получаю целую простыню ошибок:
! ` > zwave-0 2016-02-18 22:33:50 info Scan completed
zwave-0 2016-02-18 22:33:50 info node ready nodeid:11 nodeinfo:{"manufacturer":"FIBARO System","manufacturerid":"0x010f","product":"FGS222 Double Relay Switch 2x1.5kW","producttype":"0x0202","productid":"0x1002","type":"Binary Power
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.SWITCH_BINARY.Switch_2 = false index = 0 comclass = 37 instance = 2
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.SWITCH_BINARY.Switch_1 = false index = 0 comclass = 37 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Timeout = 0 index = 1 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Powerlevel = Normal index = 0 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.SWITCH_ALL.Switch All = On and Off Enabled index = 0 comclass = 39 instance = 1
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The command has completed successfully #### error:No error #### helpmsg:ControllerCommand - Completed #### currently not implemented
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The controller is communicating with the other device to carry out the command #### error:No error #### helpmsg:ControllerCommand - InProgress #### currently not im
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The command is starting #### error:No error #### helpmsg:ControllerComand - Starting #### currently not implemented
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The command has completed successfully #### error:No error #### helpmsg:ControllerCommand - Completed #### currently not implemented
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The controller is communicating with the other device to carry out the command #### error:No error #### helpmsg:ControllerCommand - InProgress #### currently not im
zwave-0 2016-02-18 22:33:50 info controller command feedback: state:The command is starting #### error:No error #### helpmsg:ControllerComand - Starting #### currently not implemented
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.VERSION.Application Version = 2.02 index = 2 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.VERSION.Protocol Version = 3.52 index = 1 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.VERSION.Library Version = 3 index = 0 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:50 error ##### Value added: zwave.0.NODE11.SWITCH_BINARY.Switch_2 = false index = 0 comclass = 37 instance = 2
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 2: Response to Temperature Alarm = ALARM RELAY ON - relay will turn ON upon receipt of alarm frame index = 43 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 2: Response to Smoke, CO, CO2 Alarm = ALARM FLASHING - relay will turn ON and OFF periodically (see param.39) index = 42 comclass = 112 instance
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 2: Response to Water Flood Alarm = ALARM RELAY OFF - relay will turn OFF upon receipt of alarm frame index = 41 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 2: Response to General Alarm = ALARM FLASHING - relay will turn ON and OFF periodically (see param.39) index = 40 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.ALARM FLASHING alarm time = 88 index = 39 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 1: Response to Temperature Alarm = ALARM RELAY ON - relay will turn ON upon receipt of alarm frame index = 33 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 1: Response to Smoke, CO, CO2 Alarm = ALARM FLASHING - relay will turn ON and OFF periodically (see param.39) index = 32 comclass = 112 instance
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 1: Response to Water Flood Alarm = ALARM RELAY OFF - relay will turn OFF upon receipt of alarm frame index = 31 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Relay 1: Response to General Alarm = ALARM FLASHING - relay will turn ON and OFF periodically (see param.39) index = 30 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Saving state before power faillure = State saved at power failure, all outputs are set to previous state upon power restore index = 16 comclass = 112 i
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Dimmer/Roller shutter control = Disable Dimmer/Roller shutter control index = 15 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Inputs Button/Switch configuration = Bi-stable input (switch) index = 14 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Inputs behaviour = Toggle index = 13 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Control key #2 behaviour = Device status is checked index = 7 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Separation of association sending (key 1) = Map status to all devices in group 1 (default) index = 6 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Auto off for relay 2 = 0 index = 5 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Auto off for relay 1 = 0 index = 4 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Auto off relay after specified time = Manual override disabled index = 3 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.CONFIGURATION.Enable/Disable ALL ON/OFF = ALL ON active / ALL OFF active index = 1 comclass = 112 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Acked Frames = 0 index = 9 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Test Status = Failed index = 8 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Report = undefined index = 7 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Test = undefined index = 6 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Frame Count = 0 index = 5 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Test Powerlevel = Normal index = 4 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Test Node = 0 index = 3 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Set Powerlevel = undefined index = 2 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Timeout = 0 index = 1 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.POWERLEVEL.Powerlevel = Normal index = 0 comclass = 115 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.VERSION.Application Version = Unknown index = 2 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.VERSION.Protocol Version = Unknown index = 1 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.VERSION.Library Version = Unknown index = 0 comclass = 134 instance = 1
zwave-0 2016-02-18 22:33:49 info node ready nodeid:1 nodeinfo:{"manufacturer":"Aeotec","manufacturerid":"0x0086","product":"Z-Stick Gen5","producttype":"0x0001","productid":"0x005a","type":"Static PC Controller","name":"","loc":""}
zwave-0 2016-02-18 22:33:49 info node11: nop, currently not implemented
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.SWITCH_ALL.Switch All = Disabled index = 0 comclass = 39 instance = 1
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE11.SWITCH_BINARY.Switch_1 = false index = 0 comclass = 37 instance = 1
zwave-0 2016-02-18 22:33:49 info nodeid 1 is now available, but maybe not ready
zwave-0 2016-02-18 22:33:49 error ##### Value added: zwave.0.NODE1.BASIC.Basic = 0 index = 0 comclass = 32 instance = 1
zwave-0 2016-02-18 22:33:49 info driver ready: homeid = 3607400198 `
К величайшему моему сожалению, пока не нахожу, как с этим справиться.
Метод установки от Haus'а так же не помог - не работает без смены версии nodejs.
А даже сменив - получаем всё те-же ошибки.
-
Привет.
Не могу установить iobroker на bananapi BPI-M1+.
Перепробовал все или почти все, ну просто не хочет работать . На Raspberry установилась с первого раза.
Может кто подскажет как на это китайское чудо установить? А то уже появилось желание ,упаковать аккуратно в коробочку и выкинуть.
-
Привет.
Не могу установить iobroker на bananapi BPI-M1+.
Перепробовал все или почти все, ну просто не хочет работать . На Raspberry установилась с первого раза.
Может кто подскажет как на это китайское чудо установить? А то уже появилось желание ,упаковать аккуратно в коробочку и выкинуть. `
Что пишет то?пробовал мануально установить (по пакетам)?
-
Пробовал, не хочет.
В линуксе я слабоват и может что-то не понимаю.
Делал так -
Смонтировал образ Bananian Linux ,сделал настройки ,а дальше все мои манипуляции ни к чему не привели.
Как это по шагам сделать?
-
Подскажите пароль для root. Образ для bananapi http://www.iobroker.net/?download=2895 .Armbian для BananaPi на сайте своем пишет 1234. Доступа нет.
-
Подскажите пароль для root. Образ для bananapi http://www.iobroker.net/?download=2895 .Armbian для BananaPi на сайте своем пишет 1234. Доступа нет. `
Name: bananapi Passwort: bananapiif Bananian OS
Name: root Passwort: pi
-
Пробовал, не хочет.
В линуксе я слабоват и может что-то не понимаю.
Делал так -
Смонтировал образ Bananian Linux ,сделал настройки ,а дальше все мои манипуляции ни к чему не привели.
Как это по шагам сделать? `
К чему они то привели? Где застрял то? Залогиниться смог? Итд? -
Захожу под "root"
root@bananapi ~ # apt-get update root@bananapi ~ # apt-get upgrade
устанавливаю "npm" и "nodejs"
root@bananapi ~ # apt-get install curl root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash - root@bananapi ~ # apt-get install nodejs
получается так -````
root@pi ~ # nodejs -v
v5.7.1
root@pi ~ # npm -v
3.6.0дальше -```` $ cd /opt $ mkdir iobroker $ cd iobroker $ npm install iobroker
получается вот-так -
! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
! /opt/iobroker
! └─┬ iobroker@0.6.0
! └─┬ yargs@4.2.0
! ├── camelcase@2.1.0
! ├─┬ cliui@3.1.0
! │ ├─┬ strip-ansi@3.0.1
! │ │ └── ansi-regex@2.0.0
! │ └── wrap-ansi@1.0.0
! ├── decamelize@1.2.0
! ├─┬ lodash.assign@4.0.6
! │ ├── lodash.keys@4.0.5
! │ └── lodash.rest@4.0.1
! ├─┬ os-locale@1.4.0
! │ └─┬ lcid@1.0.0
! │ └── invert-kv@1.0.0
! ├─┬ pkg-conf@1.1.1
! │ ├─┬ find-up@1.1.2
! │ │ ├── path-exists@2.1.0
! │ │ └─┬ pinkie-promise@2.0.0
! │ │ └── pinkie@2.0.4
! │ ├── object-assign@4.0.1
! │ ├─┬ read-pkg@1.1.0
! │ │ ├─┬ load-json-file@1.1.0
! │ │ │ ├── graceful-fs@4.1.3
! │ │ │ ├─┬ parse-json@2.2.0
! │ │ │ │ └─┬ error-ex@1.3.0
! │ │ │ │ └── is-arrayish@0.2.1
! │ │ │ ├── pify@2.3.0
! │ │ │ └─┬ strip-bom@2.0.0
! │ │ │ └── is-utf8@0.2.1
! │ │ ├─┬ normalize-package-data@2.3.5
! │ │ │ ├── hosted-git-info@2.1.4
! │ │ │ ├─┬ is-builtin-module@1.0.0
! │ │ │ │ └── builtin-modules@1.1.1
! │ │ │ ├── semver@5.1.0
! │ │ │ └─┬ validate-npm-package-license@3.0.1
! │ │ │ ├─┬ spdx-correct@1.0.2
! │ │ │ │ └── spdx-license-ids@1.2.0
! │ │ │ └─┬ spdx-expression-parse@1.0.2
! │ │ │ └── spdx-exceptions@1.0.4
! │ │ └── path-type@1.1.0
! │ └── symbol@0.2.1
! ├── read-pkg-up@1.0.1
! ├── require-main-filename@1.0.1
! ├─┬ string-width@1.0.1
! │ ├─┬ code-point-at@1.0.0
! │ │ └── number-is-nan@1.0.0
! │ └── is-fullwidth-code-point@1.0.0
! ├── window-size@0.2.0
! ├── y18n@3.2.0
! └── yargs-parser@2.1.1
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
! npm WARN iobroker No description
! npm WARN iobroker No repository field.
! npm WARN iobroker No README data
! npm WARN iobroker No license field.
! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
И не работает. -
Методом перебора, за час выяснил : пользователь pi, пароль raspberry. Это для образа http://www.iobroker.net/?download=2895 . Для других не знаю.
-
Захожу под "root"
root@bananapi ~ # apt-get update root@bananapi ~ # apt-get upgrade
устанавливаю "npm" и "nodejs"
root@bananapi ~ # apt-get install curl root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash - root@bananapi ~ # apt-get install nodejs
получается так -````
root@pi ~ # nodejs -v
v5.7.1
root@pi ~ # npm -v
3.6.0дальше -```` $ cd /opt $ mkdir iobroker $ cd iobroker $ npm install iobroker
получается вот-так -
! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
! /opt/iobroker
! └─┬ iobroker@0.6.0
! └─┬ yargs@4.2.0
! ├── camelcase@2.1.0
! ├─┬ cliui@3.1.0
! │ ├─┬ strip-ansi@3.0.1
! │ │ └── ansi-regex@2.0.0
! │ └── wrap-ansi@1.0.0
! ├── decamelize@1.2.0
! ├─┬ lodash.assign@4.0.6
! │ ├── lodash.keys@4.0.5
! │ └── lodash.rest@4.0.1
! ├─┬ os-locale@1.4.0
! │ └─┬ lcid@1.0.0
! │ └── invert-kv@1.0.0
! ├─┬ pkg-conf@1.1.1
! │ ├─┬ find-up@1.1.2
! │ │ ├── path-exists@2.1.0
! │ │ └─┬ pinkie-promise@2.0.0
! │ │ └── pinkie@2.0.4
! │ ├── object-assign@4.0.1
! │ ├─┬ read-pkg@1.1.0
! │ │ ├─┬ load-json-file@1.1.0
! │ │ │ ├── graceful-fs@4.1.3
! │ │ │ ├─┬ parse-json@2.2.0
! │ │ │ │ └─┬ error-ex@1.3.0
! │ │ │ │ └── is-arrayish@0.2.1
! │ │ │ ├── pify@2.3.0
! │ │ │ └─┬ strip-bom@2.0.0
! │ │ │ └── is-utf8@0.2.1
! │ │ ├─┬ normalize-package-data@2.3.5
! │ │ │ ├── hosted-git-info@2.1.4
! │ │ │ ├─┬ is-builtin-module@1.0.0
! │ │ │ │ └── builtin-modules@1.1.1
! │ │ │ ├── semver@5.1.0
! │ │ │ └─┬ validate-npm-package-license@3.0.1
! │ │ │ ├─┬ spdx-correct@1.0.2
! │ │ │ │ └── spdx-license-ids@1.2.0
! │ │ │ └─┬ spdx-expression-parse@1.0.2
! │ │ │ └── spdx-exceptions@1.0.4
! │ │ └── path-type@1.1.0
! │ └── symbol@0.2.1
! ├── read-pkg-up@1.0.1
! ├── require-main-filename@1.0.1
! ├─┬ string-width@1.0.1
! │ ├─┬ code-point-at@1.0.0
! │ │ └── number-is-nan@1.0.0
! │ └── is-fullwidth-code-point@1.0.0
! ├── window-size@0.2.0
! ├── y18n@3.2.0
! └── yargs-parser@2.1.1
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
! npm WARN iobroker No description
! npm WARN iobroker No repository field.
! npm WARN iobroker No README data
! npm WARN iobroker No license field.
! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
И не работает. `
node 5 не работает. Надо 4 ставить -
Захожу под "root"
root@bananapi ~ # apt-get update root@bananapi ~ # apt-get upgrade
устанавливаю "npm" и "nodejs"
root@bananapi ~ # apt-get install curl root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash - root@bananapi ~ # apt-get install nodejs
получается так -````
root@pi ~ # nodejs -v
v5.7.1
root@pi ~ # npm -v
3.6.0дальше -```` $ cd /opt $ mkdir iobroker $ cd iobroker $ npm install iobroker
получается вот-так -
! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
! /opt/iobroker
! └─┬ iobroker@0.6.0
! └─┬ yargs@4.2.0
! ├── camelcase@2.1.0
! ├─┬ cliui@3.1.0
! │ ├─┬ strip-ansi@3.0.1
! │ │ └── ansi-regex@2.0.0
! │ └── wrap-ansi@1.0.0
! ├── decamelize@1.2.0
! ├─┬ lodash.assign@4.0.6
! │ ├── lodash.keys@4.0.5
! │ └── lodash.rest@4.0.1
! ├─┬ os-locale@1.4.0
! │ └─┬ lcid@1.0.0
! │ └── invert-kv@1.0.0
! ├─┬ pkg-conf@1.1.1
! │ ├─┬ find-up@1.1.2
! │ │ ├── path-exists@2.1.0
! │ │ └─┬ pinkie-promise@2.0.0
! │ │ └── pinkie@2.0.4
! │ ├── object-assign@4.0.1
! │ ├─┬ read-pkg@1.1.0
! │ │ ├─┬ load-json-file@1.1.0
! │ │ │ ├── graceful-fs@4.1.3
! │ │ │ ├─┬ parse-json@2.2.0
! │ │ │ │ └─┬ error-ex@1.3.0
! │ │ │ │ └── is-arrayish@0.2.1
! │ │ │ ├── pify@2.3.0
! │ │ │ └─┬ strip-bom@2.0.0
! │ │ │ └── is-utf8@0.2.1
! │ │ ├─┬ normalize-package-data@2.3.5
! │ │ │ ├── hosted-git-info@2.1.4
! │ │ │ ├─┬ is-builtin-module@1.0.0
! │ │ │ │ └── builtin-modules@1.1.1
! │ │ │ ├── semver@5.1.0
! │ │ │ └─┬ validate-npm-package-license@3.0.1
! │ │ │ ├─┬ spdx-correct@1.0.2
! │ │ │ │ └── spdx-license-ids@1.2.0
! │ │ │ └─┬ spdx-expression-parse@1.0.2
! │ │ │ └── spdx-exceptions@1.0.4
! │ │ └── path-type@1.1.0
! │ └── symbol@0.2.1
! ├── read-pkg-up@1.0.1
! ├── require-main-filename@1.0.1
! ├─┬ string-width@1.0.1
! │ ├─┬ code-point-at@1.0.0
! │ │ └── number-is-nan@1.0.0
! │ └── is-fullwidth-code-point@1.0.0
! ├── window-size@0.2.0
! ├── y18n@3.2.0
! └── yargs-parser@2.1.1
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
! npm WARN iobroker No description
! npm WARN iobroker No repository field.
! npm WARN iobroker No README data
! npm WARN iobroker No license field.
! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
И не работает. `
http://stackoverflow.com/questions/1813 … -run-in-wdIf npm was invoked with root privileges, then it will change the uid to the user account or uid specified by the user config, which defaults to nobody. Set the unsafe-perm flag to run scripts with root privileges.
[sudo] npm install --unsafe-perm
-
Ура заработало!
Изменил строку:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - ````на
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
и установка так :
npm install iobroker --unsafe-perm
и заработало ,но нет автозапуска. Только через - iobroker start
-
Ура заработало!
Изменил строку:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - ````на
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
и установка так :
npm install iobroker --unsafe-perm
и заработало ,но нет автозапуска. Только через - iobroker start `
Сделай /etc/init.d/iobroker.sh start
-
/etc/init.d/iobroker.sh start
zsh: Отказано в доступе: /etc/init.d/iobroker.sh
вот так.
-
/etc/init.d/iobroker.sh start
zsh: Отказано в доступе: /etc/init.d/iobroker.sh
вот так. `
sudo /etc/init.d/iobroker.sh start -
Теперь вот такое выдает.
root@pi ~ # sudo /etc/init.d/iobroker.sh start sudo will not execute and completion _sudo exists.
Может куда принудительно строку добавить?