资 源 简 介
This is a simple windows clock synchronization using GPS module. Also it is possible to retrieve the GPS coordinate.
## Dependency ##
1. pyserial,
1. win32api
## Parameters ##
GPSModule(port, baudrate, sync_time, sync_nr)
port - the serial port number, where the GPS module is attached
baudrate
sync_time - If you would like to synchronize the Windows system clock automatically than this flag must be one, otherwise it has to be 0
sync_nr - How many time do you wan to update the system clock, it"s going together with sync_time parameter. If it"s 0 than the clock will be synchronize until the stop() function will be called.
Public variables
`self.port` `self.baudrate``self.sync_nr``self.sync_time``self.time``self.unixtimestamp``self.timezone``self.lat``self.long``self.longdir``self.latdir``self.alt``self.glong``self.glat``self.is_clock_sync`
Example usag