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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.4-cp313-cp313-musllinux_1_2_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.4-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.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.23.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4cbea60b7f7c5946b2deee2d6fd55b140a3d5ae507a6db1fdd3a387b86ca4dd2
MD5 e6fb63011d35127ab5dea03c98e81d34
BLAKE2b-256 0afb3cfb0e5488b759cb95144fe732014629a7c69dee68f804dcd45f0c9da1a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.4-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.4-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 10ea6ed03e3caeacb75f46b4125f54774b730568e2b6043ed97c8721c057bbdb
MD5 55c868a64c56e32349f27a643d64f3da
BLAKE2b-256 36b32ecbc64f2021debdb0ab2aa12d0cff92caa22c7743fb46aecbc176316d70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b6b1c5b40ce7697292cd68174a9928c28df638389f06b74b84210f94344c4a90
MD5 468fbdae5e446cb28b5cbfb9e49c6e4d
BLAKE2b-256 cf72c0b169c97e209427cebbf1d053709c14a2b357055fe00ad4220be1e89c48

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2397e4b5f624f94bd7642803d0d65bea70c8c85c62eb9e9a6c7371b66846a2d
MD5 2b8edf50ad3e2523dab607b4d9e6327e
BLAKE2b-256 3a3ac8febc3af3573a676962986e04fe6ea812c6ac8147c0b57284f901d482a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eb9082d20a921abe0b586928a9eadafc45ab483084b95e13319b810f5d2479e
MD5 2d47d090ce42da3d289cbc4648ee9363
BLAKE2b-256 3acb88cb61d3f911195a42f33893941b231b2efdb80e8bb7df56db160b4ec0fb

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