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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.28.7-cp313-cp313-win32.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.28.7-cp313-cp313-musllinux_1_2_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.28.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.9 MB view details)

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

simt_emlite-0.28.7-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cb23d103fdae778a3549e4c75f9de5a021b1595ef163e77329d6bd6f18be87d5
MD5 06a4a6e4eb929ac399b35a23e3bce98c
BLAKE2b-256 5777bb6bf6f12911609a8d9367fca27fe1f21169b57c6723daf9dd9a8b9128df

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simt_emlite-0.28.7-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 fd4572a3829e18f3b572362523a83d84e074df1a4f6700f61115625a022ab389
MD5 29e9d79799f24cde5dc2e789f7c9f0b6
BLAKE2b-256 5fb43655e412c7bc43e858aa529a84df9048cea81bf5bf7d16f7fb64d2ac8bae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.7-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cf661f22544acfb0d8aaa18d72b7a1ff00f41a2e65e7f45f9458056ca2dc1f98
MD5 478ea3296e0cd2140484daf5c3f99cab
BLAKE2b-256 21677945548247c07156308963b7c575c00c3b50c1b2d45882a09dc6f43c21db

See more details on using hashes here.

File details

Details for the file simt_emlite-0.28.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.28.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f7afe96b59dd68ed8ef4590ab31c98c5653e8b5b15b37b02019ed937df21cf8
MD5 f11a7f82c8d0aba6c1b3c1cffd76690b
BLAKE2b-256 29fc37d9df8388737abc345003dc4d72fff8386d9dd0f0fc5c9c084e3878d83d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.28.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6b17e65fc5e7e2a30421a7e55121214550cbaa014fd745b2667b9aaf1df60f9
MD5 0a9cfaf696bfda838431f68a7faf8993
BLAKE2b-256 0d93e6ab3a0cf1dae3e1a0fa38884700838d08a76f9fe595bea96525aef2dba9

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