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 statusfor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simt_emlite-0.28.5-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: simt_emlite-0.28.5-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69a0260404d2fc41dbc5d689719cff868d0458f903cdb2461db2d389399212b8
|
|
| MD5 |
535ea36bf63481faf0bb642a8b90b435
|
|
| BLAKE2b-256 |
8b89b2ef7e059445e6a901350824ec3bf7ed0dc5bbac1001a44bbf22b5739305
|
File details
Details for the file simt_emlite-0.28.5-cp313-cp313-win32.whl.
File metadata
- Download URL: simt_emlite-0.28.5-cp313-cp313-win32.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03068755e5b88bcad37887fa56e868d2157cf504f9cc148cdf8cd153d7fa3613
|
|
| MD5 |
817a3f16e1179446b23d2caefac4865a
|
|
| BLAKE2b-256 |
ac0d9d2d870cefc0c3c3509eaf0cf2cdcd638653a163752456778b8e04db24f0
|
File details
Details for the file simt_emlite-0.28.5-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: simt_emlite-0.28.5-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24610237c3436fcb811cecebe35eadb70b544b567b44904673755fd9d82d3a6f
|
|
| MD5 |
a570863b503a576ed3223e9730e8e2e6
|
|
| BLAKE2b-256 |
2594c63a087ce1b87ce9a484f0bd11c963bb2f3885719b3e25d38da52839ece4
|
File details
Details for the file simt_emlite-0.28.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: simt_emlite-0.28.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0cb473b05cb6014fc5f21e292c62fc582be660f8720f7695018732dcb398b55
|
|
| MD5 |
5187700aaa6ca433caebe0aefb1a8650
|
|
| BLAKE2b-256 |
f38d0598a838d77c02de90f4344d89a7f077276bd7a4da85f926b94637e8443c
|
File details
Details for the file simt_emlite-0.28.5-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: simt_emlite-0.28.5-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bca194a9f26c0eab8b70a80d5a92fa4b23ff43f5c0a9689be629f563bc105675
|
|
| MD5 |
834cc225847f57d091958069a9083697
|
|
| BLAKE2b-256 |
44d53ba50f3d0643b43fc007d4339ed1c22431b72d90734dc7032ff7b86c7e92
|