Skip to main content

Custom library for electricity meters Neva MT

Project description

Library for electricity meters Neva MT

Working via serial port or RFC2217 server. IEC 61107 protocol is used (currently IEC 62056-21) and OBIS codes.

Installation

python -m pip install pyneva

Usage examples

CLI

$ python -m pyneva connect -i rfc2217://192.168.88.109:1884 -m NevaMT324AOS --val active_energy current --obis 60.01.00*FF
Connected to: [NEVAMT324.1106 : 11111111]

Values:
total_energy     ActiveEnergy(total=16484.51, T1=12896.28, T2=3588.23, T3=0.0, T4=0.0)
active_power     ActivePower(phaseA=5.0, phaseB=1372.4, phaseC=122.3, total=1499.8)

OBIS:
60.01.00*FF      60089784

Code

from pyneva import NevaMT324AOS

# /dev/ttyX for linux local port
# comX or COMX for Windows local port
with NevaMT324AOS("rfc2217://192.168.88.109:1884") as meter:
    print(meter.model)
    # MT324 A OS 5(60)A

    print(meter.serial_number)
    # 11111111

    print(meter.active_energy)
    # ActiveEnergy(total=16348.84, T1=12790.08, T2=3558.76, T3=0.0, T4=0.0)

    print(meter.voltage)
    # Voltage(l1=233.81, l2=233.02, l3=232.15)

    print(meter.active_power)
    # ActivePower(l1=5.0, l2=1833.4, l3=130.3, total=1968.8)

    print(meter.seasonal_schedules)
    # (SeasonSchedule(month=1, day=1, weekday_skd_num=1, sat_skd_num=1, sun_skd_num=1),)
    # Returns tuple with seasonal schedules.
    # Each schedule specifies from which date the tariff starts,
    # and the numbers of tariff schedules on weekdays, Saturdays, Sundays separately.

    print(meter.special_days_schedules)
    # ()
    # Returns empty tuple if you have no special days tariff schedules (max 32 days).
    
    print(meter.tariff_schedules)
    # (
    #     TariffSchedule(parts=(
    #         TariffSchedulePart(hour=7, minute=0, T_num=1),
    #         TariffSchedulePart(hour=23, minute=0, T_num=2)
    #     )),
    # )
    # Returns tuple with tariff schedules.
    # Each tariff schedule contains parts of the schedule.
    # Each schedule part describes from what time of day the tariff starts
    # and tariff number (T1, T2, T3, T4).

Supported models

  • MT 324 A OS 5(60)A (NEVAMT324.11XX)
  • MT 324 AR E4BS 5(60)A (NEVAMT324.25XX)

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

pyneva-0.7.5.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

pyneva-0.7.5-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pyneva-0.7.5.tar.gz.

File metadata

  • Download URL: pyneva-0.7.5.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for pyneva-0.7.5.tar.gz
Algorithm Hash digest
SHA256 0684e9e1c437645597e25bcbd6cd3ef8ea96d4dff37fa2b8b9fbdf0d6a493de9
MD5 038a87572ad1cf6fdbdb06a74802a659
BLAKE2b-256 5ea0c85c75186d5afabae24063d531d3613b0d7ac12d64bd3f5f7ebfa9768d73

See more details on using hashes here.

File details

Details for the file pyneva-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: pyneva-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for pyneva-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 08f447c59de3d53914d16c7e366f118eba77a3e296cbd080227b9e64305681d0
MD5 425a2544e10abefe3d2939d9e0a54327
BLAKE2b-256 c7be2c0510f4d892e737ef2c07fa446a03f596ffe379205a16d3e9c4b3e4d464

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