Skip to content

fusing xcsoar and google earth together

License

Notifications You must be signed in to change notification settings

maluethi/earth2nmea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A little script to fuse google earth pro (desktop edition) and xcsoar together.

demot_image

Experimental Installation and Usage

  1. The script has no external dependencies, it was written for python3.*
  2. Make the cgi script executable:
    $ chmod +x cgi-bin/out_pos.py
  3. Start a simple http server using python with cgi enabled, do this in the project base directory.
    $ python -m http.server --cgi 8000
  4. Add the link.kml to your google earth pro and activate it. Now you should see output on the http server:
    127.0.0.1 - - [01/Apr/2020 17:49:52] "GET /cgi-bin/out_pos.py?CAMERA=7.479937580087384,46.32363475209464,7252.86;VIEW=17.813,-0.893 HTTP/1.1" 200 - 
  5. Configure a new device on XCsoar. It should listen on localhost (0.0.0.0) for UDP packets on port 10110, select FLARM as a driver.
  6. Enjoy the views!

* Optionally you can setup the python environment using the requirements.txt or totally by yourself. In this case you have to be careful about which python interpreter is used in the cgi script. You might want to adapt the first line of the script (i.e. #!/bin/$PATH_TO_PYTHON/python)

Debuging & Issues

  • If the http server dies, google earth pauses accessing the cgi-script. After you bring your server up again you have to manually tell google earth to send data again by refreshing the "Network Link" (right click on the element in the places tab)

About

fusing xcsoar and google earth together

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages