Very nice project I am going to copy your project for my bedside table, very handy, so thank you very much for your time and effort and sharing your code, Bob in the UK
Thanks for your video I made it, and it worked very well it now sits by my bedside table, I just got to set up the alarm function, but do wish it was a bit larger the display is so small, thanks Bob @@maisonupstore
Very nice project by chance can you assist me with changing the UTC to central standard time i believe it is -6 I did try but no joy. Respectfully Kerry
I follow the recommendation, so my case is equal like you (using GMT-6), the line code change for this one: timeClient.setTimeOffset(-21600); //ofset -6 x 3600, and after 1 min is sync
If you want to set a time zone that is 2 hours ahead of UTC, you'll need to adjust the UTC offset accordingly in the code. Since you're ahead of UTC, you subtract the offset. 2 hours would be equivalent to 7200 seconds (2 * 3600 seconds). Here's the line of code with the UTC offset adjusted for a time zone that is 2 hours ahead of UTC: Replace the existing line: timeClient.setTimeOffset(19800); // UTC offset in seconds (19800 seconds = UTC+5:30) with timeClient.setTimeOffset(-7200); // UTC offset in seconds (2 hours ahead of UTC) Feel free to reach out for further questions..
Fantastic code, thaks a lot for sharing, maybe in the near future you can weather also, but at this moment is a great job from yours, mery christmas @@maisonupstore
Very nice project I am going to copy your project for my bedside table, very handy, so thank you very much for your time and effort and sharing your code, Bob in the UK
Glad it was helpful!
Thanks for your video I made it, and it worked very well it now sits by my bedside table,
I just got to set up the alarm function, but do wish it was a bit larger the display is so small, thanks Bob @@maisonupstore
Very nice project by chance can you assist me with changing the UTC to central standard time i believe it is -6 I did try but no joy. Respectfully Kerry
I follow the recommendation, so my case is equal like you (using GMT-6), the line code change for this one: timeClient.setTimeOffset(-21600); //ofset -6 x 3600, and after 1 min is sync
Glad we could help :)
Hi thanks for the great tutorial
i have delay of 2 hours ahead.
can i change somthing to get the Exact time.
thanks
If you want to set a time zone that is 2 hours ahead of UTC, you'll need to adjust the UTC offset accordingly in the code. Since you're ahead of UTC, you subtract the offset. 2 hours would be equivalent to 7200 seconds (2 * 3600 seconds). Here's the line of code with the UTC offset adjusted for a time zone that is 2 hours ahead of UTC:
Replace the existing line:
timeClient.setTimeOffset(19800); // UTC offset in seconds (19800 seconds = UTC+5:30) with timeClient.setTimeOffset(-7200); // UTC offset in seconds (2 hours ahead of UTC)
Feel free to reach out for further questions..
Fantastic code, thaks a lot for sharing, maybe in the near future you can weather also, but at this moment is a great job from yours, mery christmas @@maisonupstore