Skip to main content

# Light Sensor MQTT This repsository contains a simple light sensor for the raspberry pi. Because the pi does not have any analog inputs the scripts measures how long it takes to charge a capacitor until the pi recognizes the voltage as logical one.

The script will takes n measurements, averages them and publishes the result via MQTT. In my setup the MQTT data will be read by home assistant and is used to control the lights.

Requires python3 to run.

## Installation pip install raspberrypi-mqtt-light-sensor

Metadata

Release files for raspberrypi-mqtt-light-sensor 0.3.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 raspberrypi-mqtt-light-sensor 0.3.0
File Size Uploaded Provenance Actions
raspberrypi-mqtt-light-sensor-0.3.0.tar.gz 2.8 kB Without provenance Details for raspberrypi-mqtt-light-sensor-0.3.0.tar.gz

Release files / raspberrypi-mqtt-light-sensor-0.3.0.tar.gz

Download URL raspberrypi-mqtt-light-sensor-0.3.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ca357c3b0d56c058583ce71e0d325a40373084611cb8f366339f1dd331c5848c
BLAKE2b-256 checksum
How to use checksums
b3e6bbe1b95bce5a8d44bc981ae61d10c5220977f55afac9e106e9fda8deda62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for raspberrypi-mqtt-light-sensor 0.3.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.

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