Skip to content
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

Retrieve DST and time Zone into sketch #35

Closed
bill-orange opened this issue Nov 21, 2017 · 2 comments
Closed

Retrieve DST and time Zone into sketch #35

bill-orange opened this issue Nov 21, 2017 · 2 comments

Comments

@bill-orange
Copy link

Is there a simple way to retrieve the Time Zone and DST flag into my sketch? I could use a user data field but then the user would be entering the same information twice,

@species5618
Copy link
Collaborator

the NTP client is global.
so its public methods are available

try Serial.print(NTP.getTimeZone());

@bill-orange
Copy link
Author

bill-orange commented Nov 21, 2017

Yup, works like a charm. My sketch plots actual temp along with the Wunderground forecast. using your excellent library, I can give one to a couple of friends without having to compile using their individual credentials and location info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants