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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.2-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.2-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.2-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.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.28.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3c590f15cb3ee5acd1b7d36b397ced3278e1b74b9f6bb6dd01447032c887e09f
MD5 9fbd4035e8a74408e996978e0c136822
BLAKE2b-256 591e7e7544f69624315db7689f5fc50c9317e8784a191f867e1269399bf23ecd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.28.2-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.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0c78f2d20992478196d19f12185e5268178b0781d16821c993ce5a30d147aaa2
MD5 70a77d128b0dada723d86de37e4450cb
BLAKE2b-256 8ae51b50d9009f708115409ea60449189e3fad5ea80aba8b4738190fce8f2a93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a8ae47155577b1b8df5a5f2eefdf704e72fc735947b64b795462a495c0995a4a
MD5 9f605afe4c352e50efd1373e32a85e90
BLAKE2b-256 aa826845ef03d0e9dc7a25db40ddb52e44230be16def09cf17a7acebf12997fa

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.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.28.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74c1f59f2bad32f4081338212e8506369f8df042f681dea42e71f557291c1da0
MD5 7edf4c49a0eee0d4ada5f64dcf43ca4d
BLAKE2b-256 3c30b51f2c6025c352079b6b26be6e5a08687efd0529935c5b4c1e9d6328630e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aaf6d2f4b17be4fb89f4b07dd09c4de6a9353ebb45f4e4edbbd9e234c8e0c041
MD5 5407ef9a2dfbb0d938abc4b7daf87a57
BLAKE2b-256 1e12eedafa95808681489bc9ed84d48fb15ca1117cad3c80f17f7e936ede5e5a

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