


#Opensprinkler raspberry pi firmware code#
The easiest way to compile is to use the makefile provided in the firmware code folder:.

For example, the capitalization of folder names may be different, and in Linux folder names are case sensitive. Depending on whether you downloaded or git cloned them, you may have to change the folder names to match the directory names in the makefile below. Download and unzip or git clone these into ~/Arduino/libraries folder.
#Opensprinkler raspberry pi firmware install#
Install necessary libraries, including SSD1306(4.2.1), RCSwitch (2.6.4), pubsubclient (2.8), and EthernetENC(master branch) (note that the latest firmware 2.1.9(9) no longer uses UIPEthernet, instead, it uses the newer EthernetENC library which has several major bug fixes).Specifically, in Linux, open terminal and run (the current firmware is compiled with ESP8266 core 2.7.4): Download or git clone OpenSprinkler Firmware Code.Instructions are provided as is, we will not be able to help you with compilation issues, nor can we help you with modifying the code.įirmware Compilation Instructions for OpenSprinkler 3.x (ESP8266-based) Compiling the firmware code requires technical skills. If you use Windows or Mac, we strongly recommend you to install VirtualBox so you can run Linux. Instructions below are provided for Linux only. The build instructions below are for previous versions of OpenSprinkler firmware. The firmware repository contains platformio.ini which has all the information needed for PlatformIO to build the firmware. Download and unzip the OpenSprinkler firmware repository, open the folder in VS Code, at the bottom of the screen, click PlatformIO:Build.Launch VS Code, search and install the platformio extension.NOTE : from firmware 2.2.0, we have adopted PlatformIO, which makes it easy to compile the OpenSprinkler firmware. If your controller is OpenSprinkler Pi (OSPi), please follow the OSPi firmware instructions to compile and run the firmware code. The instructions on this page are for the Arduino-based OpenSprinkler (OS 2.3, 3.x) only. OpenSprinkler firmware is unified and can compiled under both Arduino environment and any Linux-based system.
