Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfrax committed Jun 6, 2017
1 parent 28754e7 commit 21e1a84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Add these lines
Finally

$ sudo cp ../rtl-sdr.rules /etc/udev/rules.d/
$ pip install pyrtlsdr
$ sudo shutdown -r 0


Expand Down Expand Up @@ -127,7 +128,7 @@ Use nginx as proxy server with the following added to the nginx conf file
}

location @spots {
proxy_pass https://rpi2.local:8080;
proxy_pass https://rpi3.local:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -136,10 +137,20 @@ Use nginx as proxy server with the following added to the nginx conf file
}

So, nginx will forward any http requests to spots (e.g. `https://www.viltstigen.se/spots`) to
`https://rpi2.local:8080` (spots runs on rpi2-node).
`https://rpi3.local:8080` (spots runs on rpi3-node). Restart nginx to capture updates through

$ sudo /etc/init.d/nginx restart
$ /etc/init.d/nginx status

Flask is running using Gunicorn, listening on port 8080, see `emitter.py` and `spots_emitter.conf` for details.
Use `supervisor` to control processes running as daemons.

$ sudo ln -s /home/pi/app/spots/spots_emitter.conf /etc/supervisor/conf.d/spots_emitter.conf
$ sudo ln -s /home/pi/app/spots/radar.conf /etc/supervisor/conf.d/radar.conf
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl status

The flask application communicates with the radar application (that listen on port 5051) through a simple text
protocol, see files `emitter.py` and `server.py`

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
license='GPL',
author='Mats Melander',
author_email='[email protected]',
description='A decoder for ADS-B messages on extended squitter at 1090MHz', requires=['numpy', 'flask']
description='A decoder for ADS-B messages on extended squitter at 1090MHz', requires=['flask']
)
2 changes: 1 addition & 1 deletion spots.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Plotter() {
},
yAxis: {
min: 0,
max: 100,
max: 400,
title: {
text: 'Preamble/sec'
}
Expand Down

0 comments on commit 21e1a84

Please sign in to comment.