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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.28.4-cp313-cp313-win32.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.4-cp313-cp313-musllinux_1_2_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.28.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.9 MB view details)

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

simt_emlite-0.28.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.28.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0e2f0a60cb3f1df457f9451f83982caba2dce5bfff6c2f39b50a1e1a36dddd6b
MD5 4b4aa875d7653e7c0261ac67fcc21be4
BLAKE2b-256 c25464940a8c7f22e79fd17b63d0f8ca1002702d0b41916a350f2e1ecda20427

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.28.4-cp313-cp313-win32.whl
  • Upload date:
  • Size: 2.0 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.4-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 639aab43152fd394fcec815dd2e342eafb40c2e71670958a3f57ce6e7e6b29df
MD5 64c46e62938e6079416e61623b82d166
BLAKE2b-256 2848c165ef428d45e1e7b806772ca877b95e659a014d5b924ff39283aa849ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 affca2bcf7282c164305b869c8fb95fd40023e60a2077617829783f5de8fb9d8
MD5 5e77e4240add326bf779d85c42e915ed
BLAKE2b-256 329d7e44009bb8560cb521e4ec2367f32f588a12d87e5f180f8b3cd3dd983ac2

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0af47444ed1dfad890252ad705f695e1cc346df3c74efd544bde00218ea83a0e
MD5 4b2eb559ee2cd7873009da5326ad6fb6
BLAKE2b-256 d57511a2cf3c5074800f38114bc9eacdf514106610b95847489f6ba2d6da212c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 765db8fd8f14ee27faba9e904d0b086ec23405954e396bab7b60e095dfc0ff8d
MD5 2422a04b545a9671e17f5c3afe05acad
BLAKE2b-256 33924c4655a800fec980de293f9bd5895a858566d28b93099550b13a2d88cfda

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