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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.22.8-cp313-cp313-musllinux_1_2_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.22.8-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.8-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.8-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.22.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7f1b393f97f9bee0c04c6624c7f4f9188c653462e867924f6a72d0f0e1b0ab81
MD5 4dd1383be2f3979fac5359e094c26570
BLAKE2b-256 b8368ad5d1de18e82ba98c4297665a5ff35c75d8d6982f11db86c8dacb4f103e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.22.8-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.8-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 9e74b470f87255920388fd85a67b49c2dbae14321109b549a7c48eaf8d9470ab
MD5 7d5833e6903aa2acdbc7f31f26573be4
BLAKE2b-256 6d1b495db774ed1b6e8281534f2e9b4898f42b005b937a109231f45d37516a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.8-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9f928d2dfe0613b4b158cf677123b45e93152fe99e003a979cecf4e38df9069a
MD5 63e2eedd4dcf80e65a0bcc66e821ca5c
BLAKE2b-256 5d627c17537e834de75189bff64196ac5585c6feed414332521472f9a5bbca25

See more details on using hashes here.

File details

Details for the file simt_emlite-0.22.8-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.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da930fd677549a5c7d723ac14aa04557f32a82db40b256e28fe303dfa8a6459a
MD5 ce623534b5a07e760b1b2163f6a3956a
BLAKE2b-256 b82624c2831dc18af9358950ff0cd986f9d824a25e12f957466fbd996dddb104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e439b9b4976613a60358a3af6e26edd5e8d6bd45c435d2a3a1ef7e20ebf3629
MD5 1815de8b74b6b3c8cfe3e94e588d833e
BLAKE2b-256 90796ff2dd1fd308651beb0610c002e9ecba785862133cbe3064a4e9b862311c

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