소스 정보
- 저장소
- JohnNuwan/EVA_CORE
- 최근 소스 활동
- 2026년 7월 18일 08:30
- 감지된 SKILL.md 언어
- 프랑스어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/JohnNuwan/EVA_CORE --skill industrial-ai-pipeline명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | industrial-ai-pipeline |
| description | Pipeline IA réutilisable pour données industrielles. |
| version | 1.0.0 |
| author | EVA |
| license | Privée EVA St-Étienne |
| metadata | {"EVA":{"maturity":"production","tags":["industrial-ai","pipeline","plc","s7-communication","scl","grafana","api-integration"],"related_skills":["siemens-scl-expert","opc-ua-nodeset-architect"]}} |
Vous êtes un ingénieur principal en automatisation industrielle et un architecte en IA Edge. Votre rôle est de concevoir et de déployer des pipelines d'intégration de modèles d'apprentissage automatique (comme la détection d'anomalies visuelles ou vibratoires) au sein d'architectures d'atelier, assurant la communication temps réel avec les automates (PLC) et la visualisation des métriques sur Grafana.
L'intégration de l'IA dans l'industrie exige des garanties de temps de cycle, de robustesse réseau, et de traçabilité. Ce skill fournit un template standardisé de bout en bout pour connecter un modèle prédictif Edge à un automate de contrôle (Siemens/Beckhoff) et à une plateforme de supervision opérationnelle.
[Capteurs Physiques] ──► Automate (PLC)
│ (OPC UA / TCP)
▼
[Passerelle FastAPI] (Inférence locale)
│
┌───────────────────────┴───────────────────────┐
▼ (Rétroaction Automate) ▼ (Supervision)
[Commande PLC / Arrêt] [Base InfluxDB / Grafana]
Ce script expose le modèle de détection d'anomalies sous forme de service web REST accessible par l'automate.
# Inference Gateway API
import uvicorn
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import numpy as np
app = FastAPI(title="Edge Industrial AI Gateway", version="1.0.0")
class SensorPayload(BaseModel):
device_id: str
readings: list[float]
class PredictionResponse(BaseModel):
anomaly_flag: bool
confidence_score: float
# Fonction d'inférence statistique (remplaçable par un modèle ONNX)
def analyze_vibrations(readings: np.ndarray) -> tuple[bool, float]:
if len(readings) == 0:
return False, 0.0
rms = np.sqrt(np.mean(readings**2))
peak = np.max(np.abs(readings))
score = float(rms * 0.7 + peak * 0.3)
return score > 2.8, score
@app.post("/api/v1/predict", response_model=PredictionResponse)
def get_prediction(payload: SensorPayload):
:
data = np.array(payload.readings)
anomaly, score = analyze_vibrations(data)
PredictionResponse(anomaly_flag=anomaly, confidence_score=score)
Exception e:
HTTPException(status_code=, detail=(e))
__name__ == :
uvicorn.run(app, host=, port=)
Ce bloc fonctionnel Structured Control Language (SCL) pour automate Siemens S7-1500 gère l'appel à l'API Edge à l'aide de la bibliothèque standard LHTTP.
FUNCTION_BLOCK "FB_Inference_Sync"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 1.0
VAR_INPUT
Trigger : Bool;
URL : String;
Sensor_Values : Array[0..4] of Real;
END_VAR
VAR_OUTPUT
Anomaly_Detected : Bool;
Inference_Score : Real;
Error : Bool;
Error_Status : Word;
END_VAR
VAR
inst_HTTP_Post : "LHTTP_Post";
send_Data : Array[0..512] of Byte;
recv_Data : Array[0..512] of Byte;
json_Request : String;
json_Response : String;
step : Int := 0;
END_VAR
BEGIN
IF #Trigger AND #step = 0 THEN
#step := 1;
END_IF;
CASE #step OF
1: // Construction du payload JSON
#json_Request := CONCAT(IN1:='{"device_id": "motor_01", "readings": [',
IN2:=REAL_TO_STRING(#Sensor_Values[0]));
#json_Request := CONCAT(IN1:=#json_Request, IN2:=',');
#json_Request := CONCAT(IN1:=#json_Request, IN2:=REAL_TO_STRING(#Sensor_Values[1]));
#json_Request := CONCAT(IN1:=#json_Request, IN2:=']}');
StringToChars(IN:=#json_Request, OUT:=#send_Data);
#step := 2;
2: // Exécution de la requête HTTP
#inst_HTTP_Post(execute := TRUE,
url := #URL,
data := #send_Data,
response => #recv_Data,
error => #Error,
status => #Error_Status);
IF #inst_HTTP_Post.done THEN
#step := 3;
ELSIF #Error THEN
#step := 99;
END_IF;
3: // Extraction des résultats du JSON
CharsToString(IN:=#recv_Data, OUT:=#json_Response);
IF FIND(IN1:=#json_Response, IN2:='"anomaly_flag":true') > 0 THEN
#Anomaly_Detected := TRUE;
ELSE
#Anomaly_Detected := FALSE;
END_IF;
#step := 0;
99: // Gestion des erreurs de communication
#Anomaly_Detected := FALSE;
IF NOT #Trigger THEN
#step := 0;
END_IF;
END_CASE;
END_FUNCTION_BLOCK
String) possèdent un en-tête de longueur sur 2 octets. Toujours utiliser StringToChars pour convertir en tableau d'octets brut (Array of Byte) avant l'envoi.