https://github.com/greenponik/greenponik_tsl2561
Read TSL2561 through Python3 on raspberry pi
https://github.com/greenponik/greenponik_tsl2561
gardening greenponik grow hydroponics i2c-sensors iot light raspberry-pi
Last synced: 7 months ago
JSON representation
Read TSL2561 through Python3 on raspberry pi
- Host: GitHub
- URL: https://github.com/greenponik/greenponik_tsl2561
- Owner: GreenPonik
- License: mit
- Created: 2020-01-13T10:11:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T16:39:25.000Z (about 5 years ago)
- Last Synced: 2025-01-28T02:16:40.171Z (9 months ago)
- Topics: gardening, greenponik, grow, hydroponics, i2c-sensors, iot, light, raspberry-pi
- Language: Python
- Homepage: https://greenponik.github.io/GreenPonik_TSL2561/
- Size: 217 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)
[](https://sonarcloud.io/dashboard?id=GreenPonik_GreenPonik_TSL2561)


## GreenPonik_TSL2561.py Library for Raspberry pi
---------------------------------------------------------
This is the sample code for read light with TSL2561 sensor.
## Table of Contents
- [GreenPonik_TSL2561.py Library for Raspberry pi](#GreenPoniktsl2561py-library-for-raspberry-pi)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Methods](#methods)
- [Examples](#examples)
- [Credits](#credits)
## Installation
```shell
> git clone https://github.com/GreenPonik/GreenPonik_TSL2561.git
cd GreenPonik_TSL2561
pip3 install -r requirements.txt
or
> pip3 install greenponik-tsl2561
```
```Python
from GreenPonik_TSL2561 import GreenPonik_TSL2561
```
## Methods
```python
"""
Get light data
"""
def read_tsl2561():
```
## Example
```Python
import time
from GreenPonik_TSL2561 import GreenPonik_TSL2561
if __name__ == "__main__":
tsl = GreenPonik_TSL2561()
while True:
data = tsl.read_tsl2561()
print(data)
time.sleep(1)
```
## Credits
Write by Mickael Lehoux, from [GreenPonik](https://www.greenponik.com), 2019