jython - get garmin gps coordinates into javascript variable -


i remove marker , create new marker in openlayers (javascript). can this, trick want place new marker @ current lat/lon position reported garmin etrex gps receiver. can new position receiver using gpsbabel , can in python using subprocess. way can think data javascript variable using string substitution in python cgi script. problem way fresh data gps receiver refresh page, causes map go away short time, current zoom level lost, , isn't clean way of doing this. i'm looking ideas of how can coordinates gps javascript variable.

would jython work, getting coordinates python script javascript? i'm not familiar it, reading did today seemed suggest require operating on port 8080, not ideal since use python cgi script. maybe still possible.

i've looked api's, garmin's offerings seemed tied website , quite overkill if want current coordinates.

i looked @ gpsd, had trouble basic communication , further unable find anyway communicate daemon through tcp port 2947 javascript.

i using gentoo linux.

thanks, john

set timer in client(using settimeout javascript function) update marker location every 10 seconds or so. should use ajax last location server(which running python code or that).


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -