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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.24.1-cp313-cp313-musllinux_1_2_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.24.1-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.1-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.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.24.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 421c05d1bf1543c3ae3169f1634b30b1d9caa6aa242565b1538104bcb7e8bf3b
MD5 6fad0c68398f2a25ba6f4f6dbbea457c
BLAKE2b-256 dd2ebcca0b55e3e326e25e6d3cdfdc8847f20e3d8cb51057cfa2c681e57b954f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.24.1-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.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 6ee3f11d790856b6425544242dade91591adbd0411b54c03d559adaedd4cd1e9
MD5 59852b38f76af2f6b0af3150216342fa
BLAKE2b-256 65bfbd1c4b7daae9996ff8a183d827578aa199120af4ea96f2a045e64fb89737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 607322937d7952b661d3f998532a5a104b4e64c36745063f8ecf2e4c53c225d8
MD5 acc42d7798c0aa8bbd4914242b18ca9c
BLAKE2b-256 a4e28669a0c98727a014ebcf43789b6dfc4fc0790ed0d6f9dde533497371f805

See more details on using hashes here.

File details

Details for the file simt_emlite-0.24.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.24.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a106d8771d57519459205fc8988a3fdb1c085a61024548c26149c950f4813a29
MD5 92fbb8c68a57caacff759d0388bee431
BLAKE2b-256 7cd326bbdf6e0cb275b23e4b0229e07385c76cb14f20fa916026d3096c3a99b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d11b36477e74cb341ab8d817be6f25e5b531dd8e68363ee62bbfb0e31c661106
MD5 f350cb60eaf9ea1d252f815dc4da58e3
BLAKE2b-256 e8a78b5d093d7596d9f321a53cf54e0ff567c5b8baa4160b3a8d128dab4ca3d6

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