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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

simt_emlite-0.24.2-cp313-cp313-musllinux_1_2_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

simt_emlite-0.24.2-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.2-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.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for simt_emlite-0.24.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2652854dfbb942dc3000a902d0cd1cfc11d83537200ecb8d099fa182d4de71a0
MD5 742050781e8207a34eaf0887250ed04b
BLAKE2b-256 e3d048919f50e6766d3346d34198f5a4b01cd7ca18d6cf6572e19e3972ee1687

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simt_emlite-0.24.2-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.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 c067a8189c69e9ebb7e8dd5d4e4460bd478617a79a85b1530ba05253ee1e8f24
MD5 6bf8802221752e811d8d8e5dca5b4fff
BLAKE2b-256 14735058c52a33c05f14322838a8bc8a921134eb6457fa1afb0b3348e73165ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d55481b8af73fcb10e35e5ce147e3a52efb7062cf48386d8ca946c9414447fba
MD5 20cf3ccac92190368b87c63066b91a61
BLAKE2b-256 1c1485796180d5d5ae176789de92717827d10fca2ce2be7894ff9b2365ce19eb

See more details on using hashes here.

File details

Details for the file simt_emlite-0.24.2-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.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13fa29b07d18bc16625d15c8b30394a04f260dbe7a6e59772b1ae286d6849ef5
MD5 86b203fc73b743cf0b9af1e25f574852
BLAKE2b-256 8f00d07d7f3c88131c767c59b0cb2d072bdb036af9e7e532f446c6ebf885822c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_emlite-0.24.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37f1b9476d264d1f4de569daaff1fe1a0c95b481ad5f480b58b37564660f0ad2
MD5 e5fcb3fe037110a9f41c81900d9016f8
BLAKE2b-256 f00688aa8ae56f19fb68b9544744667772b048376ee66fee1fdac5167d6bc926

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