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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.28.1-cp313-cp313-win32.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.1-cp313-cp313-musllinux_1_2_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.28.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.6 MB view details)

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

simt_emlite-0.28.1-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e379f446af0472fd5fa70d44bc507d85f7dd8bea0b477f86b9a205e97c58d78c
MD5 7618f2d7a691667744ca5f6a1993908b
BLAKE2b-256 4bbb1f1b63179e3aa76f3021dd8218cc9409507242d139c8c2f62b83528f81e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.28.1-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.9 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.28.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 d79132153563fb8df167e16841950ec315a3ad20aeabdffb047cd763842402e0
MD5 f76ed251fad38d8f8e508ebb87933c47
BLAKE2b-256 5e4a48598b4ac4185788749eacf497109b8488c6fe3e8a15b2a19eab016bfe19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 295beb98cbecd0112e01091a167e41218abbdfe4c98c06213d2810c33b5f9a0a
MD5 79c1c60e4fc9a9de85426bdad41f17aa
BLAKE2b-256 49914b1a9795e6284a5e00057c67de584e7e31c063481ff23b6ac3dd9c630b4b

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.1-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.28.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fba3a19a4965a27073f0d1eec147a7f10ba3c9aa5be6b4be3239244f536bc1ff
MD5 551fa2f2c05d46cc743c22e28b15c638
BLAKE2b-256 31770b330ab447f86417c027bdbd8112c5b9df95dd082df09b27dc9f2424c8f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52650bd671922d0bd429badb298cc3c1d8b207d3624f169f9faf426db6813da2
MD5 9362c763e0b52dd6514050d28148b48b
BLAKE2b-256 84e23131f067297ea876e1bafe51068506371ed21b0bf60b20a2010a3a05eb37

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