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

Uploaded CPython 3.13Windows x86-64

simt_emlite-1.0.0-cp313-cp313-win32.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-1.0.0-cp313-cp313-musllinux_1_2_x86_64.whl (18.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-1.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (19.0 MB view details)

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

simt_emlite-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 547343d689d4f1e45bbcaecbc1f221839aea6dac477c61ba97c159d47f238e68
MD5 535f9b2caa7485f8a2348b51158a5d66
BLAKE2b-256 224f148543ea3e6039fa50cea717473d140bd7c4e927158de2c785ac746cbe15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-1.0.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 2.3 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-1.0.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 78479dfeb2d128b70d48785fae9263956ba0d9007c6e43013a3968ac427317b2
MD5 63020da32b0eb62531340d660aa761d5
BLAKE2b-256 b8197f8d478861f33b302cf473446c9731bdc756161be366c471c37df7ce3b8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-1.0.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b2288ebc89472409fed5971cadb1999f42f95872dc924e6dddcf3158e1ef31b4
MD5 7f58806b7cfbbe1e8b03b8365063a25d
BLAKE2b-256 0cf3a4c37daedb4a86557073ec7cb34074a9963223d00252b6a80814ce713022

See more details on using hashes here.

File details

Details for the file simt_emlite-1.0.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-1.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b048037ca09654bf6b9be626233ed8bbed7399414f186271ba0b14fc31c45233
MD5 53033d6857590f58f39d902f6718baeb
BLAKE2b-256 027ccb7df09dc8e5316b7a085802f704ebbaefb3fbd1a7b8725482e31b267166

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c09d7513a402260b80ec1e292e613d58778fe88e94a31025666ab6254a026763
MD5 10492a253597323c4117fe89d205ec22
BLAKE2b-256 fcd9a7ca72ed2a4f28b3ebfe21b02f6ea56039c2e04d5b4d3286c5dce2946d76

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