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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.23.12-cp313-cp313-win32.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.12-cp313-cp313-musllinux_1_2_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.3 MB view details)

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

simt_emlite-0.23.12-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.12-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.23.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 beadff1ef2055bc182f5a88e7ccc04fb08d38972f944d4cb7dd36fef79047c4f
MD5 a521624f106d111b3605ed5bbb45f9bf
BLAKE2b-256 f95d81f0d155826e948c1c287bc112ee189c375f89ab89bb4c407473b0aebd25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.12-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.4 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.23.12-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 73ef222fe5a15e5afa046acaf3e29bfdc72044e34472614c3c468384ee34af58
MD5 fcd64bc0c993c216d5a8644d635f727a
BLAKE2b-256 36edb67033d9c39836b6282763725310f923e4060faf2c01d2d6f0d145709a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.12-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97c1728baee7d0fea00de090913ef01486b56ffd7cc87a633cc9c51ccf2b1ecc
MD5 8fe52b67b3aa7c38a9bc943abeec0672
BLAKE2b-256 5e474145c7368bc8bf659336a6c30acd85edc0801ea72e35766ed73b37b23cca

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.12-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.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 994a00201b8b35d9b75ae0f08d574ab366f8068361d0660ce54eac6f2286155b
MD5 6c44b8b947e9995b574ebc62a3481287
BLAKE2b-256 f2846b83832e5b242019d9e5709535a9caeff2c1b49019a775ca8a7e509f12c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95015d3868463320fc2039e0d3d09a62fd41eedcc81e42c1a1c7ce30924ce25c
MD5 b03e56b3ab549f2c2400c887d48c8c18
BLAKE2b-256 4fff268bd9a3db415c0af4206acb5bf216bd6fc78478436bd4db7bb9cc620a7d

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