Skip to main content

API and CLI for communicating with the Emlite meters via EMOP

Project description

Simtricity Emlite Python APIs and CLI

This repository contains:

  • API to connect to and send EMOP messages to Emlite meters
  • a CLI (emop) for sending messages to the meters
  • a CLI (mediators) for managing mediator servers

Configure

Configuration steps:

  • create file ~/.simt/emlite.prod.env from Lastpass secret 'emop-cli-env-file (prod)'
  • create file ~/.simt/emlite.qa.env from Lastpass secret 'emop-cli-env-file (qa)'
  • ln -s ~/.simt/emlite.<qa|prod|custom>.env ~/.simt/emlite.env

NOTE:

  • FLY_DNS_SERVER needs the DNS that wireguard uses (on Linux look under resolvectl status for the interface and DNS)

see also https://www.notion.so/Emop-and-mediators-CLI-setup-834d32be5c794add8716399ab186abe8

Use

emop

emop env_show
emop env_set prod

emop --help

emop prepay_balance EML2137555666 
emop csq EML2137555666
emop profile_log_1 --timestamp 2024-07-19T00:00 EML2137555666

mediators

mediators list
mediators list --esco wlce      # show only mediators from the Waterlilies esco
mediators list --exists False   # show all meters that don't yet have a mediator 

mediators create EML2137555666
mediators destroy EML2137555666
mediators start EML2137555666

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

simt_emlite-0.25.1-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.25.1-cp313-cp313-win32.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.25.1-cp313-cp313-musllinux_1_2_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

simt_emlite-0.25.1-cp313-cp313-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

Details for the file simt_emlite-0.25.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.25.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8ad4b1dbbd6046f7b97d5d8f62e4c09ccfe0cc54489a4640ff9c2b500b8e1986
MD5 072ec9c1dff57022d3aab2351e2c3676
BLAKE2b-256 9061927f34794ca5eebf28eb2d44643a4f652c7e3f3839990828d39563c25002

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.1-cp313-cp313-win32.whl.

File metadata

  • Download URL: simt_emlite-0.25.1-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simt_emlite-0.25.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 a501bf70197e13a8882b71e2cf3e4afb699c4f9bc8aac07d875c3fa5d282c5c7
MD5 a1940a157841149ae3d40e182217871d
BLAKE2b-256 0e18d8223190f55cb960d1083797a902f3552b2775dc48f17caed6a802add3d8

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.25.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3b8f57b0bd6375c4b262bac20340f6c79344b68ce1c1e91be8020e00302b9a01
MD5 e7247ed70d4d8f19a4cd5b363339dfea
BLAKE2b-256 5b83878ed4b530989e803bec2780e0c2ef679a9f8a65c6c98e9d1425731f3d0c

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b83b0649d832166adff74bff4fcfbe505645164734049a820da0491588b8179
MD5 cbe0bb1188fff1485d95c3576c5b26c0
BLAKE2b-256 e39aaae4da37a0d9532ff445f65206e567ff442f3e803e08385950dcfd8ae18f

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.25.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0483f65a02152af470db764030f71e6d9b510670e7e9349d09adec09497db38
MD5 38540af4aff7b60d2e08b40d1d9de48a
BLAKE2b-256 b29aeefdb36160e546b9bff3da1242a1f801bf18efea2b729356ef989e1c8de7

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