Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPreparing Arduino IDE
Download
Download the newest version of Arduino IDE from here and install it.
Adding the ESP8266 to your boards
- Go to File -> Preferences and add
http://arduino.esp8266.com/stable/package_esp8266com_index.json
to the Additional Boards Manager URLs. You can add multiple URLs, separating them with commas.
- Go to Tools -> Board -> Boards Manager...
- Type
ESP8266
into the search - Select esp8266 by ESP8266 Community and click Install
Adding the required libraries
General
You can add libraries by going to Sketch -> Include Library and then choose Manage Libraries... or Add .ZIP Library.... This depends on the library you want to download.
ESPAsyncWebServer
Download the library here and add it by using Add .ZIP Library...
ESPAsyncTCP
Download the library here and add it by using Add .ZIP Library...
Timezone
Just use Manage Libraries..., search for Timezone
and install it.
Timer
Download the library here and add it by using Add .ZIP Library...
Time
Download the library here and add it by using Add .ZIP Library...
PubSubClient
Just use Manage Libraries..., search for PubSubClient
and install it.
FastLED
Just use Manage Libraries..., search for FastLED
and install it.
Adding SPIFFS support
In order to upload the webserver files you need to add the SPIFFS support.
- Download the tool here
- In your Arduino sketchbook directory, create tools directory if it doesn’t exist yet
- Unpack the tool into tools directory (the path will look like
<home_dir>/Arduino/tools/ESP8266FS/tool/esp8266fs.jar
) - Restart Arduino IDE and check the Tools menu for
ESP8266 Sketch Data Upload
Loading the right settings
Open the Tools menu and set everything like shown below