blob: 1afa5406038a1e1e6d3d9b5b65ec55ba596984b9 [file] [log] [blame]
Joe Gregorio0eec3082011-03-07 08:25:17 -05001This is an example program that can run as a power
2management hook to set the timezone on the computer
3based on the user's location, as determined by Google
4Latitude. To use this application you will need Google
5Latitude running on a mobile device.
6
Joe Gregorio9d56b5a2012-03-30 09:21:26 -04007api: latitude
8keywords: cmdline
9
Joe Gregorio0eec3082011-03-07 08:25:17 -050010Installation
11============
12 The google-api-python-client library will need to
13be installed.
14
15$ sudo python setup.py install
16
17Then you will need to install the tznever application:
18
19$ sudo cp tznever /usr/sbin/tznever
20
21And then add it in as a power management hook:
22
23$ sudo ln -s /usr/sbin/tznever /etc/pm/sleep.d/45tznever
24
25Once that is done you need to run tznever once from the
26the command line to tie it to your Latitude account:
27
28$ sudo tznever
29
30After that, every time your laptop resumes it will
31check you Latitude location and set the timezone
32accordingly.
33
34TODO
35====
361. What about stale Latitude data?