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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.22.11-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.22.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.5 MB view details)

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

simt_emlite-0.22.11-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f6ca24f3f5a183e881b7ecff75777c0a43fba66ede4e385d59e0b147efc01420
MD5 74c42f30ece8ac187f6e2e6b83850d2b
BLAKE2b-256 2c209d7748a84487c70babbfcd7a60c5ba3a51dfaacb23fc908fabe20922bfb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.22.11-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.22.11-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 18a7a5e2f092964cbe7fa1a9f9e89acb9d4522b56934bbccf571901abeb73d4b
MD5 61694e4eb105c968a5c2ef8276ff78a0
BLAKE2b-256 a93f9e6c0d5ba2d8bb4a917f35f4226caae887f72c3124921b554814bddd2554

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.11-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a9fcf13827249b7802afefa571543686a6861d45a0d49b3a8dbd3ff569c237c7
MD5 0d73d1cf26d6acdef30074c88cc532e0
BLAKE2b-256 d202dcb3b2c81673fee3affcb6cc6f587951adba67ba74b0352181ee28caa6b8

See more details on using hashes here.

File details

Details for the file simt_emlite-0.22.11-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.22.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 03bc6ec465ed2f93fd6ac9417e9eaa56714fd043ff493277cbc944e8ea34ec0d
MD5 5afc4ba00dbfb2b4ef94a6df90380b72
BLAKE2b-256 29467d8db4d9cef93135c1a54d902ffd3ad2a1f7642fe2207af1c1c6ea4ca901

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecc886f5c2c574240f18407c6ddb244b6291a6ecfdfa1e1b9375219dee81066c
MD5 27171a56efd5ba247b5cb7df6f737d2c
BLAKE2b-256 fb59c47578e830adc21ce2debde7d8f3caf1d279a6bfb0f4ef57903c71fd858e

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