DCF77 emulator with ESP8266

About 20 years ago I recycled and modernized a very old nixie clock built by my father in the 70's, with an 87C51 and a DCF77 module which replaced digital ICs and 50Hz derived timebase.
About 20 years ago I recycled and modernized a very old nixie clock built from my father in the 70's, with an 87C51 and a DCF77 module which replaced digital ICs and 50 Hz derived timebase.
This has worked regularly for many years, but in the last years the DCF77 reception has (in my house) become more and more difficult probably from electromagnetic interferences of modern switching PSU, so I decided to cut down the radio reception and implement some form of NTP client...
Did you know that the fantastically cheap and powerful ESP8266 module can be easily programmed in Arduino style ? (With all the benefits of libraries.)
Here you can find everything that is needed and the (few) steps to install the environment in the Arduino IDE.
This is the result... DCF77 radio module emulated with a single and cheap ESP8266 module connected to my home Wi-Fi network
One only output pin is required, the GPIO2 to drive the old nixie clock.
Note to implementation
Apparently the ESP module will hang if you drive low the GPIO2 pin when bootup. So the system works if you connect it to an LED (the thresold level of 2 V is probably enough) but you cannot drive an NPN transistor to interface your clock I solved because my clock need a drive low input, so I use an 1N4148 with the cathode in ESP side, but you must care of it...
The project use the extra Time library which I Included.
The schematic is divided in two: the left is the clock application while the right is a small serial programmer for the esp module if you haven't one.
30/12/2015 software update
changed main loop. Added a mechanism to re-connect wlan after time get failure or wlan loss. After this seems much more stable. Before now we had no more time updates if the AP was restarted.
Project Elements
Discussion (13 comments)

Salman Kouhi 3 years ago

ElektorLabs 3 years ago

slaps313 3 years ago
When I execute the sketch used here with an ESP-01, it works as far as I can tell as it should.
But I would like to test the time alignment with the Arduino Mega, for this I use this library: https://github.com/thijse/Arduino-DCF77.
This also works with my DCF77 receiver from ELV.
But if I now want to read in the time with the ESP-01, I do not get a positive time comparison with the same sketch. Regardless of whether I invert the signal or not.
If I check the generated Signal with the BinaryStream Analyzer, the Signal is correct.
Does anyone also tried this way?
Thank you for some hints!

Brian Jones 4 years ago

Hendrik Christiaens 7 years ago
Ik ben een zestiger en lees elektor trouw al sinds de jaren zeventig.
Hoewel ik meer vertrouwd ben met ouderwetse componenten heb ik mij voor de eerste keer aan een aduino projectje gewaagd.
Ik had een Nixie klok die zeer onnouwkeurig was, maar met een ingang voor een DCF77 signaal.
De ESP8266 module zou dus de perfecte oplossing zijn. Na het downloaden van de arduino software en veertien dagen sukkelen ben ik er toch in geslaagd. Mijn klokje loopt op de seconde juist.
Trots.
Hendrik Christiaens

