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

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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.22.9-cp313-cp313-win32.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.22.9-cp313-cp313-musllinux_1_2_x86_64.whl (10.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.22.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.5 MB view details)

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

simt_emlite-0.22.9-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f2838eb783b7fac26ce1e83896ee61729b42ee70748bba6372103d584ebeff74
MD5 47031b95cd585df7a75c8ccae31873f6
BLAKE2b-256 857254a653b0080d7dfffad716f6d57e74547bef76b4a333c987f1b7b5ba5d4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.22.9-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for simt_emlite-0.22.9-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 2f4487a8ad4f092ce45ae3306cdcfc58961a56e72cc49109a1ab79737b0b870e
MD5 61979a6b309cbcb425c8118b9cf06537
BLAKE2b-256 c6872e952b0d642ad5d1c4af975304deef13fd968ccfbd8a5aed6734ff8a847a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.9-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6fd36f605118761fabc96ada3c270fe589ce9dfcc1147376bbb647222f6fedeb
MD5 f3c554f0032b3a887b4667d0cc6e2b05
BLAKE2b-256 e34063a139bd1fc609e130cc035be0ab06746fe2a6ed5683c8809016e4d499d1

See more details on using hashes here.

File details

Details for the file simt_emlite-0.22.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.22.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a8ac50246b379b33adf853cb71beca392644cd6f485e93dd161e7d8a4fdf88c
MD5 1d0b232b4e4393afeecf852e9e1b3518
BLAKE2b-256 a201521ad11a640d34b1560590520ab1e847ce2b4a76681f96ec4892bf184f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 039fad4f7b1368765b36259fc028339ab1cce210467fb0cf5c1a5e5e5150a9d3
MD5 eec5b65f46cea6c74c37ec59ee3a9e32
BLAKE2b-256 a97ea033b19791d457d10e792ab3744d511c9d3e1fcf47e81f0a540118651fb0

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