Git Product home page Git Product logo

pyscada-energy-displayer's Introduction

PyScada Energy Displayer Extension

This PyScada plugin allow PyScada application to display an energy counter or co2 estimate

How that works

This plugin do diffrence of indexes between end date selected and start date selected. That same functionment. it able to estimate co2 rejected using enegy factor

for energy displayer energy consummation mode

value_will_display = index_date_end - index_date_start

for energy displayer co2 estimate mode

consummation = index_date_end - index_date_start
value_will_display = consummation * energy_factor

Installation

First, download this projet using git

# Download plugin
git clone [email protected]:vincent-inviseo/pyscada-energy-displayer.git
# Activate virutal env PyScada
source /home/pyscada/.venv/bin/activate
# Install plugin
sudo -u pyscada -E env PATH=${PATH} pip3 install -e ./pyscada-energy-displayer
# apply migrations
python3 /var/www/pyscada/PyScadaServer/manage.py migrate
# copy static files
sudo -u pyscada -E env PATH=${PATH} python3 /var/www/pyscada/PyScadaServer/manage.py collectstatic

After restart gunicorn

systemctl restart gunicorn

How to use

  • Access to PyScada administration
  • Click on add button on Energy displayers section
  • Fill fields :
    • Title is title of your energy displayer widget
    • Variable is the variable will be compute that will do
    • "Show pedagogic consommation display" is a pedagogic show for CO2 estimation will compare your CO2 estimation to go-back in plane between Paris and New York
    • "display type" change display mode
      • Energy consummation show energy consummed in kWh
      • CO2 estimation show an estimation about CO2 rejected
    • isVisible can toggle show/hide widget
    • Energy type is a relation with this widget. That allow to link this widget with an energy which take a name and a GES emmission coefficiant
  • Save
  • Don't forget put energy displayer element in widget element (in HMI section).

Lisence

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

pyscada-energy-displayer's People

Contributors

vincent-inviseo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.