Apollon77 / ioBroker.smartmeter

ioBroker-Adapter to read out Smart-Meter using protocols like SML, D0 and such
MIT License
36 stars 17 forks source link

3.3.1 and 3.3.2 not working - Fix is in 3.3.3 #292

Closed arteck closed 2 years ago

arteck commented 2 years ago

grafik

settings grafik

version 3.3.1

i use ser2net for with a raspi

TbsJah commented 2 years ago

same for me

Ilovegym66 commented 2 years ago

same here without ser2net, Raspi Zero with Node 14 and NPM 6.14.16 2022-02-21 07:01:01.983 - info: host.zeroberry Restart adapter system.adapter.smartmeter.0 because enabled 2022-02-21 07:01:34.189 - info: host.zeroberry instance system.adapter.smartmeter.0 started with pid 1628 2022-02-21 07:01:58.418 - info: smartmeter.0 (1628) starting. Version 3.3.1 in /opt/iobroker/node_modules/iobroker.smartmeter, node: v14.16.0, js-controller: 4.0.15 2022-02-21 07:01:58.684 - error: smartmeter.0 (1628) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2022-02-21 07:01:58.689 - error: smartmeter.0 (1628) unhandled promise rejection: SerialPort is not a constructor 2022-02-21 07:02:02.167 - error: smartmeter.0 (1628) TypeError: SerialPort is not a constructor at SerialRequestResponseTransport.init (/opt/iobroker/node_modules/smartmeter-obis/lib/transports/SerialRequestResponseTransport.js:47:27) at Object.init (/opt/iobroker/node_modules/smartmeter-obis/index.js:72:17) at main (/opt/iobroker/node_modules/iobroker.smartmeter/smartmeter.js:365:34) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.smartmeter/smartmeter.js:169:13) at Adapter.emit (events.js:315:20) at Adapter.EventEmitter.emit (domain.js:467:12) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:9128:26 2022-02-21 07:02:02.174 - error: smartmeter.0 (1628) SerialPort is not a constructor 2022-02-21 07:02:02.321 - info: smartmeter.0 (1628) terminating 2022-02-21 07:02:02.333 - warn: smartmeter.0 (1628) Terminated (UNCAUGHT_EXCEPTION): Without reason 2022-02-21 07:02:04.289 - info: smartmeter.0 (1628) terminating with timeout 2022-02-21 07:02:06.881 - error: host.zeroberry Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2022-02-21 07:02:06.885 - error: host.zeroberry Caught by controller[1]: TypeError: SerialPort is not a constructor 2022-02-21 07:02:06.887 - error: host.zeroberry Caught by controller[1]: at SerialRequestResponseTransport.init (/opt/iobroker/node_modules/smartmeter-obis/lib/transports/SerialRequestResponseTransport.js:47:27) 2022-02-21 07:02:06.890 - error: host.zeroberry Caught by controller[1]: at Object.init (/opt/iobroker/node_modules/smartmeter-obis/index.js:72:17) 2022-02-21 07:02:06.893 - error: host.zeroberry Caught by controller[1]: at main (/opt/iobroker/node_modules/iobroker.smartmeter/smartmeter.js:365:34) 2022-02-21 07:02:06.896 - error: host.zeroberry Caught by controller[1]: at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.smartmeter/smartmeter.js:169:13) 2022-02-21 07:02:06.899 - error: host.zeroberry Caught by controller[1]: at Adapter.emit (events.js:315:20) 2022-02-21 07:02:06.902 - error: host.zeroberry Caught by controller[1]: at Adapter.EventEmitter.emit (domain.js:467:12) 2022-02-21 07:02:06.905 - error: host.zeroberry Caught by controller[1]: at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:9128:26 2022-02-21 07:02:06.908 - error: host.zeroberry instance system.adapter.smartmeter.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2022-02-21 07:02:06.915 - info: host.zeroberry Restart adapter system.adapter.smartmeter.0 because enabled 2022-02-21 07:02:39.834 - info: host.zeroberry instance system.adapter.smartmeter.0 started with pid 2051

Apollon77 commented 2 years ago

fixed in upcoming 3.3.2 https://github.com/Apollon77/ioBroker.smartmeter/actions/runs/1874984749

Apollon77 commented 2 years ago

Can you please verify that also the "port search" works?

TbsJah commented 2 years ago

new version it is not working for me path is missing

image

Apollon77 commented 2 years ago

Ok, 3.3.3 ... next try

TbsJah commented 2 years ago

great job - now works like clockwork

amg666 commented 2 years ago

Master-Slave system, iob 4.0.15 and node.js 14.19.0. 3.3.3 works well, thank you `

host.iobroker 2022-02-21 11:27:32.665 info iobroker exit 0
host.iobroker 2022-02-21 11:27:31.636 info iobroker upload [0] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/words.js words.js application/javascript
host.iobroker 2022-02-21 11:27:31.628 info iobroker upload [1] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/tooltip.css tooltip.css text/css
host.iobroker 2022-02-21 11:27:31.619 info iobroker upload [2] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.png smartmeter.png image/png
host.iobroker 2022-02-21 11:27:31.605 info iobroker upload [3] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.jpg smartmeter.jpg image/jpeg
host.iobroker 2022-02-21 11:27:31.592 info iobroker upload [4] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/questionmark.png questionmark.png image/png
host.iobroker 2022-02-21 11:27:31.407 info iobroker upload [5] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/index.html index.html text/html
host.iobroker 2022-02-21 11:27:31.220 info iobroker 168 packages are looking for funding run npm fund for details
host.iobroker 2022-02-21 11:27:17.796 info iobroker + iobroker.smartmeter@3.3.3removed 2 packages and updated 2 packages in 48.752s
host.iobroker 2022-02-21 11:26:27.623 info iobroker NPM version: 6.14.16Installing iobroker.smartmeter@3.3.3... (System call)
host.iobroker 2022-02-21 11:26:26.987 info iobroker Update smartmeter from @3.3.1 to @3.3.3
host.iobroker 2022-02-21 11:26:25.028 info iobroker upgrade smartmeter@3.3.3
host.iobroker 2022-02-21 11:25:29.332 info Updating repository "beta" under "http://download.iobroker.net/sources-dist-latest.json"

`