Coder Social home page Coder Social logo

adsbcompare's People

Contributors

adsb-related-code avatar caiusseverus avatar wiedehopf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adsbcompare's Issues

Null Iteration Error

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).

Polar.sh /dev/stdin issue

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

GDK Error if executing headless or running via SSH

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

Use data collected by polar.sh with compare.sh

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?

Altitudes heatmap with map overlay?

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.

Use a separate folder with its own lighttpd configuration

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.