Skip to content

Commit

Permalink
updated readme and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
naztronaut committed Oct 19, 2019
1 parent 0cc9bb5 commit f2ebe1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Controlling RGBW LED Strip lights from your browser with a Raspberry Pi Zero.

<center>
<img src="./img/thumbnail.png" width="700px" alt="Kitchen Cabinet Raspberry Pi Lights">
<img src="./img/thumbnail.png" width="700px" alt="RGBW Raspberry Pi Lights">
</center>

## Getting Started
Expand Down Expand Up @@ -127,9 +127,9 @@ Only a status of `on` or `off` are accepted. Anything else will return a simple

### API endpoints

#### `/api/lr?red=255&green=255&blue=255&white=255`
#### `/api/lr?red=255&green=255&blue=255`

You can pass in 4 different query string parameters of red, green, blue, and white with values of 0 to 255. A value of 0 means off (or no power)
You can pass in 4 different query string parameters of red, green, and bluewith values of 0 to 255. A value of 0 means off (or no power)
and 255 means on (or full power). Different combinations will cause different colors and brightnesses. The Frontend should allow you to send these
using a color picker.

Expand All @@ -146,11 +146,15 @@ Will return this:
"blue": 0,
"green": 0,
"red": "255",
"white": "150"
}
```

Sending no values will turn the lights off.
Sending no values will turn the lights off.

#### `/api/lr/white?white&blue=255`

The white lights were separated for simplicity. Since the frontend color picker only produces Red, Green, and Blue color codes, the white was left out. For simplicity,
I've separated it so it can be turned on and off with a button instead. I will apply a brightness option later.

## Authors
* **Nazmus Nasir** - [Nazm.us](https://nazm.us) - Owner of EasyProgramming.net
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark d-flex justify-content-between">
<div class="p-2"><a class="navbar-brand" href="#">Easy Programming </a></div>
<div class="p-2"><span id="subtitle">Kitchen Cabinet Lights</span></div>
<div class="p-2"><span id="subtitle">RGBW Lights</span></div>
</nav>
<div class="container">
<div class="row">
Expand Down
Binary file added thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2ebe1b

Please sign in to comment.