https://github.com/galopago/mos-iot-neopixel-color
ESP8266+neopixel color selector
https://github.com/galopago/mos-iot-neopixel-color
Last synced: 8 months ago
JSON representation
ESP8266+neopixel color selector
- Host: GitHub
- URL: https://github.com/galopago/mos-iot-neopixel-color
- Owner: galopago
- License: other
- Created: 2021-04-10T02:35:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-10T02:56:16.000Z (over 4 years ago)
- Last Synced: 2025-01-14T02:29:39.488Z (10 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WiFi controlled LED string + Mongoose OS
ESP8266 based LED string, controllable via MQTT and firmware upgradeable (OTA) with Mongoose OS dashboard. Use it for NEOPIXEl
palette "guessing" or "tuning"
## Tested Hardware
- ESP8266
## Installation & Flashing
Before beginning, you must have the `mos` tool installed. For more info, see the mos [installation instructions](https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md) and mDASH [setup](https://mdash.net/docs/).
1. First, clone the repo
```
$ git clone https://github.com/galopago/MOS_IOT_NEOPIXEL_COLOR.git
```
2. Building the firmware: (esp8266)
```
$ mos build --arch esp8266
```
3. To flash the device: (esp8266)
```
$ mos flash
```
4. Configure WiFi:
```
mos wifi WIFI_SSID WIFI_PASSWORD
```
You must replace the following values:
- WIFI_SSID
- WIFI_PASSWORD
5. Optional - Configure Mongoose OS dashboard (mDASH)
```
mos config-set dash.enable=true dash.token=MDASH_TOKEN
```
You must replace the following values:
- MDASH_TOKEN
6. By default the app uses test.mosquitto.org as MQTT broker, tho change it you must modify mos.yml
7. Publish to default app listening topic to change color palette (numbers from 0 to 255):
```
$ mosquitto_pub -h "test.mosquitto.org" -t "/mosiotneopixelcolor/R" -m "50"
$ mosquitto_pub -h "test.mosquitto.org" -t "/mosiotneopixelcolor/G" -m "100"
$ mosquitto_pub -h "test.mosquitto.org" -t "/mosiotneopixelcolor/B" -m "200"
```