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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.13-cp313-cp313-musllinux_1_2_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.3 MB view details)

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

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

File metadata

File hashes

Hashes for simt_emlite-0.23.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1a0158dda51d4fb38056c933f5e226f3e3db64b50e0ebb57da1076cb7ddcc9db
MD5 e453db524274cf9a0202beff8c0bf87d
BLAKE2b-256 cade53c2a626ec75ce767d2c5cfe36712654104855197db5bf0db8b7afaeceb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.13-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.13.7

File hashes

Hashes for simt_emlite-0.23.13-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 c5597aec51f3e13bd020eef41c064f716df740574d15c1bb7fdc6a2752538206
MD5 7e421a8ada5bd1e45882e11b36b4937e
BLAKE2b-256 199888450839186316a9fc9a9e26bf21f75cb89a6c6de23d12e204a8981f337a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.13-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 15f8a063fd0a2f76d2d5abe4808804b9da24a8e275e5d9424c8a98c8d2472d12
MD5 872b10ef781e915bcead90cc64082612
BLAKE2b-256 b48858f1a70ebb06143214087c8f92dfe0e104394c1182b354165eedcf22d8d0

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.13-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.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 519ba48a5bfef0ffa73795fe3eaf1e319fb756cbe3838d4bd3b084734b4215ae
MD5 7bbfdf69cbd20a5d8ec64d7a32219b77
BLAKE2b-256 514618f76ed4de34300f47d02b5b2952f5637f507f531d107cff9065bf043a2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33c3e2801465b0d896fdcced5ea80a6bc86573c9eeab211fdcca12d16f467bdd
MD5 05477caf9115da44c4b7a60d2bd15c2c
BLAKE2b-256 6ba46ce3adb08ecfb53499c50f320e019d165d8f4d5de750cca911cbc73be82f

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