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

Uploaded CPython 3.13Windows x86-64

simt_emlite-0.26.0-cp313-cp313-win32.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86

simt_emlite-0.26.0-cp313-cp313-musllinux_1_2_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.26.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.2 MB view details)

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

simt_emlite-0.26.0-cp313-cp313-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.26.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5e42591af1f829742b1b0e562508c2cfa8da1d9516b678e1e15315941253f795
MD5 d24e377d82faf0727108f439985858e7
BLAKE2b-256 a5fb30fe77658d2bf82ed592914bd0ea7a8d95618b6024438e09e29a1e511b05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.26.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 1.9 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.26.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 044856512c3535902ef652d213ee0085272f7d2a116e1b9e5c3c645e94145e5a
MD5 681442a2e90fd0a82656805abe99599d
BLAKE2b-256 720963e8f33296b8cc311103c165f5b31c500ed01b8a85954e205a7f7968e118

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.26.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1ba954dac0765b9e4f271ac0649ef171d4ca6edabe61c4d6de0d998f26998530
MD5 bebebb32aaff270d8d48961162a0b379
BLAKE2b-256 be34e0eae2a649841bcca86283cb4f083d5c2fd18f21390ef17121821e61558e

See more details on using hashes here.

File details

Details for the file simt_emlite-0.26.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.26.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13342e2a33ce07b5c22000710936b24c92a02bae5a639019558a1619a309b559
MD5 be74c5ff4c38fa56ebdbcc6be0298a82
BLAKE2b-256 ca4fbb936f709d5a9040479e30801c2ce1305ef1c1b83e2d1808b231c1c4444f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.26.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 736cd9afd857dd745c34bb09715783949b0038d0761d2decf60bb92ea012aee0
MD5 86d02d45bf32f0f0914b1180ba2976f0
BLAKE2b-256 6dfa32b1cb1f013429ca2bcaa8b2a76232f2c36dbec290969f94bcae4ac08c76

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