NTP to GPS for Icetube clock using any ESP8266 or ESP32

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
BaltasarParreira
 
Posts: 4
Joined: Tue Oct 03, 2023 7:11 pm

NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by BaltasarParreira »

Hi everyone !!!
I'm very happy with my Icetube clock using the xmas-icetube firmware and latest PCB revision, but since I lack of having a GPS board and don´t want to spend some extra on it I thought... hey... I have a lot of ESP8266 boards lying around... so I though of this MOD.

And "Voila" all working and tuned up in a couple of days and now I have my clock also always synchronized from the internet using NTP. ; )

To anyone that is interested on doing this also you can read all about it on the GitHub page from johngarchie/xmas-icetube (it includes the ESP code and wiring):
https://github.com/johngarchie/xmas-icetube/issues/12

Also here some proof of all working:
https://youtu.be/ZumIusNLJv8?si=yX12cu-R2DiWpaGJ
Last edited by BaltasarParreira on Tue Oct 03, 2023 7:54 pm, edited 2 times in total.

User avatar
adafruit_support_bill
 
Posts: 88800
Joined: Sat Feb 07, 2009 10:11 am

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by adafruit_support_bill »

Nice work! Thanks for the video.

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by jarchie »

Beautiful work! It's wonderful to see people still enjoying this project, so thank you for posting.

I'm not really using the issue tracking feature for GitHub--xmas is pretty much a finished project at this point. So, I'll leave your linked issue open in case any other xmas users would like to try your mod.

Take care and good luck with all your future projects.

User avatar
BaltasarParreira
 
Posts: 4
Joined: Tue Oct 03, 2023 7:11 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by BaltasarParreira »

Thanks @adafruit_support_bill for your words and special thank you @jarchie for yours too and the amazing firmware revision you did for the Icetube clock, I'm really enjoy and loving it.

Future updates for this NTP mod will be available here at my GitHub:
https://github.com/BaltasarParreira/Icetube_Clock_NTP

Thinking in adding a webserver page with all the information that the IPGeolocation returns so we can see it and also some sort of OTA firmware update so like this no need to connect the USB cable to upload new versions as they can be sent by Wifi. ; )

@jarchie What do you think also about some way to combine this with your firmware so will have auto adjust on the DST and Region instead using the menu on the clock?
I have that information on the ESP code if I want and can send it on some special faked GPS message that you can decode when found so to be used just for this.
Them like the "Setup Time" and "Setup Date" that disappears from the clock menu when GPS/this mod is connected the DST/Region menu could also disappear when this mod is hooked up.

; )

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by jarchie »

BaltasarParreira wrote: Thu Oct 05, 2023 6:16 pm [...]and special thank you @jarchie for yours too and the amazing firmware revision you did for the Icetube clock, I'm really enjoy and loving it.
Thank you for the kind words!

BaltasarParreira wrote: Thu Oct 05, 2023 6:16 pm Future updates for this NTP mod will be available here at my GitHub:
https://github.com/BaltasarParreira/Icetube_Clock_NTP
Looks great! Thank you for posting the link.

BaltasarParreira wrote: Thu Oct 05, 2023 6:16 pm @jarchie What do you think also about some way to combine this with your firmware so will have auto adjust on the DST and Region instead using the menu on the clock?
For me, this firmware is a finished project, and I don't really have time to implement or test new features. But the project is open source, so you are welcome to fork and modify it however you like.

The main code is in icetube.c, which is worth reading to understand how everything is organized. The GPS code is in gps.c. Parsing is done character-by-character in the ISR(USART_RX_vect) interrupt, and time is set upon a successful parse in the gps_settime() function. The menus are implemented via finite state machine in mode.c; clock states are updated in the mode_semitick(void) function--in case you'd like to alter the menu structure.

Hope that helps with understanding the code base and determining if this would be a project you would like to undertake.

Best wishes.

User avatar
BaltasarParreira
 
Posts: 4
Joined: Tue Oct 03, 2023 7:11 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by BaltasarParreira »

Updated to version 2.0

- Now with webpage showing all IP Geolocation information and also preparing for soon having auto Region/DST for Icetube Clock so no need to adjust Region and DST on the clock menu itself.
- OTA Firmware webpage for uploading new <file>.bin versions easier without the need to connect USB cable on "http://<ESP IP>/update".
- IP Geolocation information and future auto Region/DST on/off on "http://<ESP IP>/setup".

Check here:
https://github.com/BaltasarParreira/Icetube_Clock_NTP

NOTE: Auto Region/DST is not function yet as the Icetube Clock firmware needs changes to accept this !!!

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by jarchie »

Awesome! I will look forward to seeing your future work.

User avatar
BaltasarParreira
 
Posts: 4
Joined: Tue Oct 03, 2023 7:11 pm

Re: NTP to GPS for Icetube clock using any ESP8266 or ESP32

Post by BaltasarParreira »

Updated to version v2.1

- abstractapi.com key can now be written on setup webpage (http://<ESP IP>/setup) so it's stored on ESP FS.
- Some commented old code cleanup.
- Some other improvements.

https://github.com/BaltasarParreira/Icetube_Clock_NTP

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”