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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.28.6-cp313-cp313-win32.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.6-cp313-cp313-musllinux_1_2_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.28.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.9 MB view details)

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

simt_emlite-0.28.6-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.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.28.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 630613d7d26b850f61e5038c9b49807864054dd81e9d404170962aa7217ff091
MD5 40727d5e8d0ed2ba1c2b43679bbdb432
BLAKE2b-256 a8d79f157ad8c17d3a3cebbd429dfd432c8b1ece3f084c428f745e9da626566f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.28.6-cp313-cp313-win32.whl
  • Upload date:
  • Size: 2.0 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.6-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 df53822d0a4f91cb6a6b2c753ef60d8116fb97b4be8b91c494337c5d2c8f0e4d
MD5 180aa9ba59c969824ba0e03e020b5e75
BLAKE2b-256 b8b3b10a44536588dcc71d18c78812bd2acf71191739a1a4cd5e50a9eb877d66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 20561314c70cf4a504212bc91dca4f7f110e469a40fdf65aef992523fcef87d5
MD5 37344404bd5c0f435e312c653fc13857
BLAKE2b-256 787485acd652bea94b1a0011cb8df1632068a28e83d02477aa3e50d8d35930fb

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.6-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.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 96415eecd4e0928c0b6ec6e17571351871982338c1336c14af9b2ab08b8ececf
MD5 7741c11916cba82fb4513d8959538662
BLAKE2b-256 2886b2eac253f585a585e7f8f91e59199cccc253ffae0f8c5f5e10ef8aba7ac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88b2077c4d9ade0f5d61163dca7d2c4e1934ea82d652ffafe18c020741eecd24
MD5 4435457641b79742a97daf3bf37ec12a
BLAKE2b-256 7fe8f54bf531da08c253cf98609fa7fce8f4a3ab1eb4225c1bae4dc2a11bba33

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