-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggestion: update time #213
Comments
In the meantime, I added some very basic date/time code for anyone interested. Create parameters:
In wifi setup:
Include this header: Download my header from date_time. This goes in your main setup()
And finally, call these two lines to update and print the time:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v3 now has date/time parameters, looks good, but they don't update.
I was thinking, could timeParam.value()/dateParam.value() in the background add elapsed time to the initial stored date/time? Not saved in SPIFFS of course, just calculated and returned when requested.
Of course, the user will have to fix the starting date/time on any power reset, but it does simplify tracking elapsed time for the user.
In wifi mode one could just take the time from an online server, but this won't work in AP mode.
The text was updated successfully, but these errors were encountered: