Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivkos/luxsrv
Listens for network packets controlling RGB LED strips on NodeMCU ESP8266
https://github.com/ivkos/luxsrv
esp8266 led led-strips lua network nodemcu nodemcu-esp8266 nodemcu-lua rgb udp ws2812b
Last synced: 17 days ago
JSON representation
Listens for network packets controlling RGB LED strips on NodeMCU ESP8266
- Host: GitHub
- URL: https://github.com/ivkos/luxsrv
- Owner: ivkos
- License: apache-2.0
- Created: 2020-01-11T15:28:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T00:55:26.000Z (almost 3 years ago)
- Last Synced: 2024-11-11T00:03:50.764Z (3 months ago)
- Topics: esp8266, led, led-strips, lua, network, nodemcu, nodemcu-esp8266, nodemcu-lua, rgb, udp, ws2812b
- Language: Lua
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luxsrv
❤️💚💙**luxsrv** is a Lua program for the NodeMCU ESP8266 devkit that listens for
network packets describing the color setup and driving the WS2812B LED strip.**luxsrv** is part of **[Lux](https://github.com/ivkos/lux)**.
## NodeMCU
Refer to these resources for more details:
* [NodeMCU Overview](https://nodemcu.readthedocs.io/en/master/)
* [NodeMCU Getting Started](https://nodemcu.readthedocs.io/en/master/getting-started/)## Firmware
The NodeMCU ESP8266 devkit must have the NodeMCU firmware flashed on it.
Refer to the following resources for instructions how to flash it:* Building the NodeMCU firmware:
- [Reference](https://nodemcu.readthedocs.io/en/master/build/)
- [NodeMCU Custom Builds](https://nodemcu-build.com/) - Cloud Build Service
* Flashing the NodeMCU firmware:
- [Reference](https://nodemcu.readthedocs.io/en/master/flash/)
- [NodeMCU PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher)## Development
### Requirements
* Node.js (required by [NodeMCU-Tool](https://github.com/andidittrich/NodeMCU-Tool))### Installing
Run **`npm install`** to install the dependencies.### Configuration
#### Wi-Fi Configuration
Wi-Fi credentials must reside in `src/wifi_config.lua` following this format:
```lua
return {
WIFI_SSID = "My Home Network",
WIFI_PSK = "MySuperSecretPassword"
}
```#### LED Pixel Count
Set the number of pixels on your LED strip in `src/lux_server.lua`, e.g.:
```lua
local LED_COUNT = 120
local PORT = 42170
```### Uploading the Scripts
- Connect the ESP8266 to your PC via its microUSB port.
- To list what's on the device, run **`npm run ls`**
- To format the device, run **`npm run format`**
- Compile and upload with **`npm run upload`**