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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.27.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.27.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.27.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.27.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.27.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f32d89f4971741198fed8f578c20efb4a964d85d9f6bb10186ef47bdc343f1d6
MD5 a14a402fc028e05dc586c057ec5dd4c6
BLAKE2b-256 a7ea861a4baf0e3f140b57dbcab67f5f0fc41c6896fb44a20200d20756e37808

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.27.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.27.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 2ee0fea8d94d17fe2abefdcbe20b0e7fa988e2866ae44769d21ff9ceb73670d1
MD5 ad93e8344c98089fb3f103059a29f456
BLAKE2b-256 f01ee9618e1c6a16f157a288142ba63354159d952b4dd8cbb0e041a260f8b71a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.27.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 49c4e2943a301c1a94561158392fb44c22c473cca0204295658de3d93ead7b54
MD5 d0d9e42307bc6d0aabf009601d93ed87
BLAKE2b-256 80f352d048320cf04afb63d5ac40f3e2c3fde60279fb9548b241ed6683608461

See more details on using hashes here.

File details

Details for the file simt_emlite-0.27.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.27.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5f05d3d99ee17c33e29fb421d6d73fc543c7003a3222ccae38f855cee32cc58c
MD5 eb30b0a50b2235a2e3ce681b35ce7521
BLAKE2b-256 ef608896959380f24a929d30ab6a39dbd0895d75f122bdeac2e97c5bb86a9499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.27.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f0484792b2cb7741e07d80d169b80aa292fae24a73c3bf99988dbae0a6f7c5b
MD5 1ce3cef3071f69e7ed577cf2454a926e
BLAKE2b-256 f4e73f7ba30e0237dfda53dc886a88ad8a90696ee047099140cf039d028bdb1d

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