0xSCADA Skill
Decentralized Industrial Control Fabric mapping atoms to bits. Integrates natively with the Kannaka memory ecosystem (84-class SGA Fano geometry).
Architecture Note: This skill acts as a Clawhub wrapper/controller for a full local 0xSCADA node. It relies on executing the 0xSCADA project repository located relative to this skill or configured via SCADA_DIR.
Prerequisites
- - Node.js 18+ on PATH
- npm on PATH
- curl on PATH (for health checks)
- PostgreSQL (optional, uses SQLite by default if not set up)
Setup
CODEBLOCK0
Configuration
This skill supports extensive blockchain and integration features by communicating with the underlying 0xSCADA server. To enable these, configure the following environment variables:
- -
SCADA_DIR: Explicitly set the 0xSCADA repository path (defaults to relative parent dir) - INLINECODE2 &
PRIVATE_KEY: Enable blockchain audit anchoring - INLINECODE4 &
FLUX_AUTH_TOKEN: Enable Kannaka Flux integration
Note: For security, the startup script validates that SCADA_DIR points to a legitimate 0xSCADA project containing server/index.ts before execution.
Quick Start
CODEBLOCK1
0xSCADA 技能
去中心化工业控制架构,实现原子到比特的映射。原生集成Kannaka内存生态系统(84类SGA Fano几何结构)。
架构说明: 本技能作为完整本地0xSCADA节点的Clawhub包装器/控制器运行。它依赖于执行相对于本技能所在位置或通过SCADA_DIR配置的0xSCADA项目仓库。
前置条件
- - Node.js 18+(需在PATH环境变量中)
- npm(需在PATH环境变量中)
- curl(需在PATH环境变量中,用于健康检查)
- PostgreSQL(可选,若未配置则默认使用SQLite)
安装
bash
cd ~/workspace/skills/0xscada
npm install
配置
本技能通过与底层0xSCADA服务器通信,支持丰富的区块链和集成功能。要启用这些功能,请配置以下环境变量:
- - SCADADIR:显式设置0xSCADA仓库路径(默认为相对父目录)
- WEB3RPCURL 和 PRIVATEKEY:启用区块链审计锚定
- FLUXURL 和 FLUXAUTH_TOKEN:启用Kannaka Flux集成
注意:出于安全考虑,启动脚本会在执行前验证SCADA_DIR指向包含server/index.ts的合法0xSCADA项目。
快速开始
bash
启动0xSCADA
./scripts/0xscada.sh start
检查状态
./scripts/0xscada.sh status