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

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.23.2-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.23.2-cp313-cp313-win32.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.2-cp313-cp313-musllinux_1_2_x86_64.whl (10.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.6 MB view details)

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

simt_emlite-0.23.2-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 94a1338036329f1310b7c76f813aeaf60d59b0e091fcd17a45d30b581d309629
MD5 e9b23c1d200c954f123c2ff29645b46b
BLAKE2b-256 3371d35020628a6def8837809593d5e364d9a9b4892e1d4e0fea710f2f729a48

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simt_emlite-0.23.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 93fdc92c6a6cf3c8b709327dc2b5b3905dc0449da25d7db7fd7e99c2141bafde
MD5 22224d3f0966a671ba131f786d34cbc3
BLAKE2b-256 509008ffb9559fbb3804de46efbad0da98e0d18d55bd049862191ffff5e88346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 06ac49d5900815e15ab4ee6072c7a292ba2b86a48cf1ce0b5afd4ebfb372f0dc
MD5 b536a62d83feffb4e3db16b99c9aadcf
BLAKE2b-256 2e1e2f8ae7176ff1003a51b2e44e687dc4dff1b1f9d5568f2c7de2bb4bcd53cb

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.2-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.23.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 313ea312112a7f12b2af14dd62f93ce240addb96967a044e868d48cd3581cdde
MD5 618db5ac6603bc2f61721c511cca2807
BLAKE2b-256 c9bd460205c4f0ce7a590ec8f542a7f921a12cfa44839ff628beaeb31c928467

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56deac7e47f8c99c9228aadd44e4bf13149a56cf5e547c05c67f123df221a443
MD5 63e1dfbfe1427f793f437457e1ff6f01
BLAKE2b-256 34fcbc0bf984b7df9bbc5096bf5698ea810224cbf2d8c00aee509a796ef405db

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