AI SummaryCursor Rules for a ceramic workshop industrial IoT backend (FastAPI + InfluxDB + S7-1200 PLC), providing development standards and architecture guidance for real-time data collection from manufacturing equipment. Developers building or maintaining this specific industrial automation system benefit most.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "ceramic-workshop-backend — Cursor Rules" prompt rules to my project. Repository: https://github.com/10240418/ceramic-workshop-backend Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Cursor Rules for ceramic-workshop-backend
🏭 Ceramic Workshop Backend - 开发规范
> 磨料车间后端 API - FastAPI + InfluxDB + S7-1200 PLC ---
📋 1. 项目概览
`yaml 项目名称: ceramic-workshop-backend 应用类型: 工业物联网后端 API 技术栈: Python 3.12 / FastAPI 0.109 / python-snap7 1.3 数据库: InfluxDB 2.x (时序数据) + SQLite (本地缓存) + YAML (配置) 通信协议: Siemens S7-1200 PLC (S7 Protocol) 部署方式: Docker Compose (工控机本地部署) 前端: Flutter Desktop (Windows) `
核心特性
• ✅ 实时数据采集: 每 6 秒从 PLC 读取数据 • ✅ 批量写入优化: 10 次轮询后批量写入 InfluxDB(减少 90% 写入次数) • ✅ 本地缓存: SQLite 缓存最新数据,提升 API 响应速度 • ✅ 自动投料分析: 每 6 小时自动分析投料事件 • ✅ 健康检查: PLC 连接状态监控 • ✅ 动态配置: 支持运行时修改 PLC 配置 ---
🗂️ 2. 设备清单
| DB块 | 设备 | 数量 | 模块 | 关键数据 | |------|------|------|------|---------| | DB8 | 料仓 | 9个 | 电表+温度+称重 | weight, feed_rate, temperature, Pt, ImpEp | | DB9 | 辊道窑 | 1个(6温区) | 电表+温度 | temperature, Pt, ImpEp, I_0~I_2 | | DB10 | SCR+风机 | 4个(2+2) | 电表+燃气 | Pt, ImpEp, flow_rate, total_flow | | DB3 | 料仓状态位 | 9个 | 数字量 | error, status_code | | DB7 | 辊道窑状态位 | 6个 | 数字量 | error, status_code | | DB11 | SCR/风机状态位 | 4个 | 数字量 | error, status_code |
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts