caiusseverus / adsbcompare Goto Github PK
View Code? Open in Web Editor NEWTools to plot and compare data gathered with graphs1090
Tools to plot and compare data gathered with graphs1090
me@SomeServer:~$ ./polar.sh 5 1
Using config file
mkdir: cannot create directory ‘/tmp/polar.5rq1GW’: File exists
TMPDIR: /tmp/polar.5rq1GW
mkdir: cannot create directory ‘/tmp/polar.HWTtMD’: File exists
HWTDIR: /tmp/polar.HWTtMD
HWT OK
ADS-B aircraft only will be plotted
Using tmpfs : /tmp/polar.5rq1GW
Gathering data every 1 seconds until Sat Sep 14 23:29:42 PDT 2019
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
jq: error (at /run/dump1090-mutability/aircraft.json:8): Cannot iterate over null (null)
^C
Any ideas as to what is happening? Running on Debian (server, not Raspbian).
Everytime I run polar.sh I get an error code for line 40. I have been using dump1090-mutability and all plots work except, heatmap_high, azimuth/elevation plot, range/altitude, and close range/altitude. Please advise. Code below from terminal.
ADS-B and MLAT aircraft will be plotted
Using disk : /home/pi/directory
Using local archive:
Unpacking compressed data:
...
Retrieving recent history:
......................................................................................................................................................
Number of data points collected: 20865
Calculating Range, Azimuth and Elevation data:
Filtering altitudes
Generating all altitudes heatmap...
Generating high altitude heatmap...
"/dev/stdin" line 40: warning: Skipping data file with no valid points
Generating low altitude heatmap...
Generating close range heatmap
Generating elevation heatmap...
Generating Range/Altitude plot...
Generating Close Range altitude plot
Generating low heatmap with map overlay
Graphs available at :
http://raspberrypi/dump1090-mutability/plots/
Graphs rendered in 56 seconds
The following terminal error will appear if the monthplot.py script is ran on a headless device (e.g accessing a pi over ssh with no X Server running)
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
(monthplot.py:316): Gdk-CRITICAL **: 14:22:56.567: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(monthplot.py:316): Gdk-CRITICAL **: 14:22:56.572: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
A working fix to remove this is to add some logic on the import statements
import os, io, subprocess
import pandas as pd
import csv, time
if os.environ.get('DISPLAY') is None: # this variable will not be set when X Server is not running
import matplotlib as mplib
# set a different display back-end to squash the error
mplib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
the rest of the file is unmodified
Setups that don't use the timelapse
feature of tar1090 can't use compare.sh
(as I understand it).
However, presumably the right data is being collected by polar.sh
- could compare.sh
be modified to accept two (bonus: or more) polarheatmap-YYYY-MM-DD
files with which to perform the comparisons?
Hi!
I have a suggestion for an improvement:
With the altitudes.sh heatmap, have output with the map overlay and range - same as the last png from the polar.sh output but instead of signal strength colour, it has altitude colour.
I've been trying to create this myself and making a mess of it without a successful output yet, otherwise I would have given the example here.
Regards,
Cathal.
Outline on how to do it:
sudo mkdir -p /usr/local/share/adsbcompare
create file /etc/lighttpd/conf-available/87-adsbcompare.conf
with the following contents
#lighttpd configuration for adsbcompare
# redirect the slash-less URL
url.redirect += (
"^/adsbcompare$" => "/adsbcompare/"
)
alias.url += (
"/adsbcompare/" => "/usr/local/share/adsbcompare",
)
sudo lighttpd-enable-mod adsbcompare
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.