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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.9-cp313-cp313-musllinux_1_2_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.0 MB view details)

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

simt_emlite-0.23.9-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.9-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.23.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ac9c816d92ad4b469463cb40d3715f1ee2c600a4f20adc34aaf0535212c98bf9
MD5 95e8b564dab95ba8bdaaf1f88587c246
BLAKE2b-256 b25095897eee11248220349f646f1ecb81b2eeda53bcfe4d2c0ef51e01dd6ef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.9-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.9-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 a5a43dd9faecbc84462e87a550ac0cb0737f374918c0395236d9f6d660e5bb4a
MD5 b0055c8d06684a8e2398c9a462eca2c8
BLAKE2b-256 4bbde8f88e691dd70688aa002bbda9f41478d0669a008bf9d4dbbeca691f64f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.9-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e93cf82b50e49c3dc23b25cf2dc596b95a65359927a44e44da9011159b957df8
MD5 e99378320a4c85cc4a27b579f8d5c2ee
BLAKE2b-256 3b892aca14167857c244ecfff11f6d0b3f5a56c84b99b7048fccf7add74c15a8

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.9-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.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f3d571ce780868cf3bef1b250cdb25b56427dce03c252fdc7596b9dc8f53ca7d
MD5 4f7d9f2fcb20b0c90b58a3d6f5490dc5
BLAKE2b-256 5fad5170e2a06369ec2f529d592c331b4ed787f9d23566dea8e7a3ba227f64fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fb017ef52e77cbb36b723b855126bc806d03a4474d36c5a14e88b9e7c3b346d
MD5 0481ce249238629a2873544d98cae267
BLAKE2b-256 a626e9f51cb0ae25cb50d50166b00073274e9c36e16f9de95ac2f6a02554fba1

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