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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.6-cp313-cp313-musllinux_1_2_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.8 MB view details)

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

simt_emlite-0.23.6-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3ecec4bc08d645a341124323a2000f4857087255896efbd96c34a311645c8e8c
MD5 5368a5d1eacf13a67f974b581bf15736
BLAKE2b-256 c16da3a51d4f75ad813fd3d927a8d47f460b4f763433e5caf2fae2cf6289d52d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.6-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.6-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 40f27a92352ae8e16dc8b5b8e6d6b6bbaad12257e13affd1c01fe61968a07f2e
MD5 f241baf2cc36700e9474650202fb2db7
BLAKE2b-256 3193aa58afd97f7a1e2ac5f5a2d2e0f16cc4d24c292b72bd9d03e6adad66eab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 09c01a6eab8ccf3ad86cdb398759459e4cc50d43a69d082f377dfcf0c2704e1c
MD5 e4fd4dfb2c84e81935627d478712c758
BLAKE2b-256 7b1252a8002766f72319293d017d7d9f4ae530f4214d6b3ca2bd405145e0ca1e

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.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.23.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3c776273beeea1e5e4846ee26f6a00d8dbc5712325252aa77be8f04249314c3b
MD5 4407abfa3109fd64dca6e8129a5d1fd1
BLAKE2b-256 f0eee389bf7f8658a0c952d2ac8080fa1d6cc8218f03815b2eb3d9ad2e813762

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 337b8f0d9496166896fb49925324ee3273aaff3121138fe3e1864c828928ba10
MD5 5122e94d7a0a8a1056fa441a2c1ae6ad
BLAKE2b-256 f18e355c5932ab7e9b0063dfe545fe5ee097873d003011e73161a2752f12f1ed

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