Karel Oosterhuis 4 years ago
Wat mooi om te zien. Ik loop nu te stoeien met een esp8266 maar mijn klok een Eela studio klok zit er een paar seconden naast en ik krijg hem maar niet gelijk,
Met wat tips geprobeerd de tijd aan te passen met een ofsite maar nee, dat lukt niet.
Op dit moment als ik klok en ESP reboot zit hij er 2 min naast.
Ik ben heel nieuwsgierig naar de code die u er in heeft.
Of misschien ziet u in mijn code wat ik verkeerd doe.
Groet Karel
//ofsset in secondes. klok loopt voor - met 2.5 1 sec achter met 3.5 een kwart sec achter. EN nu 2 min en 1 sec er naast
int KarelsOffset = -2 ;
unsigned int localPort = 2390; // local port to listen for UDP packets
/* Don't hardwire the IP address or we won't get the benefits of the pool.
* Lookup the IP address for the host name instead */
IPAddress timeServerIP; // time.nist.gov NTP server address
//const char* ntpServerName = "time.google.com";
const char* ntpServerName = "0.it.pool.ntp.org";
const int NTP_PACKET_SIZE = 48; // NTP time stamp is in the first 48 bytes of the message
byte packetBuffer[ NTP_PACKET_SIZE]; //buffer to hold incoming and outgoing packets
// A UDP instance to let us send and receive packets over UDP
WiFiUDP udp;
//udp reply missing counter
int UdpNoReplyCounter = 0;
//routine timer ogni 100 msec
Ticker DcfOutTimer;
/*
Maak hier een andere ledpin van
pin 4 = d2
pin 13 = d7
pin 12 = d6
*/
#define LedPin 4
//how many total pulses we have
//three coimplete minutes + 2 head pulses and one tail pulse
#define MaxPulseNumber 183
#define FirstMinutePulseBegin 2
#define SecondMinutePulseBegin 62
#define ThirdMinutePulseBegin 122
//complete array of pulses for three minutes
//0 = no pulse, 1=100msec, 2=200msec
int ArrayImpulsi[MaxPulseNumber];
int ContaImpulsi = 0;
int UscitaDcfOn = 0;
int ContaImpulsiParziale = 0;
int Ore,Minuti,Secondi,Giorno,Mese,Anno,DayOfW;
const int timeZone = 1; // Central European Time
int Dls; //DayLightSaving
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.println("DCF77 emulator INIT");
pinMode(LedPin, OUTPUT);
digitalWrite(LedPin, LOW);
//gestione inpulsi DCF
DcfOutTimer.attach_ms(100, DcfOut);
//first 2 pulses: 1 + blank to simulate the packet beginning
//il primo bit e' un 1
ArrayImpulsi[0] = 1;
//segue l'impulso mancante che indica il sincronismo di ricerca inizio minuto
ArrayImpulsi[1] = 0;
//last pulse after the third 59° blank
ArrayImpulsi[MaxPulseNumber - 1] = 1;
ContaImpulsi = 0;
UscitaDcfOn = 0; //we begin with the output OFF
//we begin connecting to wifi
//NOTE testing WiFi.status() BEFORE the FIRST WiFi.begin() seems to hang the system
//so we attempt a first connection BEFORE the main loop
ConnettiWifi();
}
void loop(){
//check the lan status
if (WiFi.status() == WL_CONNECTED)
LeggiEdecodificaTempo();
else
ConnettiWifi();
delay(60000);
}
void ConnettiWifi(){
int Timeout;
WiFi.disconnect();
Serial.println("disconnessione !");
delay(1000); //necessary ???
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
Timeout = 0;
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
if (Timeout++ > 60){
Serial.println("\nImpossible to connect WLAN!");
WiFi.disconnect();
return;
}
};
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
Serial.println("This is Karels dfc77 wifi transmitting!!!");
Serial.print ("ingestelde ofsset = ");
Serial.println( KarelsOffset);
}
void LeggiEdecodificaTempo() {
int DayToEndOfMonth,DayOfWeekToEnd,DayOfWeekToSunday;
//get a random server from the pool
WiFi.hostByName(ntpServerName, timeServerIP);
Serial.println("Starting UDP");
udp.begin(localPort);
Serial.print("Local port: ");
Serial.println(udp.localPort());
sendNTPpacket(timeServerIP); // send an NTP packet to a time server
// wait to see if a reply is available
delay(1000);
int cb = udp.parsePacket();
if (!cb) {
Serial.println("no packet yet");
//try max 3 times (every minute) after that we force the wifi to reconnect
if (UdpNoReplyCounter++ == 3){
Serial.println("troppi errori di reply udp");
ConnettiWifi();
UdpNoReplyCounter = 0;
};
} else {
UdpNoReplyCounter = 0;
Serial.print("packet received, length=");
Serial.println(cb);
// We've received a packet, read the data from it
udp.read(packetBuffer, NTP_PACKET_SIZE); // read the packet into the buffer
//the timestamp starts at byte 40 of the received packet and is four bytes,
// or two words, long. First, esxtract the two words:
unsigned long highWord = word(packetBuffer[40], packetBuffer[41]);
unsigned long lowWord = word(packetBuffer[42], packetBuffer[43]);
// combine the four bytes (two words) into a long integer
// this is NTP time (seconds since Jan 1 1900):
unsigned long secsSince1900 = highWord << 16 | lowWord;
Serial.print("Seconds since Jan 1 1900 = " );
Serial.println(secsSince1900);
// now convert NTP time into everyday time:
//Serial.print("Unix time = ");f
//hier boven uit gezet wat er kwam ee error
// Unix time starts on Jan 1 1970. In seconds, that's 2208988800:
// ofset weg: + KarelsOffset;
const unsigned long seventyYears = 2208988800UL + KarelsOffset;
// subtract seventy years:
//note: we add two minutes because the dcf protocol send the time of the FOLLOWING minute
//and our transmissione begin the next minute more hier onder 1 van de 120 gemaakt kijken of local time
time_t epoch = secsSince1900 - seventyYears + ( timeZone * 3600 ) + 1;
// print Unix time:
Serial.println(epoch);
//delay(500); //j.o. test ivm statische afwijking
//calculate actual day to evaluate the summer/winter time of day ligh saving
DayOfW = weekday(epoch);
Giorno = day(epoch);
Mese = month(epoch);
Anno = year(epoch);
Serial.print("Tempo Locale "); // UTC is the time at Greenwich Meridian (GMT)
Serial.print(Giorno);
Serial.print('/');
Serial.print(Mese);
Serial.print('/');
Serial.print(Anno);
Serial.print(' ');
//calcolo ora solare o legale
Dls = 0; //default winter time
//From April to september we are surely on summer time
if (Mese > 3 && Mese < 10) {
Dls = 1;
};
//March, month of change winter->summer time, last last sunday of the month
//March has 31days so from 25 included on sunday we can be in summer time
if (Mese == 3 && Giorno > 24) {
DayToEndOfMonth = 31 - Giorno;
DayOfWeekToSunday = 7 - DayOfW;
if (DayOfWeekToSunday >= DayToEndOfMonth)
Dls = 1;
};
//Octobee, month of change summer->winter time, l'ultima Domenica del mese
//Even Octobee has 31days so from 25 included on sunday we can be in winter time
if (Mese == 10) {
Dls = 1;
if (Giorno > 24) {
DayToEndOfMonth = 31 - Giorno;
DayOfWeekToEnd = 7 - DayOfW;
if (DayOfWeekToEnd >= DayToEndOfMonth)
Dls = 0;
};
};
Serial.print("Dls:");
Serial.print(Dls);
Serial.print(' ');
//add one hour if we are in summer time
if (Dls == 1)
epoch += 3600;
//now that we know the dls state, we can calculate the time too
// print the hour, minute and second:
Ore = hour(epoch);
Minuti = minute(epoch);
Secondi = second(epoch);
Serial.print(Ore); // print the hour
Serial.print(':');
Serial.print(Minuti); // print the minute
Serial.print(':');
Serial.println(Secondi); // print the second
//if we are over about the 56° second we risk to begin the pulses too late, so it's better
//to skit at the half of the next minute and NTP+recalculate all again
if (Secondi > 56){
delay(30000);
return;
}
//calculate bits array for the first minute
CalcolaArray(FirstMinutePulseBegin);
//add one minute ad calculate array again fot the second minute
epoch += 60;
DayOfW = weekday(epoch);
Giorno = day(epoch);
Mese = month(epoch);
Anno = year(epoch);
Ore = hour(epoch);
Minuti = minute(epoch);
Secondi = second(epoch);
CalcolaArray(SecondMinutePulseBegin);
//one minute more for the third minute
epoch += 60;
DayOfW = weekday(epoch);
Giorno = day(epoch);
Mese = month(epoch);
Anno = year(epoch);
Ore = hour(epoch);
Minuti = minute(epoch);
Secondi = second(epoch);
CalcolaArray(ThirdMinutePulseBegin);
//how many to the minute end ?
//don't forget that we begin transmission at second 58°
int DaPerdere = 58 - Secondi;
delay(DaPerdere * 1000);
//begin
UscitaDcfOn = 1;
//three minutes are needed to transmit all the packet
//then wait more 30 secs to locate safely at the half of minute
//NB 150+60=210sec, 60secs are lost from main routine
delay(150000); //j.o. 150000
};
udp.stop() ;
delay(500); //j.o. test ivm statische afwijking
}
void CalcolaArray(int ArrayOffset) {
int n,Tmp,TmpIn;
int ParityCount = 0;
//i primi 20 bits di ogni minuto li mettiamo a valore logico zero
for (n=0;n<20;n++)
ArrayImpulsi[n+ArrayOffset] = 1;
//DayLightSaving bit
if (Dls == 1)
ArrayImpulsi[17+ArrayOffset] = 2; // van == naar = veranderd (28-12-2020 j.o.)
else
ArrayImpulsi[18+ArrayOffset] = 2; // van == naar = veranderd (28-12-2020 j.o.)
//il bit 20 deve essere 1 per indicare tempo attivo
ArrayImpulsi[20+ArrayOffset] = 2;
//calcola i bits per il minuto
TmpIn = Bin2Bcd(Minuti);
for (n=21;n<28;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
};
if ((ParityCount & 1) == 0)
ArrayImpulsi[28+ArrayOffset] = 1;
else
ArrayImpulsi[28+ArrayOffset] = 2;
//calcola i bits per le ore
ParityCount = 0;
TmpIn = Bin2Bcd(Ore);
for (n=29;n<35;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
}
if ((ParityCount & 1) == 0)
ArrayImpulsi[35+ArrayOffset] = 1;
else
ArrayImpulsi[35+ArrayOffset] = 2;
ParityCount = 0;
//calcola i bits per il giorno
TmpIn = Bin2Bcd(Giorno);
for (n=36;n<42;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
}
//calcola i bits per il giorno della settimana
TmpIn = Bin2Bcd(DayOfW);
for (n=42;n<45;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
}
//calcola i bits per il mese
TmpIn = Bin2Bcd(Mese);
for (n=45;n<50;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
}
//calcola i bits per l'anno
TmpIn = Bin2Bcd(Anno - 2000); //a noi interesa solo l'anno con ... il millenniumbug !
for (n=50;n<58;n++) {
Tmp = TmpIn & 1;
ArrayImpulsi[n+ArrayOffset] = Tmp + 1;
ParityCount += Tmp;
TmpIn >>= 1;
}
//parita' di data
if ((ParityCount & 1) == 0)
ArrayImpulsi[58+ArrayOffset] = 1;
else
ArrayImpulsi[58+ArrayOffset] = 2;
//ultimo impulso mancante
ArrayImpulsi[59+ArrayOffset] = 0;
/* for debug: print the whole 180 secs array
* Serial.print(':');
for (n=0;n<60;n++)
Serial.print(ArrayImpulsi[n+ArrayOffset]);*/
}
// send an NTP request to the time server at the given address
unsigned long sendNTPpacket(IPAddress& address)
{
Serial.println("sending NTP packet...");
// set all bytes in the buffer to 0
memset(packetBuffer, 0, NTP_PACKET_SIZE);
// Initialize values needed to form NTP request
// (see URL above for details on the packets)
packetBuffer[0] = 0b11100011; // LI, Version, Mode
packetBuffer[1] = 0; // Stratum, or type of clock
packetBuffer[2] = 6; // Polling Interval
packetBuffer[3] = 0xEC; // Peer Clock Precision
// 8 bytes of zero for Root Delay & Root Dispersion
packetBuffer[12] = 49;
packetBuffer[13] = 0x4E;
packetBuffer[14] = 49;
packetBuffer[15] = 52;
// all NTP fields have been given values, now
// you can send a packet requesting a timestamp:
udp.beginPacket(address, 123); //NTP requests are to port 123
udp.write(packetBuffer, NTP_PACKET_SIZE);
udp.endPacket();
}
//richiamata ciclicamente ogni 100msec
//per uscita di simulazione DFC77
void DcfOut() {
if (UscitaDcfOn == 1) {
switch (ContaImpulsiParziale++) {
case 0:
if (ArrayImpulsi[ContaImpulsi] != 0)
digitalWrite(LedPin, 1);
break;
case 1:
if (ArrayImpulsi[ContaImpulsi] == 1)
digitalWrite(LedPin, 0);
break;
case 2:
digitalWrite(LedPin, 0);
break;
case 9:
if (ContaImpulsi++ == (MaxPulseNumber -1 )){ //one less because we FIRST tx the pulse THEN count it
ContaImpulsi = 0;
UscitaDcfOn = 0;
};
ContaImpulsiParziale = 0;
break;
};
};
}
int Bin2Bcd(int dato) {
int msb,lsb;
if (dato < 10)
return dato;
msb = (dato / 10) << 4;
lsb = dato % 10;
return msb + lsb;
}

