galopago / mos-iot-addressable-leds

Mongoose-os powered IoT addressable led strip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WiFi controlled LED string + Mongoose OS

ESP8266 based LED string, controllable via MQTT and firmware upgradeable (OTA) with Mongoose OS dashboard.

Tested Hardware

  • ESP8266

Installation & Flashing

Before beginning, you must have the mos tool installed. For more info, see the mos installation instructions and mDASH setup.

  1. First, clone the repo
$ git clone https://github.com/galopago/MOS_IOT_ADDRESSABLE_LEDS.git
  1. Building the firmware: (esp8266)
$ mos build --arch esp8266 
  1. To flash the device: (esp8266)
$ mos flash 
  1. Configure WiFi:
mos wifi WIFI_SSID WIFI_PASSWORD 

You must replace the following values:

  • WIFI_SSID
  • WIFI_PASSWORD
  1. Optional - Configure Mongoose OS dashboard (mDASH)
mos config-set dash.enable=true dash.token=MDASH_TOKEN

You must replace the following values:

  • MDASH_TOKEN
  1. By default the app uses test.mosquitto.org as MQTT broker, tho change it you must modify mos.yml

  2. Publish to default app listening topic to change color palette (numbers from 0 to 2):

$ mosquitto_pub -h "test.mosquitto.org" -t "/mosiotlights/colorpalette" -m "1"

About

Mongoose-os powered IoT addressable led strip

License:Other


Languages

Language:C 90.0%Language:Makefile 8.8%Language:JavaScript 1.2%