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

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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.23.0-cp313-cp313-win32.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.0-cp313-cp313-musllinux_1_2_x86_64.whl (10.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.6 MB view details)

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

simt_emlite-0.23.0-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9a2b48ab10ec179c6abc32999397a0ac5bcfc1eee2aa24e17cae89458f8b9a1a
MD5 a2d303eb23f1397fb4e4ae0f6a3a4d81
BLAKE2b-256 4c92de081073b6c62a0183aa2e1b2d61e8e512f9d54c80e62dfba9e68ec41a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for simt_emlite-0.23.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 b02691fcf9086b03923e557485104ef90edac2e83e1b9860ea960f9f4365148d
MD5 96faff98ad97e0dd53bfe18ab5645b84
BLAKE2b-256 d5328174f212622611862a7ce3858b89dc248fd6469d6b78d587f31f1c13b8a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2b6c8f2dba48fc42a4b05570c0e6a915c4a67d4dd134c52fd5e10dd490367c81
MD5 3062ee51a3f1c5d964fbe4e2f95e4ee2
BLAKE2b-256 1aa37e1b42c5568c13d6412de3fc01bfdd074304e9dffd5632a6331a6508b531

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.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.23.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7e85c52faf6622f0683b9572a933da478288c9e2abc4897a15136cc75715dec
MD5 58e9103cd5358bd36600dad40b264279
BLAKE2b-256 592a323716285554aa8078ffcd59e1d6b1ff166916dd852b64c2be66c4344498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a1c13163548bfc7ed09580bb022163087360b3d62ecfc0fe6dcd0296a5893fd
MD5 c6b66e9658d810f29c62cb2ec8cf5e92
BLAKE2b-256 5605e2e9ded66d62f2184654871d1fa3d8d0ff1fa4e831bca6b028a0806dac1f

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