raspberry-pi-timelapse-camera
raspberry-pi-timelapse-camera copied to clipboard
RTC
Hi! I saw your article on HN and you indicated that you had trouble with keeping real time. If you have a GPS signal then you have real time. Time is part of the GPS signal.
Please see https://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/api_references/Lib_DataTime.gsp
As long as LinkIt ONE is powered (either by USB or by battery) the clock will continue to tick. In the case of losing power or first time booting, there are several ways to initialize current time: Parse the GPGGA data from GPS.getData() or connect to an NTP (Network Time Protocol) server via Wi-Fi.
I hope that helps! I don't have any equipment to test with, or I would have tried to add it to your project code.