logo elektroda
logo elektroda
X
logo elektroda

ESP 12 - how do I start the clock and update the time over the internet?

globalinfo 5370 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16292688
    globalinfo
    Level 13  
    Welcome,

    I'm just starting out with the ESP 12 and I'm wondering if it's possible to run a timer on the ESP and check it from time to time over the internet.
    I'm mainly concerned with getting a timer control with an accuracy of 10 seconds.
  • ADVERTISEMENT
  • #2 16293251
    nolens_volens
    Level 15  
    No problems at all, probably under any of the available programming languages.
    I have it configured under arduino - it works both as a standalone ESP8266 option
    (the most cost-optimal hardware option), as well as a timing source for the AVR chip
    - here I have modified the arduino software on the ESP to emulate the AT communication implemented in the software on the AVR.
    Of course it can provide time from NTP for solutions on other uCs.
    Lua on ESP also worked well for me for time retrieval, but I prefer arduino,
    which, by the way, I only use on ESP modules.
    There are hundreds of ready-made examples on the web, and even a ready-made library for arduino (C/Cpp).

    For example, a very polished example:


  • ADVERTISEMENT
  • #3 16293783
    globalinfo
    Level 13  
    This link doesn't seem to work .
  • ADVERTISEMENT
  • #4 16294795
    nolens_volens
    Level 15  
    It works for me both from work and from home.
  • #5 16303631
    globalinfo
    Level 13  
    I installed this example
    https://github.com/amiravni/ESP8266-Water-Heater-Control
    and something is not working for me
    ESP 12 - how do I start the clock and update the time over the internet? .
    I have set up the database - not really sure what to do next.

    There is also a problem on the ESP side.
    I don't know what data should be in the .txt file.
    ESP 12 - how do I start the clock and update the time over the internet? .

    Maybe someone has already tested this example? - great request for help.
ADVERTISEMENT