FlightRadar24 as an Add-On?

Ok, but why?

All the data is reachable with flightradar24 app/web !?

Why need of USB SDR?

Well, this add-on was created specifically for people who actually do run a local setup with their own antenna.

Maybe what you are looking for is more something like the OpenSky Network integration?

Thx @exxamalte !! But I tried that Opensky before, but I dont think you can get “info” from departure and arrival with that.

Only IF there are a plane above.

OK, I see. If that’s an important feature, then I believe there is currently no integration that can do that for you.

As mentioned this Flightradar24 integration is just using the data that a local installation has and that is really just whatever the airplane itself transmits via ADS-B, and does not include departure or arrival times.

Hi…
Just installed this add on and trying to connect it to my rpi running pi24 (Flight Radar 24 rpi image).
However, having a hard time to read from my pi to my HA addon.
The rpi24 is running and tracking is good…

What values do I have to change in order to let the add-on read from the rpi?

Which add-on? This one: Home Assistant Add-on: ADS-B Multi-Portal Feeder (Flightradar24 and FlightAware) ?

Are there any error messages? If you could share your configuration for this add-on then maybe someone who is using that add-on could help.

Typical me…
Installed the “ADS-B Multi-Portal Feeder” add-on, and I see that there are a lot of HOST/REMOTE settings.

I would like to keep my RPI on the attic and read the ADS-B dongle from the add on… I this possible?
If it is, what do I need the enter in the settings to remotely connect to my RPI?

Suspecting that i’ve to make some settings in the RPI dump1090 ?
The addon is complaining about “Refused to connect to…”

I’m using a variation of what @exxamalte had posted.

It took a bit for me to get it working at the time, but once I added the info towards the top of my configuration.yaml file, it’s been working great.

# ADS-B System / Flightradar 24

homeassistant:
  customize:
    sensor.fr24_feeder:
      hidden: true
    sensor.fr24_feeder_aircraft_tracked:
      icon: mdi:airplane
    sensor.fr24_feeder_aircraft_uploaded:
      icon: mdi:airplane
    sensor.fr24_feeder_radar_code:
      icon: mdi:radar

binary_sensor:
  - platform: template
    sensors:
      fr24_feeder_receiver_connected:
        friendly_name: Receiver Connected
        value_template: '{{ is_state_attr("sensor.fr24_feeder", "rx_connected", "1") }}'
        device_class: connectivity
      fr24_feeder_link_connected:
        friendly_name: Link Connected
        value_template: '{{ is_state_attr("sensor.fr24_feeder", "feed_status", "connected") }}'
        device_class: connectivity

sensor:
  - platform: rest
    name: FR24 Feeder
    resource: http://YOURFEEDERIPADDRESS:8754/monitor.json
    value_template: '{{ value_json.feed_alias }}'
    method: GET
    scan_interval: 60
    json_attributes:
      - rx_connected
      - feed_status
      - d11_map_size
      - feed_num_ac_tracked
      - build_version
      - feed_alias
      - feed_num_ac_adsb_tracked
      - feed_num_ac_non_adsb_tracked
      - mlat-ok
      - mlat-number-seen
  - platform: template
    sensors:
      fr24_feeder_radar_code:
        friendly_name: Radar Code
        value_template: '{{ states.sensor.fr24_feeder.attributes["feed_alias"] }}'
      fr24_feeder_aircraft_tracked:
        friendly_name: Aircraft Tracked
        value_template: '{{ states.sensor.fr24_feeder.attributes["d11_map_size"] | round(0) }}'
        unit_of_measurement: 'aircraft'
      fr24_feeder_aircraft_uploaded:
        friendly_name: Total Aircraft Uploaded
        value_template: '{{ states.sensor.fr24_feeder.attributes["feed_num_ac_tracked"] | round(0) }}'
        unit_of_measurement: 'aircraft'
      fr24_feeder_version:
        friendly_name: Version
        value_template: '{{ states.sensor.fr24_feeder.attributes["build_version"] }}'
      feed_num_ac_adsb_tracked:
        friendly_name: ADSB Tracked
        value_template: '{{ states.sensor.fr24_feeder.attributes["feed_num_ac_adsb_tracked"] | round(0) }}'
        unit_of_measurement: 'aircraft'     
      feed_num_ac_non_adsb_tracked:
        friendly_name: NON-ADSB Tracked
        value_template: '{{ states.sensor.fr24_feeder.attributes["feed_num_ac_non_adsb_tracked"] | round(0) }}'
        unit_of_measurement: 'aircraft'    
      mlat_ok:
        friendly_name: MLAT Status
        value_template: '{{ states.sensor.fr24_feeder.attributes["mlat-ok"] }}'            
      mlat_number_seen:
        friendly_name: MLAT number seen
        value_template: '{{ states.sensor.fr24_feeder.attributes["mlat-number-seen"] | round(0) }}'
        unit_of_measurement: 'aircraft'
4 Likes

