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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.25.2-cp313-cp313-win32.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.25.2-cp313-cp313-musllinux_1_2_x86_64.whl (13.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.25.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.4 MB view details)

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

simt_emlite-0.25.2-cp313-cp313-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 024c465b402d1e4deada4cd60a3ddd321b52e2ef1d1e0bd459dd7664bb070240
MD5 5c060533be878c244b525c0240475e42
BLAKE2b-256 24f3b2d6b9b993933cf4f555983266a7d51caa9507520072d3a4f9be4d771179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.25.2-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.7 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.25.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 30a5719738803683a2f697b6891529f6fd23cf3b027b048dcb88972d5d4aa5a8
MD5 851ec25d7e94568d937b5dd12a24fb9c
BLAKE2b-256 2c446cdf0b2041f91852b430bf9ed6d05051afb344bf952eac3207ca201f57e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9f0c4a8a428c43431191db9b9b102a8bc73a96fdcf7ef7362d4425e98f9c00ea
MD5 4f67af7586ddd61f76a9b7d118c5b879
BLAKE2b-256 c8823e15c14e0d06ef60c653e9be7cf7ab9046160eea2e80e8d4dbb054a25ca6

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.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.25.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 04776e83205aff7c4e35851dd1417fe7026cef072f8d87796a6730e720105003
MD5 08a6a433fc9fb6b618d2f71aa0f8a7f1
BLAKE2b-256 3b729ed9fcf4bad604a908377d1e32e408e739c34e71d949578fbef541a6fa18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a6ae765dd51237ac7fdf1a4323f759d88d0fab1732f519fff7a8835094bdab
MD5 606dc5cf87c66bea3323547b152adc8a
BLAKE2b-256 21a1e82b27185a543a9a16d7dee39b19c4e219071b3d9b4efb453203e98b01e9

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