| 1 |
* GPS widget |
| 2 |
This widget allows you to display position information from your |
| 3 |
GPS-receiver. It also can display the position on openstreetmap and |
| 4 |
perform reverse geocoding through geonames.org |
| 5 |
|
| 6 |
** Available settings |
| 7 |
- set_browser: Sets the path to the www-browser. If no browser is |
| 8 |
set the default is /usr/bin/uzbl |
| 9 |
- set_device: Sets the GPS device ie. /dev/rfcomm0 if you have a |
| 10 |
bluetooth GPS receiver. Default is /dev/rfcomm0 |
| 11 |
|
| 12 |
|
| 13 |
** Usage |
| 14 |
Include the following line into your rc.lua : |
| 15 |
|
| 16 |
```lua |
| 17 |
local gps = require("obvious.gps") |
| 18 |
```lua |
| 19 |
|
| 20 |
Then set the device and the browser: |
| 21 |
|
| 22 |
```lua |
| 23 |
gps.set_device("/dev/rfcomm0") |
| 24 |
gps.set_browser("/usr/bin/uzbl") |
| 25 |
``` |
| 26 |
|
| 27 |
And add it to your wibox's widgets list: |
| 28 |
|
| 29 |
```lua |
| 30 |
gps() |
| 31 |
``` |
| 32 |
|
| 33 |
Christian Kuka [[email protected]] |