Skip to main content

suSEE - Energy Monitoring Platform

Project description

Su.S.E.E. - Supervisor System for Energy Efficiency

------------- Energy Management System -----------------

SUSEE has been developed to support Energy Managers to implement ISO 50001 Energy Management Systems, and Energy Audit. The Python script is able to read data from any Modbus device at fixed sampling time, transform and store data in a database.

The main characteristics are:

  • OS: Linux Debian >= 9.0
  • Python >= 3.5
  • Compatible with any Modbus RTU/TCP devices
  • Free sampling time > 1s
  • Data quality control
  • Time sample delay control

Install

Linux Debian $ pip install susee

Usage

Default Device

  • The testing script 'see_etl.py' performs energy data acquisition from the SIEMENS SENTRON PAC3200 Power Meter.

List of parameters

  • The standard list of electrical parameters acquired at each sampling time is:

      n.    paramID    Description     unit
      __________________________________________
      # 1  - 104      Voltage  L1L2   [V]
      # 2  - 107      Current L1      [A]
      # 8  - 132      Total Apparent Power [VA]
      # 9 -  133      Total Active Power [W]
      # 10 - 134      Total Reactive Power  [VAr]
      # 11 - 135      PF Power Factor
      # 12 - 222      Imported Active Energy [Wh]
      # 13 - 226      Imported Reactive Energy [VArh]
    

Database Tables

  • The acquired data are read from the device's Modbus TCP port and stored in a MariaDB database.

    • Default jobID: 000

    • Default Database name: seedb000

    • Tables: see000Raw, see000Last, see000Params

      n. Table Description

      1 see000Raw Read data 2 see000Last Last sampled data 3 see000Params Tables of parameters

    Tables: see000Raw, see000Last

    Columns: -idNum int(12) AI PK -idDevice varchar(20) -Date datetime(6) -idParam varchar(20) -Value float(20,4) -Delay float -Code int(11)

    The 'Code' fields is a data's quality parameter Code = { 'err_connection' : 1, 'driver error' : 2,
    'server_off' : 4,
    'err_register' : 8, 'value_NaN' : 16, 'lenreg_zero' : 32, 'driver not found' : 64, }

    Table: see000Params


    Columns: idNum int(12) AI PK idParam varchar(10) descrITA varchar(255) descrENG varchar(255) um varchar(10) Acronimo varchar(30)

    idParam descrITA descrENG um Acronimo

    104 Tensione UL1_L2 Voltage UL1_L2 V UL1_L2 107 Corrente L1 Current L1 A IL1 132 Potenza apparente totale Apparent Power - Total VA S_TOT 133 Potenza attiva totale Active Power - Total W P_TOT 134 Potenza reattiva totale Reactive Power - Total VAr Q_TOT 135 Fattore di potenza totale Power Factor - Total na PF_TOT 222 Energia Attiva importata Active Energy Imported Wh EnP_Imp_Tar1 226 Energia Reattiva importata Reactive Energy Imported VArh EnQ_Imp_Tar1

How to run the script

  • Setup the above MariaDB database structure

  • Put the following reserved info in a .env file

    • user_db = 'username'
    • pswd_db = 'password!'
    • port_db = '3306'
    • host_db = 'xxx.xxx.xxx.xxx'
  • Connect a SIEMENS PAC3200 device in your local network

  • Set the desired sampletime in etl_data.py (default smpletime: 10 s)

  • Set the PAC3200 ip address in etl_data.py (default ip: 192.168.1.100)

  • run: $ python see_etl.py -d eft_data.py

  • check if raw data have been stored in tha see000Raw database table

    idNum idDevice Date idParam Value Delay Code

    398882 d00 2021-02-18 10:30:00.000000 104 395.1900 178.778 0 398883 d00 2021-02-18 10:30:00.000000 105 393.3600 178.778 0 398884 d00 2021-02-18 10:30:00.000000 106 397.6700 178.778 0

Contribute

Your contribution is welcome.

License

The MIT License (MIT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

susee-1.7.4.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

susee-1.7.4-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file susee-1.7.4.tar.gz.

File metadata

  • Download URL: susee-1.7.4.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for susee-1.7.4.tar.gz
Algorithm Hash digest
SHA256 3a9dc1b0a67f845bc465b1c842cb2028c084012970a45ad4bc8b065bbdc784ea
MD5 87cd9a23fd4eca31a9b0ab887b986a69
BLAKE2b-256 a7900d32c8ca5c66fb6ac6a3f2a8992a4c2583011fb3860208d263fd4576b6b6

See more details on using hashes here.

File details

Details for the file susee-1.7.4-py3-none-any.whl.

File metadata

  • Download URL: susee-1.7.4-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for susee-1.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b6fc580d3b63c62da11a85eeb9da53a29a7f1fca49a50f1636ea5cc369a8fb62
MD5 7d79281aef488d370a9ab1f140a86d68
BLAKE2b-256 a3e65c374f282f6d89bcd786b9fa3c480f66449637dfd0736826c429bdea2ea8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page