https://github.com/343max/led_lamp
I built a stupid lamp using a rasperry pi and an LED strip and now you can too!
https://github.com/343max/led_lamp
Last synced: 9 months ago
JSON representation
I built a stupid lamp using a rasperry pi and an LED strip and now you can too!
- Host: GitHub
- URL: https://github.com/343max/led_lamp
- Owner: 343max
- License: mit
- Created: 2021-04-01T20:03:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-27T16:23:30.000Z (over 4 years ago)
- Last Synced: 2025-06-07T05:03:33.571Z (10 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
I built a LED lamp as described [here](https://www.control-led.de/init/default/show_post/14/Python-RaspberryPi/Adressierung-von-LED-Strips-mit-dem-Raspberry-Pi-Zero)
This is my code, please modify it.
### Installation:
```
sudo pip3 install -r requirements.txt
```
run it:
```
sudo python3 server.py
```
(sudo is neccessary as it won't be able to talk to the GPIO otherwise)
### List of supported scenes:
```
curl http://lamp.local:8080/list
```
### Select a scene:
```
curl --data "" http://lamp.local:8080/starry_night
```
### Setup as service:
Set the correct `WorkingDirectory` in `fireled.service` first
```
sudo cp fireled.service /etc/systemd/system/
sudo systemctl enable fireled.service
```
start the service afterwards:
```
sudo systemctl start fireled.service
```