Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmohr/raspberrypi-mqtt-light-sensor
Read a light dependent resistor with the digital inputs of a raspberry pi.
https://github.com/alexmohr/raspberrypi-mqtt-light-sensor
ldr ldr-sensors light measurements mqtt raspberry raspberry-pi
Last synced: about 1 month ago
JSON representation
Read a light dependent resistor with the digital inputs of a raspberry pi.
- Host: GitHub
- URL: https://github.com/alexmohr/raspberrypi-mqtt-light-sensor
- Owner: alexmohr
- License: mit
- Created: 2018-04-11T19:50:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-14T19:26:43.000Z (over 6 years ago)
- Last Synced: 2024-11-07T20:08:07.550Z (about 2 months ago)
- Topics: ldr, ldr-sensors, light, measurements, mqtt, raspberry, raspberry-pi
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`