Log in

No account? Create an account
More python stuff - Nick [entries|archive|friends|userinfo]

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

More python stuff [Feb. 5th, 2006|03:27 pm]
Firstly, I've put out a new version of nmea_info.py, which handles invalid locations (where there's no GPS fix) better.

Secondly, I have written log_location.py. This waits until it has a valid GPS fix from enough satellites (or you override), then opens up a web browser to a specified location (including the lat and long as URL parameters). This lets you upload your location to some tracking software, fire off a moblog post with your location attached, or any number of other things. Do let me know of cool uses :)

For that, I needed to be able to open the web browser. It seems that webbrowser.py didn't exist for series 60, so I had to give in and write my own. This version of webbrowser.py will find the nokia "services" browser, or opera, and load a URL in them in the usual way.

From: ext_1108
2006-02-06 02:47 pm (UTC)

OpenGuides searching

How about this? http://oxford.openguides.org/wiki/supersearch.cgi?latlong_dist=100&latitude=51.760115&longitude=-1.259844



(Reply) (Thread)
From: gagravarr
2006-02-06 02:50 pm (UTC)

Re: OpenGuides searching

Ah, this is where you want all of openguides to know what area the different guides cover.

Then you could request a URL on openguides.org, which would decide which openguide covered that area, and redirected you to their search for that area

(That way, you wouldn't have to make it Oxford specific, it could work anywhere)
(Reply) (Parent) (Thread)
From: ext_1108
2006-02-06 02:56 pm (UTC)

Re: OpenGuides searching

Yupyup. There are plans in the pipeline for this. http://openguides.org/mail/openguides-dev/2005-December/001150.html although no ticket or code yet...
(Reply) (Parent) (Thread)