View Single Post
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#167
Originally Posted by Whoopi View Post
oh, how dumb i was... okay, i removed the comment and now it works! thank you!
maybe an improvement: according to the gps-icon in the status area, your script continuously access the gps-receiver. could you please modify it, so that it turns gps off, while waiting for the next update?
I made a quick modification to the script which switches to true GPS position (the way I want it, cell tower is 100% useless to me), plus adds a "--once" command line option.

That way, I can call alarmed to call the script every 10 minutes addomg the "--once" option, et voila.... also, it requires the config file latitude.dat to be in /home/user/latitude/ (probably not a very unix-y place to put it) which you must create first by manually running it once and going through the authorization.

After that, you can put it into Alarmed w. eg. a cron string "*/10 * * * *" or somesuch.

/Z
Attached Files
File Type: zip zaps-latitude-updater.zip (3.0 KB, 150 views)
 

The Following 3 Users Say Thank You to MasterZap For This Useful Post: