excuse me, I am designing a project which requires local time not UT and the latitude and longitude I get in the GPS module, because I live in Indonesia which has three time zones namely +7, +8 and +9. i was thinking how to include the timezone in arduino using only the longitude variable from GPS. until this end I have a solution but only in outline, for example I divide the longitude of a place by 15 and it will produce a number that is correct but not completely correct, because time zones are not only measured in a straight line but sometimes also consider area boundaries. like my question above is there a solution that can solve my problem, maybe like a library or something else.
I understand your problem, but, since time zones are a political creation, not a physical thing, they can be changed at any time. Some locations have a summer and a winter time with an hour difference, some places in the world have only 1/2 hour difference.
I think the only solution is to have a human enter the correct local time.
Good luck.
Paul
@sagise, your topic has been moved to a more suitable location on the forum. Introductory Tutorials is for tutorials that e.g. you write, not for questions. Feel free to write a tutorial once you have solved your problem ![]()
Try a Google search on;
'Arduino GeoFence'
I have no experience of even trying to setup a GeoFence, but I have heard it implemented on balloon trackers to define regions of the World for applying legal and transmission frequency limits.
Probably for experienced programmers only ..................
A little bit of searching reveals that APIs exist that will take lat long and return timezone. Google has one that you have to pay for. Timezonedb has one too. I expect that there are others.
I haven't used either of these.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.