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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.1-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.23.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (10.6 MB view details)

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

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

File metadata

File hashes

Hashes for simt_emlite-0.23.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 470f16b1d032f576ff2170dfcdb75992f0dfe6fda802804fc9977ab71c7205a6
MD5 308fae8ef063feb9b10f5b4910962158
BLAKE2b-256 b3da2a5644a1ef3e0ff43038bdfa7fd525fdcf6cc3e991c4fd3b7b7ebbbcce61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.1-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.23.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 456f96df9eeaf8297fb92ebde0f3bc6beb7dc15a4658944f997777be66f4ba48
MD5 ce4d59e0139c7c5bc240fbeb422236bd
BLAKE2b-256 fc08e0c09b98188bacc510c3017eabff55844be43741729c8ed5cbcc78d626b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c35c8dc34170c5341b41ee35db4ec585999d9e72a6a7adff3f423e21a56b310e
MD5 b8e950ed578ad2075a74083a807ba8fe
BLAKE2b-256 7382e7eb1f6ac617e86339bfccacf4f71fa1bc30fcc57cfa175fbb9d4dbbea3d

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.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.23.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19df8daf1af96f67e69619ef07c77bfb655f7bf5b0842c2c84ecc43d952fd7f1
MD5 fd51ac05aa6badd4af98f79c33f47fc6
BLAKE2b-256 4e4ac78ade86104f0b6e01b2ca875da81d4b7e5c7bba3c4dac66f8bcbf22a3bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b35d5830cc933e69339bae58708e23b1bd902d1e898e67afdfb16016a40c947
MD5 f089318d5991b7cef39ec665872e9a01
BLAKE2b-256 6d2ec9c0deae32ec3da6d69811ea94b74d837b637c61e142bb2c2f275aadcd92

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