# iot-viewer **Repository Path**: no-code-no-fun/iot-viewer ## Basic Information - **Project Name**: iot-viewer - **Description**: IOT 工业物联网关看板 - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-13 - **Last Updated**: 2026-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # IOT-Viewer 看板 使用 **IOT-Viewer 看板** 查看 **IOT 工业物联网关**的 **设备数据** 推送。本 **看板** 仅限测试和验证使用,并开放所有 **源代码**。 数据接入步骤如下: 1. 如没有 **MQTT 服务器**,需要先安装 **MQTT 服务器**。详见仓库 Wiki 中的 [Mosquitto 安装和使用](https://gitee.com/no-code-no-fun/iot-viewer/wikis/mosquitto%20%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8)。 2. 设置 **IOT 工业物联网关** 的数据服务,通过 **MQTT 客户端** 将 **设备数据** 推送至 **MQTT 服务器**。 3. 设置 **IOT-Viewer 看板** 从 **MQTT 服务器** 接收 **设备数据** 推送。 4. 使用 **浏览器** 通过 Web 访问 **IOT-Viewer 看板**,查看 **设备数据** 。 ## 预置条件 Node.js 版本 >= 18.x [下载地址](https://nodejs.org/en/download/current) ## 安装运行 ```bash # 下载仓库源码 git clone https://gitee.com/no-code-no-fun/iot-viewer.git cd iot-viewer # 安装依赖 npm install # 启用服务 npm start ``` ## Web 访问 *电脑防火墙开放 3000 端口访问* [http://your-ip:3000/](http://your-ip:3000/) ## 其他 * 详细 **配置** 见 **config.js** 。 * 默认只会订阅 **devices** 列表中的设备数据。 * 如需订阅更多设备数据可自行添加。 * **设备数据** 保存在 **data** 目录,启动后将自动加载。 * 程序运行时 **设备数据** 全部保存在内存中,请根据 **服务器性能** 添加更多设备。