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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.25.0-cp313-cp313-win32.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.25.0-cp313-cp313-musllinux_1_2_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.25.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.2 MB view details)

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

simt_emlite-0.25.0-cp313-cp313-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 829eb2a09b0e2ad6d8b15588fd0b08fbea99d4085625021e639c74a97322ef61
MD5 88aa35f9cac6d1988e8fe1978ab54ee2
BLAKE2b-256 2e205735bf895c718a5fc8adf2a77c95d0bae7f43d2c24896a577e9470a501d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.25.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.6 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.25.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 8a7743d9035d4107544328d91ef9e50b93582f4f1d8d7bcebd3cb8d07149e714
MD5 d385b88e5fc4f31057d06d53da586da2
BLAKE2b-256 626af9122bf3923229ad9d47b7bfac8ece9a470597c2c79c5f95d86879de355a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 320adc684d3ac289bff8098b2b29ac73ab7210a5b5999c782e16ec1f9db96121
MD5 1550743d6356b7931c2e496a5546c12b
BLAKE2b-256 d5078725c641dae697e6e02542339c44985fafee789c8fd498eb30ae85c38468

See more details on using hashes here.

File details

Details for the file simt_emlite-0.25.0-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.25.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3920fd637daba26748c7c31ef9193dc490b9be5ebbcfd5e7222214a51dd71de
MD5 4867d5feb404d10c044fb7a1a59ebdb8
BLAKE2b-256 563c66a53fff6a50c5af9f179952b1e3a2b798895606ab849a4407a4107ff452

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.25.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f99ac9c38eddbdcf574330054ab97d10eb3d8eb2876a939b7511186f550b52b0
MD5 d45a75f5fb74a99ce15cd2090f2d389e
BLAKE2b-256 8f16b83b9a7aed3dec7695ad72a1f43281a1de32890da0531a831f591c42c4ab

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