Control multiple light strips each on their own ESP8266. Supports OTA updates.
- Install Node.js® and npm if they are not already on your machine.
- Update
dist/ArduinoCode/ArduinoCode.ini
variables (Wifi, Node ip, etc..)
- From the mosca folder run
mosca -V | bunyan
- Initially install dependencies by running
npm install
- Run
npm start
to spin up the node server.
- Navigate to the ng-light-show folder and run
npm install
ng serve
to start the app found onlocalhost:4200
- Open up dist/ArduinoCode/ArduinoCode.ini in Arduino Sketch
- Verify/Compile the code.
(Sketch->Verify/Compile)
- Export compiled binary.
(Sketch->Export Compiled Binary)
- The new compiled code is now ready to be pulled for updates.
-
OTA Update Setup
- IMPORTANT STEP - Kill Node Server
- Plug in ESP8266
- Open up dist/ArduinoCode/ArduinoCode.ini in Arduino Sketch
- Upload Code to the ESP8266 via USB and Arduino Sketch.
- IMPORTANT STEP - Once upload is finished press the reset button on the ESP8266.
- Your device may be unplugged and is ready for OTA updates.
-
OTA Updates (This process will get better)
- Increment the
FW_VERSION
number when changes have been made todist/ArduinoCode/ArduinoCode.ini
and they are ready to be deployed to your devices. - Export compiled binary.
(Sketch->Export Compiled Binary)
- Update the
firmwareVersionNumber
insrc/firmwareUpdate/firmwareUpdate.routes.ts
to match the new version number in the previous step. - Hit the reset button the the ESP8266 or unplug/plug in the power. (Updates are checked when the device initially boots).
- Increment the