blob: ecee02349b14013a3686037c7e8065b9363f7d4a [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
7Installation
8============
9 The google-api-python-client library will need to
10be installed.
11
12$ sudo python setup.py install
13
14Then you will need to install the tznever application:
15
16$ sudo cp tznever /usr/sbin/tznever
17
18And then add it in as a power management hook:
19
20$ sudo ln -s /usr/sbin/tznever /etc/pm/sleep.d/45tznever
21
22Once that is done you need to run tznever once from the
23the command line to tie it to your Latitude account:
24
25$ sudo tznever
26
27After that, every time your laptop resumes it will
28check you Latitude location and set the timezone
29accordingly.
30
31TODO
32====
331. What about stale Latitude data?