Skip to main content

A small software for receiving notification of a Raspberry Pi (RPi) pin and optionally run a command everytime.

Project description

RPi Pin Watcher

This is a small software for receiving notification of a Raspberry Pi (RPi) pin change through libgpiod. This software monitor the voltage fall of pin 17. Optionally, this software may run another application through the --command flag.

Initially this was written for hooking a wireless doorbell receiver to an RPi and then trying to capture electirc signal when the doorbell button is triggered.

The software make use of the new libgpiod interface with the official Python binding library.

Installation

Clone the repository. Then install the requirements:

pip install -r requirements.txt

Usage

usage: python3 -m pinotify [-h] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--exec COMMAND] [--pin PIN]

Set logging level for the application.

options:
  -h, --help            show this help message and exit
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  --exec COMMAND        Command to run when edge event is triggered. In JSON array format.
                        Example: '["echo", "bell rang!"]'.
  --pin PIN             Integer. Set the GPIO pin number to monitor. Default: 17.

License

This software is licensed under the MIT License. A copy of the license can be obtained in the repository at LICENSE.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinotify-0.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinotify-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pinotify-0.0.2.tar.gz.

File metadata

  • Download URL: pinotify-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pinotify-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0d70bc57417ba610277cfdb0d241bd1096ba70fff4b6c1f444309910db88b910
MD5 38b81077c796f4a6a49556e4b232bf72
BLAKE2b-256 44d6f8b21a55e02544718de8b792627d7358df646dc3e491f3bf86f56666c195

See more details on using hashes here.

File details

Details for the file pinotify-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pinotify-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pinotify-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9647d146bfbf1c1860111c656101213194390ee9606094abcd26b85782b0a349
MD5 37e70ff008e9415d365a502475254ab5
BLAKE2b-256 06f3bf9db5f0510efda67b47cf7a5f57c33e0281610302875abd2f1ea5b0d2f7

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