probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

fatal error: TimeLib.h: No such file or directory #71

Closed jdschuitemaker closed 7 years ago

jdschuitemaker commented 7 years ago

I just downloaded the latest version and I I am seeing this error when I verify it:

`D:\Development\ESP8266 Arduino\Sketches\ESP8266HueEmulator-master\ESP8266HueEmulator\ESP8266HueEmulator.ino:10:21: fatal error: TimeLib.h: No such file or directory

include

                 ^

compilation terminated.

exit status 1 Error compiling for board WeMos D1 R2 & mini.`

How can I solve this?

probonopd commented 7 years ago

Did you follow all the steps from https://github.com/probonopd/ESP8266HueEmulator#compilation?

jdschuitemaker commented 7 years ago

No, didn't do that. Now I have done that it works. Thanks for the hint...

micheljung commented 6 years ago

I did follow the steps, but my Arduino Sketchbook location was set to C:\Users\<User>\Documents\Arduino instead of C:\Users\<User>\Arduino (which is what the steps seem to assume). Moving the libraries folder to the correct location fixed the problem.

In case someone has the same issue.

probonopd commented 6 years ago

Thanks for the hint @micheljung

Carsonyjk commented 5 years ago

@probonopd I had the same problem. you said I need follow all the steps from https://github.com/probonopd/ESP8266HueEmulator#compilation? ,

mkdir -p $HOME/Arduino/libraries/ cd $HOME/Arduino/libraries/ git clone --branch 2.1.4 https://github.com/Makuna/NeoPixelBus.git git clone https://github.com/interactive-matter/aJson.git git clone https://github.com/PaulStoffregen/Time.git git clone https://github.com/gmag11/NtpClient.git sed -i -e 's|#define PRINT_BUFFER_LEN 256|#define PRINT_BUFFER_LEN 4096|g' aJson/aJSON.h cd - git clone https://github.com/probonopd/ESP8266HueEmulator.git sed -i -e 's|#include "/secrets.h"|//#include "/secrets.h"|g' ESP8266HueEmulator/ESP8266HueEmulator/ESP8266HueEmulator.ino sed -i -e 's|//const char|const char|g' ESP8266HueEmulator/ESP8266HueEmulator/ESP8266HueEmulator.ino

I don't understand how to follow the steps, could you please explain in detail?

Carsonyjk commented 5 years ago

Hello all, I am using NodeMCU and RTC try to get current time, I had the same issue as jdschuitemaker, and I had read Probonopd's comment, however, I don't understand how to follow the steps below? Could somebody explain it in details? Thank you. mkdir -p $HOME/Arduino/libraries/ cd $HOME/Arduino/libraries/ git clone --branch 2.1.4 https://github.com/Makuna/NeoPixelBus.git git clone https://github.com/interactive-matter/aJson.git git clone https://github.com/PaulStoffregen/Time.git git clone https://github.com/gmag11/NtpClient.git sed -i -e 's|#define PRINT_BUFFER_LEN 256|#define PRINT_BUFFER_LEN 4096|g' aJson/aJSON.h cd - git clone https://github.com/probonopd/ESP8266HueEmulator.git sed -i -e 's|#include "/secrets.h"|//#include "/secrets.h"|g' ESP8266HueEmulator/ESP8266HueEmulator/ESP8266HueEmulator.ino sed -i -e 's|//const char|const char|g' ESP8266HueEmulator/ESP8266HueEmulator/ESP8266HueEmulator.ino

Carsonyjk commented 5 years ago

Hello, I fixed it by downloading the latest blynk library. Thanks