Skip to content
Back to search

dgiot

Open Source Industrial IoT Platform | 300+ protocols | 6-min deploy | Modbus OPC UA MQTT | 12K Stars

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked yesterday
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/dgiot--dgiot/badge.svg)](/listings/dgiot--dgiot)

HTML

<a href="/listings/dgiot--dgiot"><img src="/api/listings/dgiot--dgiot/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

One-click deploy with Docker (recommended for evaluation):

git clone https://github.com/dgiot/dgiot.git
cd dgiot
docker compose up -d

Build from source — the bootstrap script installs Erlang/OTP 24.3 and build tools automatically (Ubuntu / Debian / CentOS / openEuler / macOS):

git clone https://github.com/dgiot/dgiot.git
cd dgiot
bash scripts/bootstrap.sh
make

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 112 lines
  1. <p align="center">
  2. <img src="https://img.shields.io/badge/Erlang-24.3-%23A90533">
  3. <img src="https://img.shields.io/badge/OTP-24.3-green">
  4. <img src="https://img.shields.io/badge/EMQX-4.9-orange">
  5. <img src="https://img.shields.io/badge/License-Apache%202.0-blue">
  6. </p>
  7. <h1 align="center">dgaiot</h1>
  8. <h3 align="center">Industrial IoT Aggregation Engine</h3>
  9. <p align="center">Erlang/OTP · Million-Device · Shadow · Ontology · gen_statem</p>
  10. ---
  11. ## DLAS Architecture
  12. ```
  13. ┌──────────────────────────────────────────────────────────────────┐
  14. │ EDGE: iotStudio (Python+Vue) │
  15. │ DeviceAccess(9) → UnifiedPipeline → StreamEngine(15) → Alert(6) │
  16. └──────────────────────────┬───────────────────────────────────────┘
  17. │ MQTT / HTTP
  18. ┌──────────────────────────▼───────────────────────────────────────┐
  19. │ SECURITY auth · role · ACL/CLP · Hooks · JWT │
  20. ├──────────────────────────────────────────────────────────────────┤
  21. │ ACTION Shadow(gen_statem) · Bridge · MQTT · Rule Engine │
  22. │ init → auth → online → {normal, alarm, offline} │
  23. ├──────────────────────────────────────────────────────────────────┤
  24. │ LOGIC Ontology Engine · Model Registry · 3 ETS Tables │
  25. │ load_model → compile → spawn → evaluate → reason │
  26. ├──────────────────────────────────────────────────────────────────┤
  27. │ DATA Parse(23 Classes) · PG(:7432) │
  28. │ TDengine(_{ProductId}, devaddr NCHAR(50)) │
  29. │ EMQX(:1883) · Mnesia/ETS │
  30. └──────────────────────────────────────────────────────────────────┘
  31. ```
  32. [Full HTML Diagram](docs/architecture-diagram.html)
  33. ## FDE Pipeline
  34. ```
  35. Model → Ontology → Device Access → TimeSeries → Rules → Dashboard
  36. 1 2 3 4 5 6
  37. ```
  38. ## Data Flow
  39. ```
  40. Modbus 40300 → MQTT(dgiot/{site}/{gw}/{dev}/{pt}/data) → Shadow PID
  41. → evaluate(Rules) → state transition → Parse + TDengine INSERT
  42. ```
  43. ## Ontology: DLAS
  44. | Layer | Function | Key Technology |
  45. |:------|:---------|:---------------|
  46. | **Data** | 23 Parse classes, TDengine, Mnesia/ETS | JSONB, SuperTable/SubTable, _{ProductId} |
  47. | **Logic** | load_model, spawn_instance, registry, rules, reasoner | 3 ETS tables, gen_statem compile |
  48. | **Action** | Shadow 1:1 device process, Bridge, MQTT | gen_statem OTP, ont_push_point |
  49. | **Security** | auth, role tree, ACL(object), CLP(class), Hooks | JWT, Parse ACL |
  50. [Full Ontology Doc](docs/DGAIOT_ONTOLOGY.md) · [Storage Architecture](docs/ontology-storage.md) · [Station Simulation](docs/research/station-simulation.md)
  51. ## Modules
  52. | App | Layer | Role |
  53. |:----|:------|:-----|
  54. | `dgiot` | Data | Core — EMQX, rule engine, alarms |
  55. | `dgiot_ontology` | Logic | Model registry, reasoner, instance spawner |
  56. | `dgiot_parse` | Data | Parse Server REST client |
  57. | `dgiot_task` | Action | Shadow gen_statem worker |
  58. | `dgiot_device` | Logic | Device management + thing model |
  59. | `dgiot_bridge` | Action | Protocol bridge framework |
  60. | `dgiot_dlink` | Action | Data link layer |
  61. | `dgiot_api` | Security | REST API + auth gateway |
  62. | `dgiot_http` | — | HTTP service layer |
  63. | `dgiot_tdengine` | Data | TDengine timeseries connector |
  64. ## Quick Start
  65. One-click deploy with Docker (recommended for evaluation):
  66. ```bash
  67. git clone https://github.com/dgiot/dgiot.git
  68. cd dgiot
  69. docker compose up -d
  70. ```
  71. Build from source — the bootstrap script installs Erlang/OTP 24.3 and build
  72. tools automatically (Ubuntu / Debian / CentOS / openEuler / macOS):
  73. ```bash
  74. git clone https://github.com/dgiot/dgiot.git
  75. cd dgiot
  76. bash scripts/bootstrap.sh
  77. make
  78. ```
  79. ## Documentation
  80. - [DGIOT vs. Palantir](docs/comparison.md) — positioning: the brain and the limbs, complementary by design
  81. - [Open-Source Palantir Landscape](docs/open-source-palantir-landscape.md) — reality-checked survey of "open-source Palantir" projects
  82. - [Pragmatic Enhancement Architecture](docs/pragmatic-enhancement-architecture.md) — Kafka + TimescaleDB + rules + BI in four phases (中文版: [zh/pragmatic-enhancement-architecture.md](docs/zh/pragmatic-enhancement-architecture.md))
  83. ## Related
  84. - [iotStudio](https://github.com/dgiot/iotStudio) — Edge Agent & Application (Python + Vue)
  85. - [dgiot](https://github.com/dgiot/dgiot) — Full Erlang IoT Platform
  86. ## License
  87. Apache 2.0

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.