Skip to content

Latest commit

 

History

History
executable file
·
51 lines (34 loc) · 1.93 KB

File metadata and controls

executable file
·
51 lines (34 loc) · 1.93 KB

PyScada Operations Extension

This is a extension for PyScada to do operations on data.

What is Working

  • define a master operation in de operation device configuration (see below)
  • define a second operation in the operation variable configuration (see below)

What is not Working/Missing

  • Documentation

Master operation

A master operation of a operation device allows to define a mathematical operation on other variable to assign virtual values to new variables (assigned to this device). The library used behind is simpleeval. The operation should use a defined format :

  • use the operators, functions and if expresions as allowed by simpleeval.
  • refer to a variable last value using variable(id)
  • refer to a variable last timestamp using variable(id, type="get_last_timestamp")

Installation

Contribute

  • python code using black
  • django template, JavaScript and CSS using DjHTML

License

The project is licensed under the _GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (AGPLv3)_. -