OpenSprinkler Forums Comments, Suggestions, Requests Opensprinkler on ESP8266 Reply To: Opensprinkler on ESP8266

#48136

TeguhTeknisi
Participant

Here the error when i compile your:
1. Time.h not found, so i download https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/Time.h , https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/TimeLib.h and https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/Time.cpp and put it in the folder OpenSprinkler_ESP8266_V_2_1_6
Edit OpenSprinkler.h line 46 from #include <Time.h> to #include “Time.h”

sketch/OpenSprinkler.h:46:19: fatal error: Time.h: No such file or directory
  #include <Time.h>

2. LiquidCrystal_I2C.h – Download version 1.3.4 – https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/NewliquidCrystal_1.3.4.zip then extract it, move the Folder NewliquidCrystal inside the package to ~/Arduino/libraries/ , the Restart Arduino IDE

sketch/OpenSprinkler.h:55:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
 #include <LiquidCrystal_I2C.h>

3. In OpenSprinkler.h Line 53, I Change #include “lib\Adafruit_SSD1306.h” to #include “lib/Adafruit_SSD1306.h”

4. DS1307RTC.h – Download https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/DS1307RTC.cpp and https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/DS1307RTC.h and put it in the folder OpenSprinkler_ESP8266_V_2_1_6
Then edit OpenSprinkler.h , then rename from #include <DS1307RTC.h> to #include “DS1307RTC.h”

sketch/OpenSprinkler.h:61:24: fatal error: DS1307RTC.h: No such file or directory
  #include <DS1307RTC.h>

5. ESP8266ping.h – Try to google Arduino-Ping, i found this https://github.com/BlakeFoster/Arduino-Ping , but i cannot find ESP8266ping.h
So i try to google ESP8266Ping.h, then i found this https://github.com/dancol90/ESP8266Ping , so i use it, then extract and put it in ~/Arduino/libraries/ , the Restart Arduino IDE
Then edit EtherCardW5100.h line 58 and rename #include <Arduino-Ping-master\ESP8266ping.h>` to #include <ESP8266Ping.h>

sketch/EtherCardW5100.h:58:45: fatal error: Arduino-Ping-master\ESP8266ping.h: No such file or directory
 #include <Arduino-Ping-master\ESP8266ping.h>

6. WiFiManager.h – Download https://github.com/tzapu/WiFiManager/archive/0.12.tar.gz , then extract and put it in ~/Arduino/libraries/ , the Restart Arduino IDE

sketch/EtherCardW5100.h:66:72: fatal error: WiFiManager.h: No such file or directory
 #include <WiFiManager.h>         //https://github.com/tzapu/WiFiManager

7. Utils.h – Edit OpenSprinkler.h line 87 , rename <strong>Utils.h</strong> to <strong>utils.h</strong>

sketch/OpenSprinkler.h:87:19: fatal error: Utils.h: No such file or directory
 #include "Utils.h"

8. Time.h and DS1307RTC.h in OpenSprinkler_ESP8266_V_2_1_6.ino, so edit it, rename from <strong><Time.h></strong> to <strong>”Time.h”</strong> then <strong><DS1307RTC.h></strong> to <strong>”DS1307RTC.h”</strong>

/home/sukanime/Arduino/OpenSprinkler_ESP8266_V_2_1_6/OpenSprinkler_ESP8266_V_2_1_6.ino:84:19: fatal error: Time.h: No such file or directory
  #include <Time.h>
/home/sukanime/Arduino/OpenSprinkler_ESP8266_V_2_1_6/OpenSprinkler_ESP8266_V_2_1_6.ino:86:24: fatal error: DS1307RTC.h: No such file or directory
  #include <DS1307RTC.h>

9. EEPROM_ESP.h – Edit Eeprom_ESP.cpp , rename <strong>EEPROM_ESP.h</strong> to <strong>Eeprom_ESP.h</strong>

sketch/Eeprom_ESP.cpp:3:24: fatal error: EEPROM_ESP.h: No such file or directory
 #include "EEPROM_ESP.h"

10. Gpio.h – Edit OpenSprinkler.cpp line 25, rename <strong>Gpio.h</strong> to g<strong>pio.h</strong>

sketch/OpenSprinkler.cpp:25:18: fatal error: Gpio.h: No such file or directory
 #include "Gpio.h"