walterdkn 7 years ago
Is this a known issue?

Tobias Wex 7 years ago
I´m using Arduino 1.8.5 and I used the code from the last posted file "DOWbugCorecctedSoftware", plus I changed the "Time.h" into "TimeLib.h". Unfortunately after flashing to the ESP both "MEZ" and "MESZ" bit were always 0 and the connected clock refused the given DCF-Code.
After deleting one of the "=" in the code in each line of the DLS-bit, the compilled program works perfect:
//DayLightSaving bit
if (Dls == 1)
ArrayImpulsi[17+ArrayOffset] = 2;
else
ArrayImpulsi[18+ArrayOffset] = 2;
But anyways, I know serveral DCF-Emulators but this one is the best I´ve ever seen. One of the connected clock (the picky one, which wants to have the right bit 17+18) have been running perfectly synced for two days now...
Best regards
Toby

Tobias Wex 7 years ago
thank you for that great project, very useful...
But I noticed that my clock can´t synchronize because bit 17 and 18 are both "0".
At least one should be "1".
Bit 17 and 18 are for the correct time zone:
MEZ: Bit 17:1; Bit 18:0
MESZ: Bit 17:0; Bit 18:1
Yours Toby

walterdkn 7 years ago
your corrected software works! I attached a photo I took. Grazie!
There are however some issues which you might want to fix before releasing the update:
- the "weekday" problem; just change Time.h to timelib.h, then it is solved
- several parts of the code are in Italian (e.g. variables), so not everyone might be able to understand everyting ;-).
Let me tell you that this little project is very useful just because of the issues you mentioned (DCF reception getting more and more worse), so thank you for this!
BTW, I tried to modify the program to receive the time signal from GPS instead of network. This could be useful if there is no network accessible. However, I did not succeed so far. I have built a master clock that receives GPS time and converts it to local time; this is working. I transmit the time via an RF24 module to several slaves, this is working, too, But I did not yet succeed in transposing the received time to a DCF signal. The DCF string is generated, but the timestamp doesn't get updated correctly and it is not transmitted to DCFOut. I am using an Arduino Nano for this, so I use a suitable Ticker.h instead of the one for the ESP.
Maybe you have tip how to modify your program (I omitted all the code that is concerned with lan). If you have time you might take a look at my code.
Kind regards from Germany
Walter
(not yet working) (3kb)

