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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.23.11-cp313-cp313-musllinux_1_2_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.23.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.2 MB view details)

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

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

File metadata

File hashes

Hashes for simt_emlite-0.23.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a4287dd1e99aa7dcf3fd96f50cf1032704cc5e485b044f78ec8b516e8d761a95
MD5 3f33e113478971f160d7fb8bc2a17c63
BLAKE2b-256 7829630835e49d85b7451b93ab04507cb84755bdd5c6e434da9ef8ed5e00045c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.23.11-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.11-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 296d6335861f8d67c5d275403ae23d6677285cf90cb8f1a72d21fa2e2045ca76
MD5 0e5bee3d1f0867c9eb55b39c6d6b24c9
BLAKE2b-256 0850699369ea1b0cea5144b9eb3188772249a564ecf3641a1eaebc6cde100326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.11-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 af230e9cfc1d1c416c49e9038fc225e600cc71d7dc276c7fd94ab2f79b8950f4
MD5 59c3ae5a737ecf0745d43d6a988fb01f
BLAKE2b-256 aea3d6ea615bde4dd35c1a25fdf01bda769ff24b87d67a0dae1d094f2cb03bc8

See more details on using hashes here.

File details

Details for the file simt_emlite-0.23.11-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.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 84c6d905d729d7ac40d011dd771f8be1ca0ca2f70654a17769968f54e5551936
MD5 503011d33bff7bd935b5f88b3fc747e6
BLAKE2b-256 6f64d78450c46dff249ff9bb9b8d9a78fd731109810c43d853e20b0702e9ac4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.23.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22fa9168f277a1516ab26c1874df60771ff2a92254e880733d8145fd6dd2501b
MD5 e6153b1111debdd2a1a8b5cd132a5dcd
BLAKE2b-256 80ec74b2f782131f17f644575cdda666f4094941309c32cd4213d47bee73aa8e

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