View Single Post
Posts: 89 | Thanked: 52 times | Joined on Jan 2010 @ London, UK
#237
Great app! Thanks so much for all the huge efforts developing and talking on here to us about it and debugging issues despite it only starting as a personal project. I started an app ages ago and got it basically usable before I lost the code for the latest version and then gave up..

I've been hunting for something like the Duke-Nukem-Forever-esque-in-delays (except that's now out, damnit) Shepherd that was in development to do locationy stuff and doing something when I'm at a place, so I'm wondering how easy it is to repurpose this to make it do something different instead of updating location-services. Queen Beecon now has location stuff but the docs don't make it easy and nothing else really matches it. I prefer the features this has to the latitude script that updates on cell-towers. Maybe I could strip unused parts out of the daemon and rewrite a UI (prob. in Gtk, or I'd learn Qt).


Excuse the long and aggregated-comments post, but having just read the whole thread...

Originally Posted by MasterZap View Post
It's suprisingly hard (unless there is a bleeding obvious method I am unaware of) to figure out what *debian level* packages are dependencies on a python app... :/
/Z
You figured this out? I know there are ways using other tools/apps for the purpose. You probably haven't added any libs for a while to test this with.

Again, the whole code is backwards compared ot what it needs to be for cell tower anyway, GPS continously feeds coordinates, and never stop until I tell it, so I can simply measure time until X time has past and stuff like that. For cell, it only sends data if it changed. Having the "on-changed" callback as the root of my code is the root of the problem.
Did you fix this? Wasn't sure from the posts between then and now - I think you could probably set a timer callback somehow or use the signal stuff to receive a SIGALRM with the appropriate system call (which there must be a python equivalent of). Or better ways..

Do you still exec a "ps" and grep/awk it? Do we have pgrep on maemo? (aha.. yes we do, answered my own Q!) That might be simpler if so (not sure how much detail you need). Simpler/less work for the system. Google for the man page/usage.