An open API service indexing awesome lists of open source software.

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!

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
```