How armagedongtx/iot-system-plc-data-to-influxdb works
The product reads configured Siemens PLC values and stores them in InfluxDB; the ConfigApp creates and edits the XML configuration that the collectors load. Linux runs per-PLC processes with interval-based acquisition, while Windows runs a synchronous Windows service. The README also documents Grafana visualization from InfluxDB. Source excerpts show configuration editing, PLC reads, database setup, and service/process control; some Linux write and scheduling details are omitted, so those links are supported by the README or left out where unverified.
Main entry points: Linux/InfluxConnector2.py Interval workers · Windows/InfluxConnector2.py PLC value reader · ConfigApp.py Config editor
Components 19
Configuration
- Config editor
ConfigApp/ConfigApp.py - XML configuration
Linux collector
- Config loader
Linux/InfluxConnector2.py - PLC groups
Linux/InfluxConnector2.py - Interval workers
Linux/InfluxConnector2.py - PLC value reader
Linux/InfluxConnector2.py - Point encoder
Linux/InfluxConnector2.py - Influx writer
Linux/InfluxConnector2.py
Windows collector
- Windows service
Windows/InfluxConnector2.py - Config loader
Windows/InfluxConnector2.py - PLC groups
Windows/InfluxConnector2.py - PLC value reader
Windows/InfluxConnector2.py - Point encoder
Windows/InfluxConnector2.py - Influx writer
Windows/InfluxConnector2.py
External systems
- Siemens PLC
- InfluxDB
- Grafana
- systemd
Other components
- Operator
Connections 21
- Operator → Config editor: edits settings
README.md - Config editor → XML configuration: writes XML
ConfigApp/ConfigApp.py - XML configuration → Config loader: loads settings
Linux/InfluxConnector2.py - XML configuration → Config loader: loads settings
Windows/InfluxConnector2.py - Config loader → PLC groups: builds groups
Linux/InfluxConnector2.py - PLC groups → Interval workers: starts workers
Linux/InfluxConnector2.py - Interval workers → PLC value reader: runs reads
Linux/InfluxConnector2.py - PLC value reader → Siemens PLC: reads values
Linux/InfluxConnector2.py - Interval workers → Point encoder: encodes points
Linux/InfluxConnector2.py - Point encoder → Influx writer: prepares points
Linux/InfluxConnector2.py - Influx writer → InfluxDB: writes points
README.md - systemd → Config loader: starts collector
README.md - Windows service → Config loader: loads configuration
Windows/InfluxConnector2.py - Config loader → PLC groups: builds groups
Windows/InfluxConnector2.py - Windows service → PLC groups: updates groups
Windows/InfluxConnector2.py - PLC groups → PLC value reader: reads values
Windows/InfluxConnector2.py - PLC value reader → Siemens PLC: reads values
Windows/InfluxConnector2.py - PLC value reader → Point encoder: encodes points
Windows/InfluxConnector2.py - Point encoder → Influx writer: prepares points
Windows/InfluxConnector2.py - Influx writer → InfluxDB: writes points
Windows/InfluxConnector2.py - InfluxDB → Grafana: visualizes stored data
README.md