NTPClient
Connect to a NTP server (by arduino-libraries)
ESPDateTime
Date Time Functions and Classes for ESP8266 and ESP32 (by mcxiaoke)
NTPClient | ESPDateTime | |
---|---|---|
6 | 1 | |
524 | 47 | |
2.5% | - | |
5.1 | 0.0 | |
22 days ago | about 3 years ago | |
C++ | C | |
- | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NTPClient
Posts with mentions or reviews of NTPClient.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-28.
-
ESP8266 NTP/RTC Clock with temp
I believe this is the ntp lib I'm currently using... https://github.com/arduino-libraries/NTPClient
-
How do you get time; is there a good library ;
Normally you sync the clock one or two times per day from the NTP server. Then you calculate the time from the time passed since last sync. If you are using the arduino ecosystem you can use this library. Otherwise you have to implement the NTP client and a timer based on interrupts.
-
Two databases in IOT solution
I used This ntp library to insert accurate datetime for my recent ESP32 project. Super easy API, with support for each time zone. Not realistic if you already have a large program overhead.
-
How do you get time; is there a good library?
By "NTP", you mean you used this library? Did you call the update() function in the loop()?
-
https://np.reddit.com/r/esp8266/comments/piwwzp/fauxmo_esp8266_possibility_to_send_commands_over/hbspbpj/
#include #include /* for time server: https://github.com/arduino-libraries/NTPClient */ #include /* for alexa */ #include /* for OTA */ #include /* for OTA and timeserver */ #include /* for OTA */ #include /* for Alexa: https://github.com/me-no-dev/ESPAsyncWebServer*/ #include "fauxmoESP.h" /* for alexa */ #include "credentials.h" /* Has the config for the wifi */ #include /* for the debug output via sockets: https://github.com/Links2004/arduinoWebSockets */ fauxmoESP fauxmo; AsyncWebServer server(80); WebSocketsServer webSocket = WebSocketsServer(81); //ws debugger will run on port 81
-
How to setup a Real Time Clock over the internet that can be used by esp?
You can use the NTP library with the time library from Paul Stoffregen.
ESPDateTime
Posts with mentions or reviews of ESPDateTime.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-14.
-
How do you get time; is there a good library?
ESPDateTime -Github is the easiest one I have found.
What are some alternatives?
When comparing NTPClient and ESPDateTime you can also consider the following projects:
ESPAsyncWebServer - Async Web Server for ESP8266 and ESP32
Time - Time library for Arduino
arduinoWebSockets - arduinoWebSockets
TimescaleDB - An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.