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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.7-cp313-cp313-musllinux_1_2_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.1 MB view details)

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

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

File metadata

File hashes

Hashes for simt_emlite-0.23.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b7fa64c9a0b11b99c245071b200bc501c1387a303f228fd1c7f9dff48846f951
MD5 77c1e8317d995389c4f1adbcf60de9e3
BLAKE2b-256 2d49c3091a294cbbcfa960f344aeb3ddb9764a190aeae33713e52d76b37a0f93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.7-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.12.9

File hashes

Hashes for simt_emlite-0.23.7-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0ecb91147faac81d759032c4a64176b56b3c353c33a970b5bda3330efbbabfb2
MD5 1f70f1cfc50cea82c5e488151ce151fa
BLAKE2b-256 8181657da524496f85ebec9504ed2ec7aaa3e0e463c928a3103b81d1c2cb23dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.7-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0d913664374b91c88cd13435d847fb875a9c51a00c99fa547e3d4ed25dbce2fb
MD5 4a866751fbacad5d580a6bce5c51efa3
BLAKE2b-256 b80b398ac6cd0ddcc9b12d30d7eed3c9d066d811fcaea64ae5ffb1bd5d2b7bc2

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.7-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.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8721bc69a38e4fde2d6dbdbf735d1660dc80cb58579f32fe69eb760cf2a157cd
MD5 041cecf2a0ad6ce69564d5889e856c93
BLAKE2b-256 e01b0a0f4bccfd8ab911056dff2a5f79121cb7fa5da803ddc589733b2f1025fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5d6e6b367ea712a33f90041724ff3facf3e0265b803c25b9200a4d9c218b6fb
MD5 2cf157e7b9be52ce0b400a9f0f5fc944
BLAKE2b-256 0b6e3878c7ac047dd2875277b32584ea106ce0485623ed7398673cc9410aaedd

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