Smart Factory Monitoring & Incident Automation
detail.loadingPreview
Automate the monitoring of your smart factory sensors. This workflow continuously collects and logs sensor data, converts temperature units, and automatically triggers PagerDuty incidents when critical thresholds are exceeded, ensuring rapid response and comprehensive data insights.
About This Workflow
This powerful n8n workflow provides a comprehensive solution for smart factory operations. It begins by ingesting real-time sensor data via AMQP, instantly enriching it by converting Celsius temperatures to Fahrenheit. All incoming data, along with the enriched values, is then reliably logged into a CrateDB database for historical analysis and operational insights. Critically, the workflow includes a robust incident management layer: if any sensor's temperature reading surpasses a predefined threshold (50°C), it automatically creates an incident in PagerDuty, notifying relevant personnel. Details of these incidents are also meticulously recorded in a separate CrateDB table, streamlining post-mortem analysis and compliance.
Key Features
- Real-time Sensor Data Ingestion: Connects to AMQP queues to receive live data from factory sensors.
- Automated Data Enrichment: Converts temperature readings from Celsius to Fahrenheit on the fly.
- Dual Data Logging: Persists all raw and enriched sensor data, alongside critical incident information, into CrateDB for robust analytics.
- Threshold-based Incident Triggering: Automatically generates PagerDuty alerts when sensor values (e.g., temperature) exceed predefined safety or operational limits.
- Intelligent Routing: Differentiates between normal operations (data logging) and critical events (incident creation + logging) based on sensor conditions.
How To Use
- Configure
Data from factory sensors(AMQP Trigger): Set up your AMQP credentials and specify thesink(queue name, e.g.,berlin_factory_01) where your factory sensor data will be published. - Adjust Temperature Threshold: In the
Values higher than 50°C(If node), modify thevalue2parameter to your desired temperature threshold (in Celsius) for incident triggering. - Set up PagerDuty: Configure the
Create an incident(PagerDuty node) with your PagerDuty API credentials. Customize the incidenttitleas needed. - Connect to CrateDB: Provide your CrateDB credentials for both the
Ingest machine dataandIngest incident datanodes. Ensure yourmachine_dataandincident_datatables are correctly configured in your CrateDB instance to match thecolumnsspecified in the nodes. - Customize Data Enrichment (Optional): If needed, modify the
Data enrichment (°C to °F)(Function node) to include other data transformations specific to your sensors.
Apps Used
Workflow JSON
{
"id": "a5f05ec5-630f-4a00-8885-0b2ccfcbf992",
"name": "Smart Factory Monitoring & Incident Automation",
"nodes": 21,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: a5f05ec5-630f...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.