npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-red-contrib-wznhjc-multi-ui

v1.7.10

Published

Node-RED 4.x nodes and library for NetDAU485 collector (multi-UI): edge parse, TCP handshake, archives_ack, report, auto-reconnect

Readme

node-red-contrib-wznhjc-multi-ui

采集器客户端协议库(NetDAU485)+ Node-RED 节点:wznhjc-multi-edge-parsewznhjc-multi-collector、Operator UI。
面向 Node-RED 4.0+ 新设备,支持边缘测点解析、TCP 握手、archives_ack 全量建档、仅有效读数 report、自动重连。

自原 node-red-contrib-wznhjc-collector 项目 fork 的独立 npm 包,包名与版本线独立维护。

环境要求

| 项 | 版本 | |----|------| | Node.js | >= 18(Node-RED 4.x 最低要求;推荐 20 LTS) | | Node-RED | >= 4.0(现场目标 4.0.2) |

在 Node-RED 里安装(推荐)

  1. 菜单 设置 → 节点管理(Manage palette)→ 安装
  2. 搜索并安装:node-red-contrib-wznhjc-multi-ui
  3. 重启或部署后,在 palette 分类 wznhjc-multi 下可见节点;Operator 页 /wznhjc/operator

首次安装也可在 ~/.node-red 执行:

npm install node-red-contrib-wznhjc-multi-ui

环境:Node.js >= 18,Node-RED >= 4.0(含 4.0.2)。

详细说明见 docs/NODE-RED.md
发布维护docs/PUBLISH.md(npm + flows.nodered.org 步骤)。

作为 npm 库使用

const {
  validateCollectorOptions,
  parseEdgeGetNodesPayload,
  buildElectricMetersFromEdgeParsed,
  connectCollectorUntilOnline,
  startCollectorAutoReconnect,
} = require('node-red-contrib-wznhjc-multi-ui');

推荐流程

[edge get nodes] → [multi edge-parse] → [multi collector]
  • 建档:multi edge-parse 配置的全部 NodeID(无读数也建档)
  • 上报:仅有有效数值的测点

开发 / 本地测试

npm install
npm test
npm run run:collector:local    # 改 scripts/run-collector-local.js 里的 LOCAL_CONFIG
npm run simulate:edge
npm run pack:install           # 模拟 tgz 安装到 examples/test-collector-consumer

连接必填参数

| 参数 | 说明 | |------|------| | host | 采集器地址 | | port | 端口 | | buildName | 建筑名称 | | buildNo | 建筑编号 / building_id | | gatewayId | 网关号 |

可选:snmacipedgeGetNodesParsed / edgeNodeIds 用于档案与 report。

常用默认值

| 项 | 默认 | |----|------| | 握手步进 | 2000 ms(业务需要,每条服务端帧同步等待) | | 握手超时 | 120 s | | notify 心跳 | 30 s | | 首次 report | online 后 5 s | | 周期 report | 5 min | | 自动重连 | 3 min | | 协议日志保留 | 10 天 |

包内容

发布包含:src/NetDAU_CLIENT/(含内置 collectorRuntimeConfig)、libs/log.jsnodes/
不依赖 npm config 包;协议调试开启时写入 ~/.node-red/logs/collector-protocol.yyyy-MM-dd.log