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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.24.4-cp313-cp313-musllinux_1_2_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.24.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

simt_emlite-0.24.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.24.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c6fbda154b167b6d0dd8c7d2acb6ac5d829234b7881668e879b8b49a7c965c11
MD5 b64555e7957905088a46eae8d352225f
BLAKE2b-256 49affedc2c7edc8c659b71220e845a8c5681949d21df0708986010690192c8b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.24.4-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.4-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 eccbb883c568a975bf2234622a675ec3598182422565a5f2f2b0a1e757bb0767
MD5 d620354346569b605adde4efccf496b5
BLAKE2b-256 e4998ab0999499d163d217cab8e2c65b6edd85ce7c8c6d488c138eedc8108ac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7af63b7490f4599e84c3ed7ef868ce37214e19277490e03feed1e6369bcf7fac
MD5 8e4f8201260f05490ff828dc89b010c1
BLAKE2b-256 bfe421000b7ba8c11771e42fc153e9b6f6547f0cc07e0060323395b80e348a05

See more details on using hashes here.

File details

Details for the file simt_emlite-0.24.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e1d659a65c6acf245ff56d40f8a68b181e9f82cf30924fa705a8287aeed6ed2
MD5 794b107e556c74de32ffe47e0ff3952b
BLAKE2b-256 92d4e5b9fa19b6a0be0ae9d915e02febba76a9d0825356ef92885d4a286a3ef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73ec454c127963fc60a8f2c7dccac6b102c4aa7ab7ce0cdf3ec67a0a87ab4443
MD5 39c635207a75503beef7ac157f0b5cc8
BLAKE2b-256 4f724b16e590fa1bc42b4406aee13981e8b5c7ea3b453e847b25a1fe3c9d45de

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