NEWS
Драйвер ioBroker Visualisation (vis)
-
Доброго дня всем.
Установил драйвер визуализации. Загрузил интерфейс, попробовал добавлять элементы, вроде все работает.
Но заметил ошибку или может быть просто глюк.
Драйвер запущен, ioBroker.vis работает, данные отображает, в htop его видно, но в админке на вкладке "Настройки драйверов" в статусах "Активен" и "Соединение" почему то false (а еще раньше на версии js-controller 0.4.1 и admin 0.3.9 статусы true/false были зелеными/красными, сейчас просто черные).
И на вкладке "Состояния" если найти эти переменные - они тоже false.
Хотя может так и задумывалось? :oops:
50_pic_88.jpg
50_pic_87.jpg
50_pic_86.jpg -
Доброго дня всем.
Установил драйвер визуализации. Загрузил интерфейс, попробовал добавлять элементы, вроде все работает.
Но заметил ошибку или может быть просто глюк.
Драйвер запущен, ioBroker.vis работает, данные отображает, в htop его видно, но в админке на вкладке "Настройки драйверов" в статусах "Активен" и "Соединение" почему то false (а еще раньше на версии js-controller 0.4.1 и admin 0.3.9 статусы true/false были зелеными/красными, сейчас просто черные).
И на вкладке "Состояния" если найти эти переменные - они тоже false.
Хотя может так и задумывалось? :oops: `
Так должно быть.. Надо вообще эти переменные убрать. vis не имеет собственного процесса и быть connected там соответсвенно нечему.
513_vlcsnap-error012_2.jpg -
Не стартует драйвер vis.
Система 0.5.4, установлена с чистого листа через npm.
В логе ошибки:
!
bananapi 2015-01-29 23:51:47 info host.bananapi Restart adapter system.adapter.web.0 because enabled bananapi 2015-01-29 23:51:47 error host.bananapi instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 23:51:47 info web.0 http server listening on port 8082 web.0 2015-01-29 23:51:47 error Error: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Modu web.0 2015-01-29 23:51:47 error uncaught exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 23:51:47 info web.0 starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web bananapi 2015-01-29 23:51:44 info host.bananapi instance system.adapter.web.0 started with pid 2401 host.bananapi 2015-01-29 21:51:14 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:51:14 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:51:13 info http server listening on port 8082 Error: 2015-01-29 21:51:13 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:51:13 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:51:13 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:51:13 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:51:13 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:51:13 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:51:13 error at require (module.js:380:17) Error: 2015-01-29 21:51:13 error at Module.require (module.js:364:17) Error: 2015-01-29 21:51:13 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:51:13 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:51:13 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:51:13 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:51:13 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:51:11 info instance system.adapter.web.0 started with pid 2395 host.bananapi 2015-01-29 21:50:40 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:50:40 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:50:40 info http server listening on port 8082 Error: 2015-01-29 21:50:40 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:50:40 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:50:40 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:50:40 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:50:40 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:50:40 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:50:40 error at require (module.js:380:17) Error: 2015-01-29 21:50:40 error at Module.require (module.js:364:17) Error: 2015-01-29 21:50:40 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:50:40 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:50:40 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:50:40 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:50:40 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:50:37 info instance system.adapter.web.0 started with pid 2389 host.bananapi 2015-01-29 21:50:07 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:50:07 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:50:07 info http server listening on port 8082 Error: 2015-01-29 21:50:07 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:50:07 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:50:07 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:50:07 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:50:07 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:50:07 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:50:07 error at require (module.js:380:17) Error: 2015-01-29 21:50:07 error at Module.require (module.js:364:17) Error: 2015-01-29 21:50:07 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:50:07 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:50:07 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:50:07 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:50:07 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:50:04 info instance system.adapter.web.0 started with pid 2382 host.bananapi 2015-01-29 21:49:34 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:49:34 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:49:34 info http server listening on port 8082 Error: 2015-01-29 21:49:34 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:49:34 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:49:34 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:49:34 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:49:34 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:49:34 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:49:34 error at require (module.js:380:17) Error: 2015-01-29 21:49:34 error at Module.require (module.js:364:17) Error: 2015-01-29 21:49:34 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:49:34 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:49:34 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:49:34 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:49:34 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:49:31 info instance system.adapter.web.0 started with pid 2376 host.bananapi 2015-01-29 21:49:00 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:49:00 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:49:00 info http server listening on port 8082 Error: 2015-01-29 21:49:00 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:49:00 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:49:00 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:49:00 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:49:00 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:49:00 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:49:00 error at require (module.js:380:17) Error: 2015-01-29 21:49:00 error at Module.require (module.js:364:17) Error: 2015-01-29 21:49:00 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:49:00 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:49:00 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:49:00 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:49:00 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:48:57 info instance system.adapter.web.0 started with pid 2330 host.bananapi 2015-01-29 21:48:27 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:48:27 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:48:27 info http server listening on port 8082 Error: 2015-01-29 21:48:27 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:48:27 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:48:27 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:48:27 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:48:27 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:48:27 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:48:27 error at require (module.js:380:17) Error: 2015-01-29 21:48:27 error at Module.require (module.js:364:17) Error: 2015-01-29 21:48:27 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:48:27 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:48:27 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:48:27 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:48:27 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:48:24 info instance system.adapter.web.0 started with pid 2324 host.bananapi 2015-01-29 21:47:54 info Restart adapter system.adapter.web.0 because enabled !
В htop видно, что пытается запуститься и тут же рушится… -
Не стартует драйвер vis.
Система 0.5.4, установлена с чистого листа через npm.
В логе ошибки:
!
bananapi 2015-01-29 23:51:47 info host.bananapi Restart adapter system.adapter.web.0 because enabled bananapi 2015-01-29 23:51:47 error host.bananapi instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 23:51:47 info web.0 http server listening on port 8082 web.0 2015-01-29 23:51:47 error Error: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Modu web.0 2015-01-29 23:51:47 error uncaught exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 23:51:47 info web.0 starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web bananapi 2015-01-29 23:51:44 info host.bananapi instance system.adapter.web.0 started with pid 2401 host.bananapi 2015-01-29 21:51:14 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:51:14 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:51:13 info http server listening on port 8082 Error: 2015-01-29 21:51:13 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:51:13 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:51:13 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:51:13 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:51:13 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:51:13 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:51:13 error at require (module.js:380:17) Error: 2015-01-29 21:51:13 error at Module.require (module.js:364:17) Error: 2015-01-29 21:51:13 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:51:13 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:51:13 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:51:13 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:51:13 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:51:11 info instance system.adapter.web.0 started with pid 2395 host.bananapi 2015-01-29 21:50:40 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:50:40 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:50:40 info http server listening on port 8082 Error: 2015-01-29 21:50:40 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:50:40 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:50:40 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:50:40 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:50:40 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:50:40 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:50:40 error at require (module.js:380:17) Error: 2015-01-29 21:50:40 error at Module.require (module.js:364:17) Error: 2015-01-29 21:50:40 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:50:40 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:50:40 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:50:40 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:50:40 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:50:37 info instance system.adapter.web.0 started with pid 2389 host.bananapi 2015-01-29 21:50:07 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:50:07 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:50:07 info http server listening on port 8082 Error: 2015-01-29 21:50:07 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:50:07 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:50:07 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:50:07 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:50:07 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:50:07 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:50:07 error at require (module.js:380:17) Error: 2015-01-29 21:50:07 error at Module.require (module.js:364:17) Error: 2015-01-29 21:50:07 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:50:07 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:50:07 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:50:07 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:50:07 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:50:04 info instance system.adapter.web.0 started with pid 2382 host.bananapi 2015-01-29 21:49:34 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:49:34 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:49:34 info http server listening on port 8082 Error: 2015-01-29 21:49:34 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:49:34 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:49:34 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:49:34 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:49:34 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:49:34 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:49:34 error at require (module.js:380:17) Error: 2015-01-29 21:49:34 error at Module.require (module.js:364:17) Error: 2015-01-29 21:49:34 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:49:34 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:49:34 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:49:34 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:49:34 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:49:31 info instance system.adapter.web.0 started with pid 2376 host.bananapi 2015-01-29 21:49:00 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:49:00 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:49:00 info http server listening on port 8082 Error: 2015-01-29 21:49:00 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:49:00 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:49:00 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:49:00 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:49:00 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:49:00 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:49:00 error at require (module.js:380:17) Error: 2015-01-29 21:49:00 error at Module.require (module.js:364:17) Error: 2015-01-29 21:49:00 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:49:00 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:49:00 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:49:00 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:49:00 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:48:57 info instance system.adapter.web.0 started with pid 2330 host.bananapi 2015-01-29 21:48:27 info Restart adapter system.adapter.web.0 because enabled host.bananapi 2015-01-29 21:48:27 error instance system.adapter.web.0 terminated with code 6 (uncaught exception) web.0 2015-01-29 21:48:27 info http server listening on port 8082 Error: 2015-01-29 21:48:27 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) Error: 2015-01-29 21:48:27 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:219:12) Error: 2015-01-29 21:48:27 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:294:6) Error: 2015-01-29 21:48:27 error at Socket. (/opt/iobroker/node_modules/iobroker.web/main.js:65:21) Error: 2015-01-29 21:48:27 error at main (/opt/iobroker/node_modules/iobroker.web/main.js:108:21) Error: 2015-01-29 21:48:27 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:321:30) Error: 2015-01-29 21:48:27 error at require (module.js:380:17) Error: 2015-01-29 21:48:27 error at Module.require (module.js:364:17) Error: 2015-01-29 21:48:27 error at Function.Module._load (module.js:280:25) Error: 2015-01-29 21:48:27 error at Function.Module._resolveFilename (module.js:338:15) Error: 2015-01-29 21:48:27 error Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' uncaught 2015-01-29 21:48:27 error exception: Cannot find module '/opt/iobroker/node_modules/iobroker.web/node_modules/iobroker.socketio/lib/iobrokersocket.js' web.0 2015-01-29 21:48:27 info starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.web host.bananapi 2015-01-29 21:48:24 info instance system.adapter.web.0 started with pid 2324 host.bananapi 2015-01-29 21:47:54 info Restart adapter system.adapter.web.0 because enabled !
В htop видно, что пытается запуститься и тут же рушится… `
Зайди в /opt/iobroker/node_modules/iobroker.web/и выполни
npm install
Если не поможет то удали папку /opt/iobroker/node_modules/iobroker.web/node_modules/
и выполни npm install
Причина в том, что Socket.io в web не обновился.
Вообще можно полностью удалить web и снова добавить. В /opt/iobroker/
./iobroker del web ./iobroker add web
-
Имеется ли в драйвере кнопка для отправления гет запроса, чтобы раз нажал один запрос, повотрно другой?
-
Опиши, что ты хочешь делать.
-
Сделать кнопку, при нажатии (включении) отправляется один гет запрос, при повторном нажатии (выключении) отправляется другой гет запрос.
Так как драйвера под ардуину нет, пока потестить хотел
-
Это делается подругому. В javascript драйвере создаёшь скрипт:
createState('arduinoButton', false); on('arduinoButton', function (obj) { if (!obj.newState.ack) { if (obj.newState.val === 'true' || obj.newState.val === true) { request('http://arduinoIP/setPort=ON', function () { setState('arduinoButton', {val: true; ack: true}); }); } else { request('http://arduinoIP/setPort=OFF', function () { setState('arduinoButton', {val: false; ack: true}); }); } } });
И вешаешь кнопку (например jqui-ctrl-icon-toggle) и вешаешь её на объект javascript.0.arduinoButton
-
Сменил тип движка, перезашел теперь ругается на функцию:
-
Оставь тип движка, как был (javascript)
В коде была ошибка:
createState('arduinoButton', false); on('arduinoButton', function (obj) { if (!obj.newState.ack) { if (obj.newState.val === 'true' || obj.newState.val === true) { request('http://arduinoIP/setPort=ON', function () { setState('arduinoButton', {val: true, ack: true}); }); } else { request('http://arduinoIP/setPort=OFF', function () { setState('arduinoButton', {val: false, ack: true}); }); } } });
-
У меня еще ниразу с первого раза ничего не получилось. В виз добавил кнопку, при нажатии значение объекта изменяется, но ардуина не реагирует, в логе вот что пишет:
javascript.1 2015-05-04 14:34:43 error ReferenceError: request is not defined at Object. (script.js.Test:9:13) at Object.subscriptions.push.callback (c:\ioBroker\node_modules\iobroker.javascript\javascript.js:772:48)
javascript.1 2015-05-04 14:34:43 error message javascript.1.arduinoButton [object Object] request is not defined
javascript.1 2015-05-04 14:34:40 error ReferenceError: request is not defined at Object. (script.js.Test:5:13) at Object.subscriptions.push.callback (c:\ioBroker\node_modules\iobroker.javascript\javascript.js:772:48)
javascript.1 2015-05-04 14:34:40 error message javascript.1.arduinoButton [object Object] request is not defined
-
Опять ошибка…
var request = require('request'); createState('arduinoButton', false); on('arduinoButton', function (obj) { if (!obj.newState.ack) { if (obj.newState.val === 'true' || obj.newState.val === true) { request('http://arduinoIP/setPort=ON', function () { setState('arduinoButton', {val: true, ack: true}); }); } else { request('http://arduinoIP/setPort=OFF', function () { setState('arduinoButton', {val: false, ack: true}); }); } } });
Всё заработает. Главное не сдавайся
-
Опять ошибка…
var request = require('request'); createState('arduinoButton', false); on('arduinoButton', function (obj) { if (!obj.newState.ack) { if (obj.newState.val === 'true' || obj.newState.val === true) { request('http://arduinoIP/setPort=ON', function () { setState('arduinoButton', {val: true, ack: true}); }); } else { request('http://arduinoIP/setPort=OFF', function () { setState('arduinoButton', {val: false, ack: true}); }); } } });
Всё заработает. Главное не сдавайся `
Вот сейчас все заработало! Спасибо! Что там на счет драйвера Arduino? Хотелось бы хоть что то услышать;)
-
Нюанс, с первого раза вроде срабатывает норм, если повторно нажать уже сразу не срабатывает. если ничего не жать то значение иногда перемелькивает False/true.
Такое чуство что значение меняется, а гет запрос уходит с задержкой.
Хм, а гет запрос уходит один раз? Когда скрипт активен, ардуина плохо отвечает даже на запросы браузера, как только скрипт останавливаю из браузера летает.
-
Попробуй:````
var request = require('request');
createState('arduinoButton', false);
on('arduinoButton', function (obj) {
if (!obj.newState.ack) {
if (obj.newState.val === 'true' || obj.newState.val === true) {
log('Switch ON');
request('http://arduinoIP/setPort=ON', function () {
setState('arduinoButton', {val: true, ack: true});
});
} else {
log('Switch OFF');
request('http://arduinoIP/setPort=OFF', function () {
setState('arduinoButton', {val: false, ack: true});
});
}
}
});Что пишет в логах?
-
Что пишет в логах? `
javascript.1 2015-05-04 18:43:59 info javascript.1 script.js.Test: Switch OFF
javascript.1 2015-05-04 18:43:57 info javascript.1 script.js.Test: Switch ON
javascript.1 2015-05-04 18:43:55 info javascript.1 script.js.Test: Switch OFF
javascript.1 2015-05-04 18:43:51 info javascript.1 script.js.Test: Switch ON
javascript.1 2015-05-04 18:43:49 info javascript.1 script.js.Test: Switch OFF
javascript.1 2015-05-04 18:43:46 info javascript.1 script.js.Test: Switch ON
javascript.1 2015-05-04 18:43:44 info javascript.1 script.js.Test: Switch OFF
javascript.1 2015-05-04 18:43:42 info javascript.1 script.js.Test: Switch ON
javascript.1 2015-05-04 18:43:40 info javascript.1 script.js.Test: Switch OFF
javascript.1 2015-05-04 18:43:38 info javascript.1 script.js.Test: Switch ON
-
var request = require('request'); createState('arduinoButton', false); on('arduinoButton', function (obj) { if (!obj.newState.ack) { if (obj.newState.val === 'true' || obj.newState.val === true) { log('Switch ON: ' + JSON.stringify(obj.newState)); request('http://arduinoIP/setPort=ON', function () { setState('arduinoButton', {val: true, ack: true}); }); } else { log('Switch OFF: ' + JSON.stringify(obj.newState)); request('http://arduinoIP/setPort=OFF', function () { setState('arduinoButton', {val: false, ack: true}); }); } } });
-
javascript.1 2015-05-04 18:50:20 info javascript.1 script.js.Test: Switch OFF: {"val":false,"ts":1430743821,"ack":false,"lc":1430743821,"from":"system.adapter.web.0"}
javascript.1 2015-05-04 18:50:19 info javascript.1 script.js.Test: Switch ON: {"val":true,"ts":1430743820,"ack":false,"lc":1430743820,"from":"system.adapter.web.0"}
Вроде работает сейчас
Хоть освещением пока поуправлять можно)
-
Почему страничка созданная в vis не маштабируется и не скролится на телефоне?
-
Скроллится точно должна… У тебя актуальная версия?