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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.24.0-cp313-cp313-win32.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.24.0-cp313-cp313-musllinux_1_2_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.24.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.7 MB view details)

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

simt_emlite-0.24.0-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a83d35877ce73744f55345ae9282c7cc4b65bf2610dd5d8e75e66c26fd5669ba
MD5 2332ff15f54dd4d060c85ec9a971502e
BLAKE2b-256 df44278a5e7899bb305a29144d45e8c1e4457d816b8ef9460225a779a3a7b07e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.24.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.6 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.24.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 740471c67eb4a675cf79a0c432e8aa44006de24ccdfeba9b8d18e6201390d853
MD5 cf80a7c0b1623fe0fbebcf168009e892
BLAKE2b-256 94d1567df6e9b4da31dc021748ddb42c8b0962c0901a151c90ccff95166a9dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e50846224d5f475a6cb9756bac2602680e231864bb3ec53105287da54ff0e0ad
MD5 753ebe763f6499ef27d5ee58f585f51f
BLAKE2b-256 91ee4944ba4417c4285b181d7c462923b25812bb7dee3897f7df8627caff78b9

See more details on using hashes here.

File details

Details for the file simt_emlite-0.24.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.24.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 08ffe757e66b6846f0a6b9efee4fbbff7fcfa5962967cb6891c8124d830d3d48
MD5 c71ce73f757d5ede36b9a00799cee190
BLAKE2b-256 0f834632862d52acf9f65a66cacd3112f0db6692a60929e31f6761eb86c1cec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 937de7525a534a4e502339cfd06c3a2a330691e405cb7daca0830baf93dd83f4
MD5 5e1b8b39e8f8b2ed6a7700bf64dba67f
BLAKE2b-256 e6ac44da376f81d040fd4e23ff4adc840bc404d2e33e7f8bf6a9408d2357e5f9

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