fuso 7 years ago
curious ... in the time library at line 21 say day of week 0=Sunday
at line 102 : day of week start at 1 (sunday)
Now I correct the code
The DayLightSaving algo (chich use DOW) work well too ... probably I did count 1:7 when write code ... I don't remember but I simulated it and seems it work
The (simply) modified part is in the CalcolaArray section
Now it should work right
my clock don't show day of week but visually inspection of pulses led confirmed me that it's ok
Try it and let me know if all is good now so I can post it in the main page
Thank you for you observation ...it help to improve the software :)
bye

fuso 7 years ago
at row 21 it says
"day of the week, Sunday is day 0"
while in dcf 77 time format monday=1 sunday=7
so you are right ! thear's a bug !
I didn't noticed it because of my clock implementation which don't use dayOfWeek
so I didn't care about it
I will fix it asap and send new version
bye

Raymond Mentjens 7 years ago
Esp8266_NtpToDcf77:224: error: 'weekday' was not declared in this scope
In fact I am such a newb in this matter. Can you please make a more comprehensive 'howto'

Jan Bron 7 years ago
Please help,
Arduino: 1.6.9 (Windows 10), Board:"Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Jan\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Jan\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Jan\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:generic:CpuFrequency=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=512K0,led=2,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10609 -build-path "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Jan\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Jan\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Jan\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:generic:CpuFrequency=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=512K0,led=2,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10609 -build-path "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Program Files (x86)\Arduino\libraries\Time-master\DateStrings.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Program Files (x86)\Arduino\libraries\Time-master\Time.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFi.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFiAP.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFiMulti.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\ESP8266WiFiScan.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClient.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiServer.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiServerSecure.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiUdp.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker\Ticker.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "nul"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/lwip2/include" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10609 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_GENERIC" -DLED_BUILTIN=2 -DESP8266 "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" "-IC:\Program Files (x86)\Arduino\libraries\Time-master" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src" "-IC:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker" "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp" -o "C:\Users\Jan\AppData\Local\Temp\buildd52b483073b012fc672316ce5503da39.tmp\sketch\Esp8266_NtpToDcf77.ino.cpp.o"
C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino: In function 'void setup()':
Esp8266_NtpToDcf77:113: error: 'DcfOut' was not declared in this scope
DcfOutTimer.attach_ms(100, DcfOut);
^
Esp8266_NtpToDcf77:130: error: 'ConnectToWiFi' was not declared in this scope
ConnectToWiFi();
^
C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino: In function 'void loop()':
Esp8266_NtpToDcf77:137: error: 'ReadAndDecodeTime' was not declared in this scope
ReadAndDecodeTime();
^
Esp8266_NtpToDcf77:139: error: 'ConnectToWiFi' was not declared in this scope
ConnectToWiFi();
^
C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino: In function 'void ReadAndDecodeTime()':
Esp8266_NtpToDcf77:184: error: 'sendNTPpacket' was not declared in this scope
sendNTPpacket(timeServerIP); // send an NTP packet to a time server
^
Esp8266_NtpToDcf77:291: error: 'CalculateArray' was not declared in this scope
CalculateArray(FirstMinutePulseBegin);
^
C:\Users\Jan\Documents\Hobby\Elektronica\Luxe LED Klok\Esp8266_NtpToDcf77\Esp8266_NtpToDcf77.ino: In function 'void CalculateArray(int)':
Esp8266_NtpToDcf77:356: error: 'Bin2Bcd' was not declared in this scope
TmpIn = Bin2Bcd(ThisMinute);
^
Bibliotheek Time-master op versie 1.5 in map: C:\Program Files (x86)\Arduino\libraries\Time-master wordt gebruikt
Bibliotheek ESP8266WiFi op versie 1.0 in map: C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi wordt gebruikt
Bibliotheek Ticker op versie 1.0 in map: C:\Users\Jan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Ticker wordt gebruikt
exit status 1
'DcfOut' was not declared in this scope

