Skip to main content

statuspi.py

A simple headless status box utility for the Raspberry Pi. Released under the GPL.

Setup

Download the script, then install the GPIO library:

sudo pip install rpi.gpio

Then write your own python script to define when you want your LED to illuminate. This script will be called with a five second delay each time. When your script returns 1, the LED will illuminate; when the script returns anything else, the light will turn off.

Finally, wire up the LED to pin 18 and ground. For you non-hardware types, here’s a quick explanation: connect the longer lead of the LED to GND, and the shorter lead to an empty space on your breadboard. Connect that shorter lead to a 220 Ohm or greater resistor, and connect the other end of the resistor to the pin on your breakout board that reads ‘#18’.

Usage

This script must be run as su, or the GPIO library won’t be able to access the hardware correctly. Usage is as follows:

sudo python statuspi.py <your script>

To do

  • Gracefully closing the GPIO library

  • Allowing the use of multiple scripts and multiple LEDs through a yaml

    config file

  • Customizable repeat time for scripts

License

statuspi.py is licensed under the GPLv3. See ‘LICENSE’ for details.

Release files for statuspi.py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for statuspi.py 0.1.0
File Size Uploaded
statuspi.py-0.1.0.tar.gz 7.4 kB Details

Release files / statuspi.py-0.1.0.tar.gz

Download URL statuspi.py-0.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c0b3042239666d998df0c8caf928aa7cd6bb0604370b6f1a05a43515e887e955
BLAKE2b-256 checksum
How to use checksums
ca6ef9487acaa10f56facade14a720fbf948e39ca8dbdd5958a8d6437e674df9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page