How pyscada/pyscada works
PyScada is a Django-based SCADA system. Operators configure devices and variables, collect measurements through protocol/device workers, retain them in datasource-backed storage, and inspect them through the HTML5 HMI. Separate workers evaluate events, create mail notifications, and run scheduled data exports. The graph reflects the documented capabilities and sampled worker/model relationships; protocol integrations are optional external extensions, and unsampled implementation details are not inferred.
Main entry points: models.py Devices and variables · scheduler.py Process scheduler · views.py HTML5 HMI · worker.py Export worker
Components 17
Configuration and domain
- Admin configuration
pyscada/admin.py - Devices and variables
pyscada/models.py
Acquisition and storage
- Device workers
pyscada/generic/worker.py - Protocol extensions
- Generic waveform device
pyscada/generic/devices/waveform.py - Recorded data datasource
pyscada/django_datasource/models.py - Cache datasource
pyscada/cache_datasource/models.py - Single-value datasource
pyscada/single_value_datasource/models.py
Operator HMI
- HMI configuration
pyscada/hmi/models.py - HTML5 HMI
pyscada/hmi/views.py
Background services
- Process scheduler
pyscada/utils/scheduler.py - Event evaluation
pyscada/event/worker.py - Export tasks
pyscada/export/models.py - Export worker
pyscada/export/worker.py - Export formats
pyscada/export/export.py - Mail notifications
pyscada/mail/worker.py
Other components
- SCADA operator
Connections 19
- SCADA operator → Admin configuration: configures
README.rst - SCADA operator → HTML5 HMI: views status
README.rst - Admin configuration → Devices and variables: edits
pyscada/admin.py - Devices and variables → Recorded data datasource: selects datasource
pyscada/models.py - Process scheduler → Device workers: dispatches
pyscada/utils/scheduler.py - Device workers → Protocol extensions: acquires through
README.rst - Generic waveform device → Devices and variables: uses device model
pyscada/generic/devices/waveform.py - HTML5 HMI → HMI configuration: renders
- HMI configuration → Devices and variables: references
pyscada/hmi/models.py - Process scheduler → Event evaluation: runs worker
pyscada/event/worker.py - Event evaluation → Devices and variables: checks events
pyscada/event/worker.py - Process scheduler → Export worker: runs worker
pyscada/export/worker.py - Export worker → Export tasks: reads tasks
pyscada/export/worker.py - Export worker → Export formats: requests export
pyscada/export/worker.py - Export formats → Recorded data datasource: reads measurements
pyscada/export/export.py - Process scheduler → Mail notifications: runs worker
pyscada/mail/worker.py - Mail notifications → Devices and variables: sends queued mail
pyscada/mail/worker.py - HTML5 HMI → Cache datasource: reads live values
- HTML5 HMI → Single-value datasource: reads current values