Project description Movement detector for RaspberryPi with Watch to watch objects coming into proximity. Pass pins Trigger and Echo. Pass offset to determine boundary for the object to come in
Example
import time
import RPi.GPIO as GPIO
from MovementDetector.Watch import Watch
TRIG = 23
ECHO = 24
def func_moved_in(arg):
print("process for object entering field")
def func_moved_out(arg):
print("process for object exiting field")
OFFSET = 200 # 2m
watch = Watch(gpio=GPIO, trig=TRIG, echo=ECHO, func_in=func_moved_in, func_out=func_moved_out, offset=OFFSET)
watch.observe()
time.sleep(100) # Sleep
watch.stop()
Source code and more info at https://github.com/KSanthanam/RaspberryPiMovementDetector.
Metadata
Release files for RaspberryPiMovementDetector 0.17.2
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 |
|---|---|---|---|---|
| RaspberryPiMovementDetector-0.17.2.tar.gz | 3.8 kB | Without provenance | Details for RaspberryPiMovementDetector-0.17.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RaspberryPiMovementDetector-0.17.2-py3-none-any.whl | Python 3 | none | any | Details for RaspberryPiMovementDetector-0.17.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / RaspberryPiMovementDetector-0.17.2.tar.gz
| Download URL | RaspberryPiMovementDetector-0.17.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80949f4f69f89471e43a633336f6d2c7ac2f3eeb4a2c3bb156d499e4692e77d7
|
|
BLAKE2b-256 checksum How to use checksums |
3aa0100f2eeb767e8a9e459aacf166f758f2187caee1ee52537e759e63253531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Release files / RaspberryPiMovementDetector-0.17.2-py3-none-any.whl
| Download URL | RaspberryPiMovementDetector-0.17.2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aaea386b5cf628750de958338814745bbaacf53a13bb595694a95ef85d292fa4
|
|
BLAKE2b-256 checksum How to use checksums |
de546a28c22da11448282f97c179772242ed72d6a25792f2d8223bc135928260
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for RaspberryPiMovementDetector 0.17.2
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.