rddl-client
The rddl-client enables you to interact with the rddl-network.
The following interactions are currenlty supported:
Requirements
The rddl-client installation requires pyhton above version 3.9 and an installation of peotry.
This can for example be done via
pip install --upgrade poetry
take care that the poetry binary is within your PATH enviornment variable.
Installing rddl-client
The rddl-client is a basic cmd-line tool to interact with the HW-03 hardware wallets of the rddl-network.
The rddl-client can be used from within the virtual environment after a successful installation.
The installation of the rddl-client can be easily conducted from the root directory of the repository via
poetry install
Using rddl-client
Please use poetry shell to enter the virtual python environemnt. Now, you can use the rddl-client as it comes.
An alternative option is to run execute the command via poetry from the virtual environment poetry run rddl-client <command> --help.
Configuration
The following variables define how the client connects to the 0x21e8 serivce and the smart meter by with tasmota firmware
- HW_03_SERVICE = (default="http://localhost:8000") - the 0x21e8 service connection
- TASMOTA_SERVICE (default="http://sonoff") - the link to the tasmota API of the smart meter
The environment varialbes can be set
- by using
export - by defining them prior to the cli command on the shell
HW_03_SERVICE=http://localhost:8000 TASMOTA_SERVICE=http://192.168.0.1 rddl-client --help - by defining them in the local environment file
.env
Commands
The following commands are currently supported
- attest-data
- attest-energy-consumption
- attest-machine
- create-seed
- recover-seed
Please use rddl-client --help and rddl-client <command> --help to get clear instructions.
Automation
A cronjob description is within the file rddl-notarize-crontab.
The following instruction will install the file and let you notarize the energyc-consumption every 15 minutes.
sudo cp rddl-notarize.crontab /etc/cron.d/rddl-notarize
sudo systemctl restart cron.service
The outcome of the script is written to syslog. Use the folloing command to inspect the activities on your node
sudo grep rddl-client /var/log/syslog
Metadata
Release files for rddl-client 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rddl_client-0.2.0.tar.gz | 19.1 kB | Without provenance | Details for rddl_client-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rddl_client-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for rddl_client-0.2.0-py3-none-any.whl |
Total release size: 40.3 kB
Release files / rddl_client-0.2.0.tar.gz
| Download URL | rddl_client-0.2.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bbc4e747c063b45df76515afb6d53ca59ef85a2a68673956badefaa412b9d90
|
|
BLAKE2b-256 checksum How to use checksums |
7bcad457cd34e30df2f177fe55ee7cafca4bc5011b5dcdb9d3448877198fc560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.9.16 Linux/5.15.0-1037-azure
|
Release files / rddl_client-0.2.0-py3-none-any.whl
| Download URL | rddl_client-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57d3c7b1eab5379858f97e535ecf4f3ae0909fbdd5d719b53a742402df48575e
|
|
BLAKE2b-256 checksum How to use checksums |
b9a523fac0851aa14c82e387f79f8734c8ab20f6deda9e19360d9ccf997d79d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.9.16 Linux/5.15.0-1037-azure
|
Security for rddl-client 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.