GreenPonik_WaterPump_Driver.py Library for Raspberry pi
A python3 class to manage GreenPonik WaterPump devices
! Only tested on Raspberry Pi 3 A+ !
Table of Contents
- GreenPonik_WaterPump_Driver.py Library for Raspberry pi
- Table of Contents
- Installation
- Examples
- Credits
Installation
> git clone https://github.com/GreenPonik/GreenPonik_WaterPump_Driver.git
cd GreenPonik_WaterPump_Driver
pip3 install -r requirements.txt
or
> pip3 install greenponik-waterpump-driver
from GreenPonik_WaterPump_Driver.WaterPumpDriver import WaterPumpDriver
Example
import time
from GreenPonik_WaterPump_Driver.WaterPumpDriver import WaterPumpDriver
if __name__ == "__main__":
# run pump one during 2sec
try:
with WaterPumpDriver() as driver: # default bus=1, default address=0x01
print("My UUIDis : %s" % driver.get_uuid())
driver.set_pump_command(
driver.I2C_REGISTERS["PUMP_1_STATE"],
driver.I2C_COMMANDS["ON"],
100,
3000
)
time.sleep(2)
driver.set_pump_command(
driver.I2C_REGISTERS["PUMP_1_STATE"],
driver.I2C_COMMANDS["OFF"],
0,
0
)
except Exception as e:
print("Exception occured", e)
go to examples
Credits
Write by Mickael Lehoux, from GreenPonik, 2020
Metadata
Release files for greenponik-waterpump-driver 0.0.17
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 |
|---|---|---|---|---|
| greenponik-waterpump-driver-0.0.17.tar.gz | 39.7 kB | Without provenance | Details for greenponik-waterpump-driver-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| greenponik_waterpump_driver-0.0.17-py3-none-any.whl | Python 3 | none | any | Details for greenponik_waterpump_driver-0.0.17-py3-none-any.whl |
Total release size: 52.0 kB
Release files / greenponik-waterpump-driver-0.0.17.tar.gz
| Download URL | greenponik-waterpump-driver-0.0.17.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2822a7e7d458977d6fc5fa72f6ebaeb5df7b9a5ed57d7604c74189c1bec256b7
|
|
BLAKE2b-256 checksum How to use checksums |
abb0a8c7761ce1573846b59de71fee08f95818600237707a71413bfacea45fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / greenponik_waterpump_driver-0.0.17-py3-none-any.whl
| Download URL | greenponik_waterpump_driver-0.0.17-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0947adfd58ee54fafd524f80caa80afdfa0ab0c1d51ae8b9771c0b56078116d
|
|
BLAKE2b-256 checksum How to use checksums |
ce8c095e4737f6fa7a2de400fa5685c79a3cbb7838b2245c011d53e501cc44bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for greenponik-waterpump-driver 0.0.17
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.