Here is a nice Lovelace card for monitoring your data.
image
Media used to be downloaded from the bottom of this page Press | Flightradar24 Blog.
Make sure you download the png file and copy it into the \yourhomeassistantip\config\www folder.
Code for a static pic without any action and aircraft uploaded for the last 24hours graph

type: entities
entities:
  - entity: sensor.fr24_feeder_aircraft_tracked
    icon: mdi:airplane-marker
  - entity: sensor.fr24_feeder_aircraft_uploaded
    icon: mdi:airplane-check
  - entity: binary_sensor.fr24_feeder_link_connected
  - entity: sensor.fr24_feeder_radar_code
    icon: mdi:radar
  - entity: binary_sensor.fr24_feeder_receiver_connected
  - entity: sensor.fr24_feeder_version
header:
  type: picture
  image: /local/flightradar24_logo_transparent.png
  tap_action:
    action: none
  hold_action:
    action: none
footer:
  type: graph
  entity: sensor.fr24_feeder_aircraft_uploaded
  detail: 2

This is with a clickable pic to your local Fr24 page. Remember to change your homeassistantip to your home assistant IP and Fr24 local server.

also enable color icons based on state.

type: entities
entities:
  - entity: sensor.fr24_feeder_aircraft_tracked
    icon: mdi:airplane-marker
  - entity: sensor.fr24_feeder_aircraft_uploaded
    icon: mdi:airplane-check
  - entity: binary_sensor.fr24_feeder_link_connected
  - entity: sensor.fr24_feeder_radar_code
    icon: mdi:radar
  - entity: binary_sensor.fr24_feeder_receiver_connected
  - entity: sensor.fr24_feeder_version
header:
  type: picture
  image: /local/flightradar24_logo_transparent.png
  tap_action:
    action: url
    url_path: http://yourhomeassistantip:8123xxxxxx_adsb-multi-portal-feeder/dashboard
  hold_action:
    action: none
footer:
  type: graph
  entity: sensor.fr24_feeder_aircraft_uploaded
  detail: 2
state_color: true
3 Likes

Hello,
I’ve installed @exxamalte add-on, thank you it’s really amazing! I’m asking: could it be possible to track a specific codesign (for example, I-TIKE); I would like to know when a specific aircraft is above my head. Thank you!

1 Like

Since I’ve been using HA I wanted to load my radar data into HA to show the tracked aircraft. I’ve checked this topic many times hoping there was a nice way to show the data. Based on this topic I was already able to load my aircraft.json into HA. But I wanted more.

After a while I added a markdown card that generated a table with the data based on the REST sensor. It looked okay, but I wanted more: other information such as the registration and the distance.

So a few weeks ago I started my first custom plugin for Home Assistant, and today, after being in PR for two weeks it has finally been released in HACS; my custom Flight Radar card.

fr24card

For more information check out ‘FR24 card’ in HACS or go to the repository: https://github.com/fratsloos/fr24_card

8 Likes

Fabulous, @fratsloos ! :smiley:

I wonder, if you could help me a little.
I have used your code to grab data from aircraft.json generated by tar1090, as I do not use dump1090.
Just shoot in to the wild, it will work, or it won’t.
And, it did. Almost.
I do get Registration, Flight and Track out of it, but Altitude and Speed stays empty.

So I think, tar1090 aircraft.json is formatted slightly different. Could you help me to locate the differences and modify your code to get correct info out of it?

We then could help more people, who use tar1090 :wink:

I would really appreciate your help :pray:

I don’t have tar1090 running and because of that I don’t have the JSON of the file you are trying to process. I’m willing to take a look at it, but could you supply me with the documentation of the JSON and an example of the JSON? For the example of the JSON you could copy your own file and paste it on Pastebin or Github Gist.

Thank you very much for your willingness :wink:

screenshot:

And this is, what I get already with your code unmodified :wink: :smiley:

Thanks @BebeMischa for the input. I’m a little bit limited on the time I can work on the plugin the coming period, but I take the challenge!

Love your coverage by the way. Due to my situation my coverage is limited to the South only. :frowning:

1 Like

I’m quiet limited too. On first floor in a 3 stairs flat my antenna is mounted on the front wall outside. Far from ideal :wink:

Thank you so much! :beers:

Hey, you did it! I was not expecting anything near this fast response after you said something about time limitations… :smiley:

But today after the last update, my tar1090 works well too!

Elwin, you are fabulous, and your cup of coffee is on it’s way!

:sunglasses:

Edit:

WTF, buy me coffee does not support Paypal anymore? They ask a creditcard number. I do not have a CC… hmmmmm… grrrrrrrr

1 Like

Yes, I did a release a few days ago. I thought about announcing it in this thread, but I didn’t want to spam everyone with a message like that. :wink: Especially because you automatically see the update coming in if you use HACS.
There was also an issue created in the project with the same feedback, I did post a response there.

Unfortunately no coffee, thank you anyway. :+1:

2 Likes

Awesome! Any hope for getting the similar expert treatment for the “flights.json” file that the FR24 feeder puts out? FlightRadar24 as an Add-On? - #9 by ChrisMD123

I second this suggestion :).