Word Clock setting wifi

Hello,

i found this code for a word clock but i am not sure how to set up the wifi to be using my own network.

The code exceeds the 9000 charaters alowed so i can not paste it here. It is attached as a ino file.

In the serial command i see the following message"

12:53:16.336 -> *WM: AutoConnect
12:53:16.336 -> *WM: Connecting as wifi client...
12:54:09.280 -> *WM: Status:
12:54:09.280 -> *WM: 6
12:54:09.280 -> *WM: Using last saved values, should be faster
12:54:12.248 -> *WM: Connection result: 
12:54:12.248 -> *WM: 3
12:54:12.248 -> *WM: IP Address:
12:54:12.248 -> *WM: 1---------
12:54:12.248 -> Connected!
12:54:12.248 -> IP address: 1----------
12:54:12.248 -> Starting UDP
12:54:20.861 -> Transmit NTP Request
12:54:20.861 -> nl.pool.ntp.org: 109.201.133.100
12:54:20.896 -> Receive NTP Response
12:54:20.896 -> *WM: freeing allocated params!
12:54:20.896 -> 8, 65
12:54:21.001 -> 9, 65
12:54:21.140 -> 8, 65

it keeps putting out the same numbers despite time passing. So i dont think it is working?
any input would be appreciated.

woord_clock_3.ino (18 KB)

In your code the time is updated here (line 269):

  time_t t = now();

If you add this just after this line, does it display the time and date?

  Serial.print(hour());
  Serial.print(" : ");
  Serial.print(minute());
  Serial.print(" : ");
  Serial.print(second());
  Serial.print(" ");
  Serial.print(day());
  Serial.print(".");
  Serial.print(month());
  Serial.print(".");
  Serial.println(year());

I think what you get on the monitor is the output from these lines (232-234), which have no connexion with time:

  Serial.print(analogRead(LDR_PIN));
  Serial.print(", ");
  Serial.println(lastBrightness);

But I believe that your leds should be changing with time?

i added the code and the output is now showing time.

14:02:12.433 -> nl.pool.ntp.org: 37.97.195.195
14:02:12.468 -> Receive NTP Response
14:02:12.468 -> *WM: freeing allocated params!
14:02:12.468 -> 8, 65
14:02:12.571 -> 14 : 2 : 21 24.2.2020
14:02:12.571 -> 9, 65
14:02:12.710 -> 14 : 2 : 21 24.2.2020
14:02:12.710 -> 8, 65
14:02:12.814 -> 14 : 2 : 21 24.2.2020
14:02:12.814 -> 8, 65
14:02:12.914 -> 14 : 2 : 21 24.2.2020
14:02:12.914 -> 9, 65
14:02:13.018 -> 14 : 2 : 21 24.2.2020

ah so those 2 numbers are the LDR, that would make sense indeed. Is there not a way to disable the ldr function?

-edit, the led Do change now

Just comment this line out:

#define LDR_BRIGHTNESS

and the 3 lines below

 Serial.print(analogRead(LDR_PIN));
 Serial.print(", ");
 Serial.println(lastBrightness);

Thank you for your help Lesept!
I'ts very much apprectiated :slight_smile: