https://github.com/timhanewich/bed-light-server
Web server running on a Raspberry Pi Pico W that controls a strip of WS2812B LED lights beneath the bed frame
https://github.com/timhanewich/bed-light-server
Last synced: 8 months ago
JSON representation
Web server running on a Raspberry Pi Pico W that controls a strip of WS2812B LED lights beneath the bed frame
- Host: GitHub
- URL: https://github.com/timhanewich/bed-light-server
- Owner: TimHanewich
- Created: 2023-02-20T14:49:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T14:52:53.000Z (over 3 years ago)
- Last Synced: 2025-01-19T20:58:08.755Z (over 1 year ago)
- Language: Python
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Bed Light Server
This project contains the code that runs on a Raspberry Pi Pico W, hooked up to a WS2812b LED light strip. The Raspberry Pi Pico W acts as a web server. You can control the RGB settings and target LED's by making HTTP POST requests to the server. If you make an HTTP GET request to it, it will serve a simple interface to help you make these requests.

## Notes
Default IP address of the board I am using: **10.0.0.122**
## Example Requests
Set all LED's to 100, 150, 200 (RGB)
```
POST http://10.0.0.122
{
"mode":"rgb",
"r": 100,
"g": 150,
"b": 200
}
```
Setting only the top 180 degrees of lights (near head) to 30, 0, 0 (RGB):
```
POST http://10.0.0.122
{
"mode":"rgb",
"r": 30,
"g": 0,
"b": 0,
"h0": 270,
"h1": 90
}
```