updating readme for WSL support

Former-commit-id: 42ae8363f4c8d96f4facb2a3db12dffff69b0644
Former-commit-id: a187a458b7a86cbd972fd4de2ffbf7a27cbdb5d3
This commit is contained in:
nathan 2020-06-08 11:49:58 -07:00
parent 07429b75c3
commit bf3e7d42d7
4 changed files with 28 additions and 11 deletions

View file

@ -1,9 +1,15 @@
#map1090
# viz1090
### BUILDING
Tested and working on Ubuntu 18.04, Raspbian Stretch, Buster
Tested and working on Ubuntu 18.04, Raspbian Stretch / Buster, Windows Subsystem for Linux (with Ubuntu 18.04)
0. Install build essentials
```
sudo apt-get install build-essentials
```
1. Install SDL and RTL-SDR libararies
```
@ -25,9 +31,17 @@ Until more comprehensive map source (e.g., Mapbox) is integrated, map1090 uses t
The getmap.sh pulls the svg file for the contiguous 48 US states and produces a binary file for map1090 to read.
```
sudo apt install python3 python3-pip
pip3 install lxml numpy
./getmap.sh
```
3. (optional for Windows)
As WSL does not have an X server built in, you will need to install a 3rd party X server, such as https://sourceforge.net/projects/vcxsrv/
When running vcxsrv Xlaunch, make sure to **uncheck "Use Native openGL"**
### RUNNING
1. Start dump1090 (http://www.github.com/MalcolmRobb/dump1090) locally in network mode:
@ -37,7 +51,7 @@ dump1090 --net
2. Run map1090
```
./view1090 --fullsceen
./view1090 --fullsceen --lat [your latitude] --lon [your longitude]
```
map1090 will open an SDL window set to the resolution of your screen.
@ -48,6 +62,9 @@ map1090 will open an SDL window set to the resolution of your screen.
--port [port number] Specify dump1090 server port. Renamed from the view1090 "--net-bo-port" argument
--metric Display metric units rather than imperial.
--lat Specify your latitude in degrees
--lon Specify your longitiude in degrees
--screensize [width] [height] Specify a specific resolution to pass to SDL_RenderSetLogicalSize, otherwise use resolution of display
--uiscale [scale] Scale up UI elements by integer amounts for high resolution screen
--fullscreen Render fullscreen rather than in a window

View file

@ -2,4 +2,4 @@
wget -O all.svg.gz https://www.mccurley.org/svg/data/allzips.svgz
gunzip all.svg.gz
python mapconverter.py all.svg
python3 mapconverter.py all.svg

View file

@ -1 +1 @@
85bf9e07a831ad5a30abf7ae4737f9c8a543f9e2
6c9ac166c74d8d6e7d80eaa3f318cc32e1c83140

View file

@ -5,7 +5,7 @@ import sys
filename = sys.argv[1]
if(len(filename) == 0):
print "No input filename given"
print("No input filename given")
exit()
parser = ElementTree.XMLParser(recover=True)