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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.28.0-cp313-cp313-win32.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.0-cp313-cp313-musllinux_1_2_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.28.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.6 MB view details)

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

simt_emlite-0.28.0-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ea5dd02040bdd8e39b9aa3d1c8ed915eca4e47ae133bc6b2f49e80e957da422f
MD5 120d2e14af399a5c5ce0692b79d8c90a
BLAKE2b-256 ba22700ccab61359f45ad964a53fbf93e70997c91b44780b3ba5854cd92bf564

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.28.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.9 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.28.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 3c71312876160726cf700417fbe9de9adc6a2c4cd4bf4224d50fb5c65efe8980
MD5 ae612aec61172794d0ebe101b580bf95
BLAKE2b-256 e071cedd9a29f440ed687340e18f54c2e94591c70874206e9aad815a7d5af3c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 11fee7dbbf3ddd52809c7c6ff1a2d96ebca8ef3c36a786acadfb87e0ca87f3b7
MD5 76c675c23f7b39680e791012cd4b1838
BLAKE2b-256 a2a7507e0bd319c23798e1e3c024d7bc5f545762164afe37564352370fa998c6

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.0-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.28.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bd0af93380e22cb27bcf1847423017eae09ea0d00e2ed3e9b178abb87fd7297
MD5 2c6867fded344b020f2f7ca7cd5f6ce5
BLAKE2b-256 5891ba2831363f244b62913eaaee1cb57f8b84e438d8e3392c841353ce7ebc68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d05777ad9739a46533f16db09d473f88617320102123dac141613a6a2ee10bb4
MD5 4d79c4dabdd3b4d476ef493f82d5e939
BLAKE2b-256 567c25b415bcf168242113d18b8ebb0f34f6a16469fa88dd0dc7bf11a432b8cf

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