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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.24.3-cp313-cp313-musllinux_1_2_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.24.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.8 MB view details)

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

simt_emlite-0.24.3-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 05acac3003e9b20b764349a847105b89a7b67a7c90aff8a49b3444f282f73553
MD5 e64e4d302ef66d7c8e07167b0f92e4d0
BLAKE2b-256 e3a75fa542edc23de2b53d341db8a1b3f571395e26bd671b03dcf90d44b7e8e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.24.3-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.24.3-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 2d0b561a9dfba93692de0c170869a2fbed82de67ba3231791f9800b552fdf062
MD5 ae14645a3a999851a1101dd171d81960
BLAKE2b-256 fb10b13b7569aceb80ba2779e490d8b7ae69dbbf562b7d5b389b188a90da934a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2d3120e868ed50607edb8bf0d4fb1e86a0a5e8d8810656e926098145857da21e
MD5 a80774df38c19390270875b853e64902
BLAKE2b-256 0bc3cb30f2d2d03a9aeba71d1f8b1fcfe89b153435a96aa92ed5a0246f558382

See more details on using hashes here.

File details

Details for the file simt_emlite-0.24.3-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.24.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 56d5bc99d94909f74c20914f7ca1ad328c5a68d2bc5b3087eea0b546d3610114
MD5 b0221c880597c6fd4aa0a825e4ad6406
BLAKE2b-256 8d83032fc610484d5d542d440b0b3ff9299112c50199c6b0beca413947c05fd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60c5a72a764766b5ae79e2a33cba1485c94e6cefd3b859f7e0d8d5fbb2f76940
MD5 de76cc51cc6ca5a95116abfe50b5db99
BLAKE2b-256 8736dee6c99ac0816b5a95969b9daa055f5f7b7bfb81698f4583bb856bc15c1a

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