После общения с автором драйвера выяснилось, что для модема E3272, нужно в настройках указать модем E3272h (я указывал E3272s)/ Теперь все работает.
NEWS
Latest posts made by ivan.cc
-
RE: Iobroker.hilink
-
RE: Iobroker.hilink
Установил драйвер, указал IP модема, но логи постоянно забиты error'ами.
! ````
host.Fazenda 2018-12-25 12:51:34.039 info Restart adapter system.adapter.hilink.0 because enabled
host.Fazenda 2018-12-25 12:51:34.038 error instance system.adapter.hilink.0 terminated with code 0 (OK)
host.Fazenda 2018-12-25 12:51:34.038 error Caught by controller[2]: at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:322:31)
host.Fazenda 2018-12-25 12:51:34.038 error Caught by controller[2]: at SAXParser.write (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:1436:13)
host.Fazenda 2018-12-25 12:51:34.038 error Caught by controller[2]: at closeTag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:889:7)
host.Fazenda 2018-12-25 12:51:34.038 error Caught by controller[2]: at emitNode (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:629:5)
host.Fazenda 2018-12-25 12:51:34.038 error Caught by controller[2]: at emit (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:624:35)
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:261:26)
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: at Parser.emit (events.js:182:13)
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:303:18)
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:494:25
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:696:35
host.Fazenda 2018-12-25 12:51:34.037 error Caught by controller[2]: TypeError: Cannot read property 'MonthDuration' of undefined
host.Fazenda 2018-12-25 12:51:34.036 error Caught by controller[1]: at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:322:31)
host.Fazenda 2018-12-25 12:51:34.036 error Caught by controller[1]: at SAXParser.write (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:1436:13)
host.Fazenda 2018-12-25 12:51:34.036 error Caught by controller[1]: at closeTag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:889:7)
host.Fazenda 2018-12-25 12:51:34.036 error Caught by controller[1]: at emitNode (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:629:5)
host.Fazenda 2018-12-25 12:51:34.036 error Caught by controller[1]: at emit (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:624:35)
host.Fazenda 2018-12-25 12:51:34.035 error Caught by controller[1]: at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:261:26)
host.Fazenda 2018-12-25 12:51:34.035 error Caught by controller[1]: at Parser.emit (events.js:182:13)
host.Fazenda 2018-12-25 12:51:34.035 error Caught by controller[1]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:303:18)
host.Fazenda 2018-12-25 12:51:34.035 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:494:25
host.Fazenda 2018-12-25 12:51:34.035 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:711:35
host.Fazenda 2018-12-25 12:51:34.034 error Caught by controller[1]: TypeError: Cannot read property 'CurrentConnectTime' of undefined
host.Fazenda 2018-12-25 12:51:34.034 error Caught by controller[0]: at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:322:31)
host.Fazenda 2018-12-25 12:51:34.034 error Caught by controller[0]: at SAXParser.write (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:1436:13)
host.Fazenda 2018-12-25 12:51:34.034 error Caught by controller[0]: at closeTag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:889:7)
host.Fazenda 2018-12-25 12:51:34.034 error Caught by controller[0]: at emitNode (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:629:5)
host.Fazenda 2018-12-25 12:51:34.033 error Caught by controller[0]: at emit (/opt/iobroker/node_modules/iobroker.hilink/node_modules/sax/lib/sax.js:624:35)
host.Fazenda 2018-12-25 12:51:34.033 error Caught by controller[0]: at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:261:26)
host.Fazenda 2018-12-25 12:51:34.033 error Caught by controller[0]: at Parser.emit (events.js:182:13)
host.Fazenda 2018-12-25 12:51:34.033 error Caught by controller[0]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.hilink/node_modules/xml2js/lib/parser.js:303:18)
host.Fazenda 2018-12-25 12:51:34.032 error Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:494:25
host.Fazenda 2018-12-25 12:51:34.032 error Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.hilink/node_modules/hilinkhuawei/bin/hilink.js:554:44
host.Fazenda 2018-12-25 12:51:34.031 error Caught by controller[0]: TypeError: Cannot read property 'CurrentNetworkType' of undefined
hilink.0 2018-12-25 12:50:33.804 info config model: 3372s
hilink.0 2018-12-25 12:50:33.804 info config setTest: true
hilink.0 2018-12-25 12:50:33.804 info config settime: 60
hilink.0 2018-12-25 12:50:33.804 info config trafficInfo: auto
hilink.0 2018-12-25 12:50:33.804 info config getip: 192.168.2.1
hilink.0 2018-12-25 12:50:33.803 info starting. Version 0.2.8 in /opt/iobroker/node_modules/iobroker.hilink, node: v10.9.0
host.Fazenda 2018-12-25 12:50:31.946 info instance system.adapter.hilink.0 started with pid 11938
host.Fazenda 2018-12-25 12:50:01.906 info Restart adapter system.adapter.hilink.0 because enabled</anonymous></anonymous></anonymous>ioBroker установлен на Orange Pi PC с системой ARMBIAN 5.38 stable Ubuntu 16.04.5 LTS 3.4.113-sun8i, NODE версии 10.9.0, ioBroker версии 1.4.2, ioBroker.Admin версии 3.5.1. Куда копать для исправления ошибок?
-
RE: Драйвер Wrapper (бывший Home)
Так вот я и не могу понять, почему он не хочет показывать связанные данные.
-
RE: Драйвер rpi2.0 работает, но забивает лог ошибками. Orange Pi PC
В итоге проблема нашлась. У меня стоит armbian и в нём вывод некоторых команд (например free или meminfo) отличается от обычных ubuntu/debian.
-
RE: Драйвер Wrapper (бывший Home)
Добрый день. Пытаюсь запустить драйвер, но что-то никак не получается, не появляются данные в объектах драйвера.
Настройки драйвера:
Настройка одного из связанных объектов:
! ````
{
"from": "system.adapter.javascript.0",
"ts": 1516654890422,
"common": {
"name": "Voltage phase 1",
"type": "number",
"unit": "V",
"role": "javascript",
"custom": {
"sql.0": {
"enabled": true,
"changesOnly": true,
"debounce": 1000,
"retention": 0,
"changesRelogInterval": 180,
"changesMinDelta": 0,
"storageType": "String"
}
}
},
"native": {
"type": "number",
"name": "Voltage phase 1",
"unit": "V",
"role": "javascript"
},
"acl": {
"object": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"state": 1636
},
"_id": "javascript.0.EnergyMeter.L1",
"type": "state"
}Данные в "Связанных" объектах есть и меняются, а в объектах Wrapper'а пусто: ![5355_wrapper3.jpg](/assets/uploads/files/5355_wrapper3.jpg) В логах вот так: >! ```` wrapper.0 2018-03-01 13:51:00.622 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901460584,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:51:00.621 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901460583,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:51:00.620 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901460582,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:50:00.650 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901400592,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:50:00.649 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901400591,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:50:00.648 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901400589,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:49:00.635 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901340585,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:49:00.634 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901340584,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:49:00.633 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901340582,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:48:00.624 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901280578,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:48:00.616 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901280575,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:48:00.614 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901280574,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:47:00.649 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901220605,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:47:00.647 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901220604,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:47:00.646 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901220602,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:46:00.706 debug stateChange javascript.0.EnergyMeter.L3: {"val":229,"ack":false,"ts":1519901160585,"q":0,"from":"system.adapter.javascript.0","lc":1519901160585} wrapper.0 2018-03-01 13:46:00.705 debug stateChange javascript.0.EnergyMeter.L2: {"val":217,"ack":false,"ts":1519901160584,"q":0,"from":"system.adapter.javascript.0","lc":1519901160584} wrapper.0 2018-03-01 13:46:00.692 debug stateChange javascript.0.EnergyMeter.L1: {"val":205,"ack":false,"ts":1519901160583,"q":0,"from":"system.adapter.javascript.0","lc":1519901160583} wrapper.0 2018-03-01 13:45:00.631 debug stateChange javascript.0.EnergyMeter.L3: {"val":230,"ack":false,"ts":1519901100564,"q":0,"from":"system.adapter.javascript.0","lc":1519900620650} wrapper.0 2018-03-01 13:45:00.631 debug stateChange javascript.0.EnergyMeter.L2: {"val":226,"ack":false,"ts":1519901100563,"q":0,"from":"system.adapter.javascript.0","lc":1519900620649} wrapper.0 2018-03-01 13:45:00.629 debug stateChange javascript.0.EnergyMeter.L1: {"val":199,"ack":false,"ts":1519901100561,"q":0,"from":"system.adapter.javascript.0","lc":1519900620648} sql.0 2018-03-01 13:44:17.309 info init timed Relog: disable relog because state not set so far for wrapper.0.Energy.L1: null wrapper.0 2018-03-01 13:44:00.587 debug stateChange javascript.0.EnergyMeter.L3: {"val":230,"ack":false,"ts":1519901040546,"q":0,"from":"system.adapter.javascript.0","lc":1519900620650} wrapper.0 2018-03-01 13:44:00.586 debug stateChange javascript.0.EnergyMeter.L2: {"val":226,"ack":false,"ts":1519901040545,"q":0,"from":"system.adapter.javascript.0","lc":1519900620649} wrapper.0 2018-03-01 13:44:00.585 debug stateChange javascript.0.EnergyMeter.L1: {"val":199,"ack":false,"ts":1519901040544,"q":0,"from":"system.adapter.javascript.0","lc":1519900620648} wrapper.0 2018-03-01 13:43:00.638 debug stateChange javascript.0.EnergyMeter.L3: {"val":230,"ack":false,"ts":1519900980587,"q":0,"from":"system.adapter.javascript.0","lc":1519900620650} wrapper.0 2018-03-01 13:43:00.637 debug stateChange javascript.0.EnergyMeter.L2: {"val":226,"ack":false,"ts":1519900980586,"q":0,"from":"system.adapter.javascript.0","lc":1519900620649} wrapper.0 2018-03-01 13:43:00.628 debug stateChange javascript.0.EnergyMeter.L1: {"val":199,"ack":false,"ts":1519900980585,"q":0,"from":"system.adapter.javascript.0","lc":1519900620648} sql.0 2018-03-01 13:42:52.554 info init timed Relog: disable relog because state not set so far for wrapper.0.Energy.L2: null sql.0 2018-03-01 13:42:47.607 info init timed Relog: disable relog because state not set so far for wrapper.0.Energy.L3: null sql.0 2018-03-01 13:42:13.686 info enabled logging of wrapper.0.Energy.L1 wrapper.0 2018-03-01 13:42:00.650 debug stateChange javascript.0.EnergyMeter.L3: {"val":230,"ack":false,"ts":1519900920588,"q":0,"from":"system.adapter.javascript.0","lc":1519900620650} wrapper.0 2018-03-01 13:42:00.649 debug stateChange javascript.0.EnergyMeter.L2: {"val":226,"ack":false,"ts":1519900920587,"q":0,"from":"system.adapter.javascript.0","lc":1519900620649} wrapper.0 2018-03-01 13:42:00.648 debug stateChange javascript.0.EnergyMeter.L1: {"val":199,"ack":false,"ts":1519900920585,"q":0,"from":"system.adapter.javascript.0","lc":1519900620648} wrapper.0 2018-03-01 13:41:00.729 debug stateChange javascript.0.EnergyMeter.L3: {"val":230,"ack":false,"ts":1519900860653,"q":0,"from":"system.adapter.javascript.0","lc":1519900620650} wrapper.0 2018-03-01 13:41:00.704 debug stateChange javascript.0.EnergyMeter.L2: {"val":226,"ack":false,"ts":1519900860652,"q":0,"from":"system.adapter.javascript.0","lc":1519900620649} wrapper.0 2018-03-01 13:41:00.701 debug stateChange javascript.0.EnergyMeter.L1: {"val":199,"ack":false,"ts":1519900860651,"q":0,"from":"system.adapter.javascript.0","lc":1519900620648} sql.0 2018-03-01 13:40:54.644 info enabled logging of wrapper.0.Energy.L3 sql.0 2018-03-01 13:40:54.642 info enabled logging of wrapper.0.Energy.L2 sql.0 2018-03-01 13:40:54.619 info enabled logging of wrapper.0.Energy.L1 wrapper.0 2018-03-01 13:40:54.379 info starting. Version 0.1.6 in /opt/iobroker/node_modules/iobroker.wrapper, node: v4.8.7
Что я делаю не так?
-
RE: Драйвер rpi2.0 работает, но забивает лог ошибками. Orange Pi PC
Победил.
Надо было сначала перейти в папку /opt/iobroker
-
RE: Parser Adapter
А может можно сделать, в качестве затычки, чтобы в parser adapter можно было указывать не только файл или URL, но и команду, а парсить уже её результат?
Ну или хотя бы сделать возможность использовать CURL/WGET для запроса URL'ов.
-
RE: Parser Adapter
Нашел, похоже, в чём проблема https://github.com/request/request/issues/2091
Видать сервер отдает немного кривые заголовки и NODE.request их не пропускает.
Что же делать-то? В сфере умных домов куча всяких роутеров, ардуин и пр. с кривыми заголовками.
-
RE: Драйвер rpi2.0 работает, но забивает лог ошибками. Orange Pi PC
Аналогичная ошибка. Не знает он такого пакета.
-
RE: Parser Adapter
Подниму тему. Имею аналогичную проблему при попытке получить статичный файл через веб-морду OpenWrt (веб-сервер uhttpd).
На роутере есть текстовый файлик со значениями, ссылка вида http://192.168.0.1/tmp/lastvolt.txt
curl'ом все прекрасно читается, а вот parser adapter ругается, говорит:
Cannot read link "http://192.168.0.1/tmp/lastvolt.txt": Error: Parse Error
Закидываю этот файлик на сервер в интернете - все прекрасно читается и значения получаются.
Запрашиваю веб-морду роутера и пытаюсь её пропарсить:
Адрес: http://192.168.0.1/cgi-bin/luci
Regex: Powered by LuCI ([\d.]+)
Все прекрасно запрашивается и парсится. WGET'ом скачиваю эту страницу в файл и кладу в роутер, parser adapter опять ругается той же ошибкой.
Посмотрел заголовки, которые приходят от серверов:
Запрос веб-морды роутера, удачный парсинг.
curl --head http://192.168.0.1/cgi-bin/luci HTTP/1.1 200 OK Connection: close Transfer-Encoding: chunked Content-Type: text/html Cache-Control: no-cache Expires: 0
Запрос нужного файлика с сайта в интернете, удачный парсинг.
curl --head http://site.ru/lastvolt.txt HTTP/1.1 200 OK Server: nginx Date: Mon, 22 Jan 2018 15:30:54 GMT Content-Type: text/plain Content-Length: 66 Last-Modified: Mon, 22 Jan 2018 14:54:48 GMT Connection: keep-alive ETag: "5a65fb38-42" Expires: Mon, 22 Jan 2018 21:01:00 GMT Cache-Control: max-age=19806 Accept-Ranges: bytes
Запрос нужного файлика с роутера, парсинг не получился.
curl --head http://192.168.0.1/tmp/lastvolt.txt HTTP/1.1 200 OK Connection: close ETag: "6ea9-42-5a6601c5" Last-Modified: Mon, 22 Jan 2018 15:22:45 GMT Date: Mon, 22 Jan 2018 15:22:49 GMT Content-Type: text/plain Content-Length: 66
Похоже, проблема при получении страницы нодой. К сожалению в ноде не силен и не могу проверить что происходит на уровне кода.