@@ -0,0 +1,576 @@
+import gps%0A%0A# Listen on port 2947 (gpsd) of localhost%0Asession = gps.gps(%22localhost%22, %222947%22)%0Asession.stream(gps.WATCH_ENABLE %7C gps.WATCH_NEWSTYLE)%0A%0Awhile True:%0A    try:%0A    %09report = session.next()%0A%09%09# Wait for a 'TPV' report and display the current time%0A%09%09# To see all report data, uncomment the line below%0A%09%09# print report%0A        if report%5B'class'%5D == 'TPV':%0A            if hasattr(report, 'time'):%0A                print report.time%0A    except KeyError:%0A%09%09pass%0A    except KeyboardInterrupt:%0A%09%09quit()%0A    except StopIteration:%0A%09%09session = None%0A%09%09print %22GPSD has terminated%22%0A

Create gps.py