Alexander gam19 Grigorev 7 years ago

Alexander gam19 Grigorev 7 years ago

fuso 7 years ago
example: re-connect the original dcf77 clock source anche check the signal carefully with an oscilloscope
then switch to the esp8266 and notice every difference in clock signal... duty cycle of pulses and so on
if there are some pulse length difference you can adjust it modifying the source code (for this reason I LOVE open source projects)
check also with the original clock source after how long the clock display is sincronized after a cold start
some clocks may require a long train of pulses before time validation...
in my software only two minutes of pulses are emitted
maybe you need to modify the source code to enlarge it and send ... 3 or even 5 minutes of consecutive pulses.
bye
PS sorry for the delay of the answer...

Alexander gam19 Grigorev 7 years ago

fuso 7 years ago
const char* ntpServerName = "0.it.pool.ntp.org";
and exchange the 0.it.pool.ntp.org with your preferred/nearest server
an example follow with a server from your link:
const char* ntpServerName = "ntp2.stratum2.ru";
test it carefully because in my experience some servers don't work reliably in the long term (sometimes not reachable)
to find your nearest server (nearest in the network, not geographycally) try to ping some from your list and chose the one with the shortest response time
bye

Markus Mazanec 8 years ago
Great project!
I tried to apply this module to my Oregon clock.
I disconnected the internal DCF77 antenna and connected the DCF77 OUT instead.
Obviously that didn't work. Where should it be connected instead?
Thank you for any help!
Best regards
Markus

