
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
OpenFMB Adapter 是一个强大的适配器,允许多个电网设备通过OpenFMB消息标准进行通信。它作为协议转换桥梁,支持将多种工业协议转换为OpenFMB标准消息格式,促进智能电网设备间的标准化数据交换。
运行OpenFMB Adapter
sh# 运行OpenFMB适配器(挂载本地配置目录) docker run -d --name openfmb_adapter -v $PWD/cfg:/cfg oesinc/openfmb.adapters -c /cfg/adapter.yaml
运行NATS服务器(消息传输所需)
sh# 运行NATS服务器(默认端口4222用于消息通信,8222用于监控) docker run -d --name nats_main -p 4222:4222 -p 8222:8222 nats
sh服务器选项: -l, --list 列出可用插件 -c, --config <file> 使用指定的配置文件运行 -g, --generate 生成指定的配置文件 -s, --schema 生成JSON模式 -p, --plugin <plugin> 为指定插件生成配置 -f, --profile <profile> 生成指定的配置文件 --pretty-print 格式化输出生成的JSON 命令选项: -h, --help 显示此帮助消息 -v, --version 显示版本信息
适配器通过YAML配置文件进行管理,主要包含以下核心部分:
https://github.com/openenergysolutions/openfmb.demo/blob/develop/replay/adapter.yaml
yamlfile: id: openfmb-adapter-main edition: 2.0 version: 1.0.0.0 plugin: '' logging: logger-name: application console: enabled: true rotating-file: enabled: true path: adapter.log max-size: 1048576 max-files: 3 plugins: capture: enabled: false file: /cfg/capture.txt replay: enabled: true file: /cfg/replay.txt dnp3-master: enabled: false thread-pool-size: 1 masters: [] dnp3-outstation: enabled: false thread-pool-size: 1 outstations: [] modbus-master: enabled: false thread-pool-size: 1 sessions: [] modbus-outstation: enabled: false thread-pool-size: 1 sessions: [] goose-pub: enabled: false thread-pool-size: 1 goCb: [] goose-sub: enabled: false thread-pool-size: 1 goCb: [] mqtt: enabled: false max-queued-messages: 100 server-address: 127.0.0.1 client-id: client1 connect-retry-delay-ms: 5000 security: security-type: tls_mutual_auth ca-trusted-cert-file: cert.pem client-private-key-file: client_key.pem client-cert-chain-file: client_cert.pem username: '' password: '' publish: [] subscribe: [] nats: enabled: true max-queued-messages: 100 connect-url: nats://host.docker.internal:4222 connect-retry-seconds: 5 security: security-type: none ca-trusted-cert-file: cert.pem client-private-key-file: client_key.pem client-cert-chain-file: client_cert.pem publish: - profile: ESSReadingProfile subject: '*' - profile: ESSStatusProfile subject: '*' - profile: SolarReadingProfile subject: '*' - profile: SolarStatusProfile subject: '*' - profile: SwitchReadingProfile subject: '*' - profile: SwitchStatusProfile subject: '*' - profile: LoadReadingProfile subject: '*' - profile: LoadStatusProfile subject: '*' - profile: MeterReadingProfile subject: '*' subscribe: [] timescaledb: enabled: false database-url: postgresql://user:password@localhost:5432/dbname store-measurement: true table-name: data store-raw-message: false raw-table-name: raw_data raw-data-format: 0 max-queued-messages: 100 connect-retry-seconds: 5
查看https://github.com/openenergysolutions/openfmb.adapters/blob/develop/LICENSE%E3%80%82
与所有Docker镜像一样,本镜像可能包含其他软件(如Bash等基础系统组件及直接或间接依赖的软件),这些软件可能具有其他许可证。使用本镜像时,用户有责任确保对本镜像的任何使用都符合其中包含的所有软件的相关许可证要求。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务