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

Install and Configure

# Install
pip install    --extra-index-url https://test.pypi.org/simple/ simt-emlite

# Upgrade
pip install -U --extra-index-url https://test.pypi.org/simple/ simt-emlite

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

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

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

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

File metadata

File hashes

Hashes for simt_emlite-0.22.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 36380b075a5398751e2a1a085850b3ceba70d04b41e344ef36f5d00c79c390c2
MD5 dce6bbe4aedc59e50f870646843af1e8
BLAKE2b-256 c67278918bf4fe7f81a9db2579c5fd15728b97f7eb5c7d49446e7e694b9f1d6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.22.7-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.7-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 34d5cfb95f293b42efc9a8f1be99215c498d6cd23b9e8fc8ecbedf104a79b3df
MD5 c345e33e9387b86683dba792797efc78
BLAKE2b-256 25a9832c152e404c175e6d2d62d44f33a779f74a9ffb654744d2f1cc34cf3e3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.7-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ed10bdade8dc436fba59bd67979e0b1e29a1aaecaa52f427f9e6fd6dc39e9e5e
MD5 fe372d5e28dac24e131a34942b908357
BLAKE2b-256 d626a8cbfdd259079f3dff3c92b9f91edcf28795d5e280b8f71f5d33776c17e9

See more details on using hashes here.

File details

Details for the file simt_emlite-0.22.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.22.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 083f0a86e1726b29ffb737783a5952dbf2f3dd7f02bd4ffb82937ed4741a1c54
MD5 aa74e8bc93417de6e6f3f1fb6d8ebe05
BLAKE2b-256 96f12ba0f897c71ac3940ef5ec16b3a143eaddf11cf1579c970fdec7120b60ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.22.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4da49a4cb9c0927db2088760688995c472c51efb1f161f3336657db59a18302
MD5 4457bb0bcf87bbb8c8b2aeecc17097c7
BLAKE2b-256 302360dea755bfdb072f6c1b06a2e4032f4d11b8f1ad503200fa76351896fbc9

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