NEWS
Инсталляция под Linux
-
node iobroker start ```` `
izum@izum-eM350:/opt/iobroker$ node iobroker start /opt/iobroker/iobroker:1 (function (exports, require, module, __filename, __dirname) { node node_module ^^^^^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3 izum@izum-eM350:/opt/iobroker$ cd izum@izum-eM350:~$ node iobroker start /home/izum/iobroker:1 (function (exports, require, module, __filename, __dirname) { node node_module ^^^^^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3 izum@izum-eM350:~$ node --version v0.10.25
-
node /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js start
-
node /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js start `
Ура, все завелось! Спасибо вам за ваше терпение и отзывчивость)) -
Изюм установил js-controller
Дай еще команду
sudo nmp install iobroker
После успешной установки
sudo init 6
355_img_0820.png -
Изюм установил js-controller
Дай еще команду
sudo nmp install iobroker
После успешной установки
sudo init 6 `
Не получилось….izum@izum-eM350:/opt/iobroker$ sudo npm install iobroker npm ERR! not a package /tmp/npm-2695-nnDOKRW5/1426781950654-0.42539166775532067/tmp.tgz - > iobroker@0.5.1 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.js-controller --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../" npm install iobroker.admin --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../" Write "./iobroker start" to start the ioBroker Non-critical error: EACCES, permission denied '/usr/bin/iobroker' iobroker@0.5.1 node_modules/iobroker └── yargs@1.2.6 (minimist@0.1.0) izum@izum-eM350:/opt/iobroker$
-
"npm install iobroker" выполнится только если не существует папка "/opt/iobroker/iobroker-data". То есть устанавливается только на чистую систему.
-
"npm install iobroker" выполнится только если не существует папка "/opt/iobroker/iobroker-data". То есть устанавливается только на чистую систему. `
То есть у меня сейчас не до конца установленный iobroker?? -
-
Что-то у меня не ролучается установить ioBroker . Такое пишет
root@xbmc:/opt/iobroker# npm install iobroker
npm WARN cannot run in wd iobroker@0.5.5 node lib/setup.js (wd=/opt/iobroker/node_modules/iobroker)
iobroker@0.5.5 node_modules/iobroker
└── yargs@1.2.6 (minimist@0.1.0)
root@xbmc:/opt/iobroker# init 6
root@xbmc:/opt/iobroker#
-
А что такое WD? Название машины?
4733_dok_1_meta_ordner.docx
4733_daten_neq1512381.docx -
А что такое WD? Название машины? `
Да нет , это что-то от nodejs . Хотя когда делаю : root@xbmc:/opt/iobroker# npm install iobroker.js-controllerустанавливается ,но в конце пишет ошибки :
npm ERR! Linux 3.2.0-4-686-pae npm ERR! argv "node" "/usr/local/bin/npm" "install" "iobroker.js-controller" npm ERR! node v0.12.7 npm ERR! npm v2.14.0 npm ERR! code ELIFECYCLE npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log root@xbmc:/opt/iobroker# root@xbmc:/opt/iobroker#
-
устанавливается ,но в конце пишет ошибки `
У меня тоже при установке ошибки:> iobroker@0.5.5 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.js-controller --production --prefix /opt/iobroker /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:121 objects.getObject(obj._id, function (err, _obj) { ^ TypeError: Cannot read property 'getObject' of undefined at dbSetup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:121:20) at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:189:13 at Object.States.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2095:82) at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:179:26) at Timer.listOnTimeout (timers.js:119:15) npm ERR! Linux 3.4.108-bananapi npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/node_modules/iobroker/npm-debug.log Cannot install as normal user. Try sudo... sudo npm install iobroker.js-controller --production --prefix /opt/iobroker npm install iobroker.admin --production --prefix /opt/iobroker Write "./iobroker start" to start the ioBroker Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start iobroker is started. Go to "http://ip-addr:8081" to open the admin UI. iobroker@0.5.5 node_modules/iobroker └── yargs@1.2.6 (minimist@0.1.0) root@bananapi:/opt/iobroker#
Только файла /opt/iobroker/node_modules/iobroker/npm-debug.log не нашел…
Видимо появление этой ошибки - нормально при установке на линукс...
Все таки система "криво" устанавливается, не запускается админка, в логе ошибки:
!
2015-08-22 11:31:42.603 - info: host.bananapi ioBroker.js-controller version 0.7.9 js-controller starting 2015-08-22 11:31:42.632 - info: host.bananapi Copyright (c) 2014-2015 bluefox, hobbyquaker 2015-08-22 11:31:42.637 - info: host.bananapi hostname: bananapi 2015-08-22 11:31:42.638 - info: host.bananapi ip addresses: 192.168.69.20 fe80::17:5ff:fe01:d974 2015-08-22 11:31:42.722 - info: inMem-states listening on port 9000 2015-08-22 11:31:42.786 - info: inMem-objects listening on port 9001 2015-08-22 11:31:42.819 - info: host.bananapi InMemoryDB connected 2015-08-22 11:31:42.860 - error: host.bananapi _design/system missing - call node iobroker.js setup !
Попытка запустить вручную, ругается на конфиг admin.0root@bananapi:~# nodejs /opt/iobroker/node_modules/iobroker.admin/admin.js 2015-08-22 12:16:00.184 - error: admin.0 invalid config root@bananapi:~#
Запустился только io.js-controller:
50_pic_148.jpg -
Подскажите, как починить?
После пропадания питания вкладка "драйвера" пустая.
upd:
вкладка "сервера" тоже пустая.
А в настройках все штатно:
256___________001.jpg
256_io_v1.jpg
256_io_v2.jpg -
Спасибо , вроде исправили , как то установил . Но теперь адаптеры почему-то ставятся не в папку /opt/iobroker/node_modules ,
а в /opt/iobroker/node_modules/node_modules и ioBroker их не видит.
-
А что такое WD? Название машины? `
Да нет , это что-то от nodejs . Хотя когда делаю : root@xbmc:/opt/iobroker# npm install iobroker.js-controllerустанавливается ,но в конце пишет ошибки :
npm ERR! Linux 3.2.0-4-686-pae npm ERR! argv "node" "/usr/local/bin/npm" "install" "iobroker.js-controller" npm ERR! node v0.12.7 npm ERR! npm v2.14.0 npm ERR! code ELIFECYCLE npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log root@xbmc:/opt/iobroker# root@xbmc:/opt/iobroker# ```` `
Была ошибка. Починил в 0.7.10
wd = working directory
-
Подскажите, как починить?
После пропадания питания вкладка "драйвера" пустая. `
Исправилось?Что говорит?
cd /opt/iobroker iobroker list instances
-
Исправилось?
Что говорит?
cd /opt/iobroker iobroker list instances ```` `
не исправилось
root@zvmubn:/opt/iobroker# iobroker list instances system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.web.0 : web - enabled, port: 8082, bind: 0.0.0.0, run as: admin system.adapter.vis.0 : vis - enabled system.adapter.s7.0 : s7 - enabled system.adapter.vis-hqwidgets.0 : vis-hqwidgets - enabled system.adapter.vis-lcars.0 : vis-lcars - enabled system.adapter.vis-metro.0 : vis-metro - enabled system.adapter.javascript.0 : javascript - enabled system.adapter.history.0 : history - enabled system.adapter.rickshaw.0 : rickshaw - enabled system.adapter.vis-colorpicker.0 : vis-colorpicker - enabled system.adapter.icons-addictive-flavour-png.0: icons-addictive-flavour-png - enabled system.adapter.vis-bars.0 : vis-bars - enabled system.adapter.vis-plumb.0 : vis-plumb - enabled root@zvmubn:/opt/iobroker#
-
А на
cd /opt/iobroker iobroker update
?
-
А на
cd /opt/iobroker iobroker update
? `
root@zvmubn:/opt/iobroker# iobroker update update done Adapter "zwave" : 0.1.0 Adapter "yr" : 0.1.7 Adapter "web" : 0.4.3 , installed 0.4.3 Adapter "vis-plumb" : 0.1.5 , installed 0.1.5 Adapter "vis-metro" : 0.1.7 , installed 0.1.7 Adapter "vis-lcars" : 0.1.6 , installed 0.1.6 Adapter "vis-hqwidgets" : 0.1.0 , installed 0.1.0 Adapter "vis-colorpicker": 0.1.0 , installed 0.1.0 Adapter "vis-bars" : 0.0.3 , installed 0.0.3 Adapter "vis" : 0.6.13 , installed 0.6.12 [Updateable] Adapter "sonos" : 0.1.6 Adapter "rickshaw" : 0.2.2 , installed 0.2.2 Adapter "pushover" : 0.1.1 Adapter "pushbullet" : 0.0.6 Adapter "owfs" : 0.0.2 Adapter "onkyo" : 0.1.9 Adapter "socketio" : 0.4.5 Adapter "simple-api" : 0.1.1 Adapter "scenes" : 0.1.2 Adapter "sayit" : 0.3.11 Adapter "s7" : 0.1.8 , installed 0.1.8 Adapter "ping" : 0.1.4 Adapter "node-red" : 0.3.5 Adapter "mqtt" : 0.2.9 Adapter "megad" : 0.1.1 Adapter "knx" : 0.0.1 Controller "js-controller" : 0.7.10 , installed 0.7.7 [Updateable] Adapter "javascript" : 0.5.5 , installed 0.5.4 [Updateable] Adapter "icons-ultimate-png": 0.1.0 Adapter "icons-open-icon-library-png": 0.1.1 Adapter "icons-mfd-svg" : 0.1.0 Adapter "icons-mfd-png" : 0.1.0 Adapter "icons-material-svg": 0.1.0 Adapter "icons-material-png": 0.1.0 Adapter "icons-addictive-flavour-png": 0.1.0 , installed 0.1.0 Adapter "ical" : 1.1.1 Adapter "hmm" : 0.1.1 Adapter "hue" : 0.4.3 Adapter "hm-rpc" : 0.5.2 Adapter "hm-rega" : 0.2.2 Adapter "history" : 0.1.3 , installed 0.1.3 Adapter "harmony" : 0.5.2 Adapter "example" : 0.1.1 , installed 0.1.1 Adapter "fritzbox" : 0.2.1 Adapter "flot" : 0.1.1 Adapter "email" : 0.1.2 Adapter "dwd" : 0.1.10 Adapter "cul" : 0.0.4 Adapter "b-control-em" : 0.1.1 Adapter "artnet" : 0.0.3 Adapter "admin" : 0.5.8 , installed 0.5.8 root@zvmubn:/opt/iobroker#
-
Была ошибка. Починил в 0.7.10 `
Почему то некоторые (точнее почти все) адаптеры имеет статус "undefined".Скрин прилагаю.
Лог работы iobroker:
!
host-bananapi 2015-08-23 15:56:01 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 15:42:22 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 15:42:17 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 14:43:43 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:43:37 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 14:28:56 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:28:50 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 14:27:33 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:27:27 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 14:21:49 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:21:43 info Update repository "default" under "conf/sources-dist.json" host-bananapi 2015-08-23 14:19:11 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:19:06 info Update repository "default" under "conf/sources-dist.json" admin-0 2015-08-23 14:14:48 info received all objects admin-0 2015-08-23 14:14:48 info received all states admin-0 2015-08-23 14:14:48 info Use link "http://localhost:8081" to configure. admin-0 2015-08-23 14:14:48 info http server listening on port 8081 admin-0 2015-08-23 14:14:48 info requesting all objects admin-0 2015-08-23 14:14:48 info requesting all states admin-0 2015-08-23 14:14:48 info starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.admin host-bananapi 2015-08-23 14:14:38 info instance system.adapter.admin.0 started with pid 2384 host-bananapi 2015-08-23 14:14:38 info starting 1 instance host-bananapi 2015-08-23 14:14:38 info 1 instance found host-bananapi 2015-08-23 14:14:38 info InMemoryDB connected inMem-objects 2015-08-23 14:14:38 info listening on port 9001 inMem-states 2015-08-23 14:14:38 info listening on port 9000 host-bananapi 2015-08-23 14:14:38 info ip addresses: 192.168.69.20 fe80::17:5ff:fe01:d974 host-bananapi 2015-08-23 14:14:38 info hostname: bananapi host-bananapi 2015-08-23 14:14:38 info Copyright (c) 2014-2015 bluefox, hobbyquaker host-bananapi 2015-08-23 14:14:38 info ioBroker.js-controller version 0.7.10 js-controller starting host-bananapi 2015-08-23 14:13:29 info received SIGTERM host-bananapi 2015-08-23 14:13:29 info terminated host-bananapi 2015-08-23 14:13:27 info instance system.adapter.admin.0 terminated with code 0 (OK) admin-0 2015-08-23 14:13:26 info terminating admin-0 2015-08-23 14:13:26 info terminating http server on port 8081 host-bananapi 2015-08-23 14:13:26 info stopInstance system.adapter.admin.0 killing pid 3053 host-bananapi 2015-08-23 14:13:26 info stopInstance system.adapter.admin.0 host-bananapi 2015-08-23 14:13:26 info received SIGTERM host-bananapi 2015-08-23 14:11:38 warn warning: Looks like there is no internet. host-bananapi 2015-08-23 14:11:31 info Update repository "default" under "conf/sources-dist.json" admin-0 2015-08-23 14:09:44 info received all states admin-0 2015-08-23 14:09:44 info received all objects admin-0 2015-08-23 14:09:44 info Use link "http://localhost:8081" to configure. admin-0 2015-08-23 14:09:44 info http server listening on port 8081 admin-0 2015-08-23 14:09:44 info requesting all objects admin-0 2015-08-23 14:09:44 info requesting all states admin-0 2015-08-23 14:09:43 info starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.admin host-bananapi 2015-08-23 14:09:33 info instance system.adapter.admin.0 started with pid 3053 host-bananapi 2015-08-23 14:09:33 info starting 1 instance host-bananapi 2015-08-23 14:09:33 info 1 instance found host-bananapi 2015-08-23 14:09:33 info InMemoryDB connected inMem-objects 2015-08-23 14:09:33 info listening on port 9001 inMem-states 2015-08-23 14:09:33 info listening on port 9000 host-bananapi 2015-08-23 14:09:33 info ip addresses: 192.168.69.20 fe80::17:5ff:fe01:d974 host-bananapi 2015-08-23 14:09:33 info hostname: bananapi host-bananapi 2015-08-23 14:09:32 info Copyright (c) 2014-2015 bluefox, hobbyquaker !
50_pic_44.jpg
50_pic_43.jpg