Markus Mazanec 8 years ago
Thank you for your support!

ClemensValens 8 years ago

fuso 8 years ago
if yes ... maybe it decode dcf77 clock
try to search tracks from the chip connected to the antenna.. the chip is the radio receiver
and sometimes it is a separate pcb with a few connections only ... power and output signal
one track should go to the main processor
check it with an oscilloscope
you should normally see 100/200 ms pulses every second
this is the signal you have to simulate with the esp8266
the signal polarity is also important
check it with an oscilloscope and eventually use a TUN transistor to invert it

ClemensValens 8 years ago
But, you mention Oregon clock. Does it handle DCF77? As far as I know the datastreams are not the same at all. Or did you change the software?
Regards,
Clemens

chabro 9 years ago
I tried to compile 'Esp8266_NtpToDcf77.ino'
With Arduino IDE 1.6.6
I got these error messages:
Has anyone suggestions for me.
Sorry for my bad english!
Wolfgang

Volker Römer 8 years ago
thanks for your help.
Indeed, there was only the missing Line " #include <TimeLib.h> " the reason for the "compiling trouble".
Now it works fine and I'm going to build a small pcb with the ESP-Modul and the power-supply.
Again thanks for your help.
rgds Volker

ClemensValens 8 years ago
#include <TimeLib.h>
below the line #include <Time.h>
I also encountered a prototyping problem for functions that are declared after setup and loop. To solve this just add prototypes for these functions just before the first function implementation (setup in this case). This is an old Arduino IDE problem. Sometimes it works, sometimes it doesn't.
void ConnettiWifi(void);
void LeggiEdecodificaTempo(void);
void CalcolaArray(int ArrayOffset);
unsigned long sendNTPpacket(IPAddress& address);
void DcfOut(void);
int Bin2Bcd(int dato);
Tested with Arduino 1.6.7 and esp8266 2.3.0
Compiling with all warnings on reveals many issues with the esp8266 package, mainly unused parameters, but also some problems with the sketch:
lines 345 & 347 are probably incorrect ('==' should be '='?)
line 429, function sendNTPpacket should return something
Hope this helps.

Volker Römer 8 years ago
I have nearly the same problem as Wolfgang.
I think, i´ve tried everything, but it doens´t work.
I use the Arduino version 1.6.9
Her you can see the .log file.
May you have an idea?
Thanks for your help.
Rgds Volker

fuso 9 years ago

fuso 9 years ago

chabro 9 years ago
I tried to compile 'Esp8266_NtpToDcf77.ino'
With Arduino IDE 1.6.6
I got these error messages:
Has anyone suggestions for me.
Sorry for my bad english!
Wolfgang
Updates from the author
fuso 7 years ago
I added it as a separate download
simply uncompress it and drop the resulted Time folder under the library folder of your sketchbook documents folder.
I ask sorry to everyone for my mistake !