Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
arteck opened this issue Feb 21, 2022 · 8 comments
Closed

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

arteck opened this issue Feb 21, 2022 · 8 comments

Comments

@arteck
Copy link

arteck commented Feb 21, 2022

grafik

settings
grafik

version 3.3.1

i use ser2net for with a raspi

@TbsJah
Copy link

TbsJah commented Feb 21, 2022

same for me

@Ilovegym66
Copy link

Ilovegym66 commented Feb 21, 2022

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
Copy link
Owner

@Apollon77
Copy link
Owner

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

@TbsJah
Copy link

TbsJah commented Feb 21, 2022

new version it is not working for me
path is missing

image

@Apollon77
Copy link
Owner

Ok, 3.3.3 ... next try

@Apollon77 Apollon77 changed the title SerialPort is not a constructor 3.3.1 and 3.3.2 not working Feb 21, 2022
@Apollon77 Apollon77 pinned this issue Feb 21, 2022
@Apollon77 Apollon77 changed the title 3.3.1 and 3.3.2 not working 3.3.1 and 3.3.2 not working - Fix is in 3.3.3 Feb 21, 2022
@TbsJah
Copy link

TbsJah commented Feb 21, 2022

great job - now works like clockwork

@amg666
Copy link

amg666 commented Feb 21, 2022

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"
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants