Firmware Compilation
The firmware compilation instructions below are for OpenSprinkler v3.x and v2.3 only.
For RPi and Linux-based OpenSprinkler (OSPi), follow the OSPi installation instructions.
Environment Setup
-
Clone this repository with required submodules, then enter the source directory:
git clone --recurse-submodules https://github.com/OpenSprinkler/OpenSprinkler-Firmware.git cd OpenSprinkler-Firmware -
Install the latest LTS version of Node.js from https://nodejs.org/ if you don't already have it.
- In the source directory, run
npm install html-minifier-terser. - Install Visual Studio Code (VS Code) from https://code.visualstudio.com/, if you don't already have it.
- Launch VS Code and install the PlatformIO extension.
Building the Firmware
- In VS Code, click
File -> Open Folderand select theOpenSprinkler-Firmwarefolder. - PlatformIO will recognize the
platformio.inifile in that folder, which contains all the libraries and settings needed to compile the firmware. - Select
os3x_esp8266as the PlatformIO build environment for OpenSprinkler v3.x. - Click the PlatformIO: Build button (with the checkmark icon ✓) in the blue status bar at the bottom of the screen to build the firmware.