MaxWinterstein / homeassistant-addons

GNU General Public License v3.0
131 stars 38 forks source link

ADS-B Multi-Portal Feeder feature req #105

Open robsymax opened 2 years ago

robsymax commented 2 years ago

It would be great to be able to limit the aircraft displayed to those within a set distance to the receiver for the purpose of gauging rough aircraft noise and generate stats. Is this easy to implement?

MaxWinterstein commented 2 years ago

well, I guess there are multiple ways mplementing this.

Easiest might be to simply restrict the range at dump1090 itself.

root@f1c878cb-adsb-multi-portal-feeder:/# ./usr/lib/fr24/dump1090 --help | grep max-range
--max-range <distance>   Absolute maximum range for position decoding (in NM)

is this what you need?

robsymax commented 2 years ago

So I am trying to tabulate aircraft within a certain range in HA - for noise. Ideally a distance to aircraft from the antenna co-ords. So a particular aircraft noise profile/aircraft type can be checked against distance and logged. Even just the additional entities in HA would be great.

MaxWinterstein commented 2 years ago

I understand, so like

AC DISTANCE
D-AING 20

I guess some way could be to fetch the aircraft.json and parse it around. I am not sure if it contains the distance. The default dump1090 way might not, the readsb part of adbsexchange might do.

https://github.com/Thom-x/docker-fr24feed-piaware-dump1090/blob/ad34d6f1ecc4c0926e7ecf1d66ab009eaa0d9ebc/root/etc/s6-overlay/s6-rc.d/adsbexchange-feed/run

https://github.com/wiedehopf/readsb/blob/dev/README-json.md

This might help, but just a few thoughts out of the train with no access to my infrastructure.

Maybe the HomeAssistant community can bring some thoughts to this too, try to ask there? https://community.home-assistant.io/t/home-assistant-add-on-ads-b-multi-portal-feeder-flightradar24-and-flightaware/345563

robsymax commented 2 years ago

Thanks Max

This looks like what I am trying to achieve -> https://github.com/kx1t/docker-planefence

Not sure if this is compatible along side yours?

cheers Max.

incarvr6 commented 1 year ago

Is there any chance to integrate remote tar1090 similar as dump1090? Currently i have tar1090 running on different RP4 sitting on same network as HA, would be great to pull some stats like aircraft with tracks to HA and create sensor.