Giter Site home page Giter Site logo

fr24_card's People

Contributors

admiralstipe avatar alexstephenlytton avatar fratsloos avatar jesmak avatar jonostanck 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

Watchers

 avatar  avatar  avatar  avatar  avatar

fr24_card's Issues

Make photo optional

Describe the solution you'd like
Add a config variable to disable the photo of the aircraft in the popup.

[Feature Request] Dont include nulls option

Capture

Option to not include blank entries?

I have a top 10 furthest aircraft card, but the aircraft that have no distance recorded are included, would it be possible to have a configuration to toggle if these should be included or not.

v1.0.0-alpha Built-in Pop-up missing Close button

I just installed the new 1.0.0-alpha version. It is a nice improvement!

One bug/problem that I noticed is when I use the built-in pop-up window, I'm not seeing a "X" button to close it. Maybe it is something with my card_mod setup???

Here's my card config:

type: custom:fr24-card
entity: sensor.msp_piaware_flights
providers:
  adsbexchange: false
  flightaware: true
  flightradar24: true
  opensky_network: true
  plane_finder: false
columns:
  - flag
  - registration
  - flight
  - icon
  - altitude
  - speed
  - distance
hide:
  empty:
    - distance
    - altitude
  ground_vehicles: true
popup: true
zone: zone.home
sort: distance

Minor 'bug' in English text

I noticed these recently and thought I would bring them to your attention.

In en.json, this part,

    "data": {
      "not_available": "N/A",
      "none": "No aircrafts detected!",
      "undefined": "The configurated entity doesn't contain data!"
    }

should be

    "data": {
      "not_available": "N/A",
      "none": "No aircraft detected!",
      "undefined": "The configured entity doesn't contain data!"
    }

Aircraft is one of the many silly exceptions in English and the plural is the same as the singular.

I checked the rest of the en.json file and apart from the above, it is all ok.

Adding a column for Aircraft Type?

Hi! First off - great card, really appreciate the work you have put in :)

I use the aircraft.json output of the tar1090 docker container, which has an option for outputting the aircraft type (B737, A320 etc) as well.
I wonder if you would be willing to add the option into your card, to include the Aircraft type column if available?

Allow to filter by squawk

Is your feature request related to a problem? Please describe.
Ability to filter the list based on a specific squawk code - I would like to use it in conjunction with an alert that lets me know when planes squawk 7001 near me. These are normally military entering the low fly zone.

Describe the solution you'd like
Add another config entry to the card to allow filtering by squawk code.

Describe alternatives you've considered
Tried creating a second sensor and filtering but the end result isn't parse able by the FR24 card.

Additional context
Add any other context or screenshots about the feature request here.

[Feature Request] Limit table rows

Excellent Card I already had my FR24 feeder stats going into HA using the monitor.json but this is a fantastic addition to my Aircraft Dash

I use the combination of sorted by distance from home so the closest is at the top, but it'd be great if i could limit to a specified value, then i could use multiple cards for Top 10 closest, Top 10 highest etc

Altitude and Speed not reported in card

Describe the bug
Card not reporting Speed / Altitude

To Reproduce
Steps to reproduce the behavior:

  1. Set up HA, 1090 and other assorted services
  2. Validate that 1090 shows speed/altitude data in GUI
  3. Verify that JSON output contains what appears to be altitude and speed data:
{"hex":"a52c35","type":"adsb_icao","flight":"N432T   ","alt_baro":1175,"alt_geom":1200,"gs":130.3,"track":194.68,"baro_rate":0,"category":"A1","nav_qnh":1016.8,"nav_altitude_mcp":1216,"lat":37.575027,"lon":-122.087675,"nic":8,"rc":186,"seen_pos":50.829,"r_dst":4.994,"r_dir":276.8,"version":0,"nic_baro":1,"nac_p":10,"nac_v":2,"sil":3,"sil_type":"unknown","alert":0,"spi":0,"mlat":[],"tisb":[],"messages":12,"seen":50.6,"rssi":-31.8},

A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
Tar1090
Home Assistant

Environment (please complete the following information):

  • Home Assistant version: 2022.6.6

Additional context
Add any other context about the problem here.

Disable link to provider when required data is not available

Describe the bug
When the aircraft has no flight number, the click to eg. Flightradar24 does not work because the null value is added in the link. The card should disable the external links if (some of) the data to construct the link is not available.

Expected behavior
When (some of) the data is not available the click handler should ignore the click.

Environment:

  • Home Assistant version: 2023.12.0
  • Card: 1.0.0-alpha

Split documentation in multiple files

Is your feature request related to a problem? Please describe.
The readme is a long document, which does not necessarily improve clarity. It seems better to divide the documentation into multiple files.

Describe the solution you'd like
Adjust the current readme to a short document with a description of the app and the short installation steps. Other documentation can then be placed in a subfolder with its own page for each subject.

Enhance the Empty filter for Distance to filter "Unknown" aka "NaN" values

For some of the flights in my list, the location is apparently "Unknown" or "NaN" in HA terms. The fr24_card calculation for Distance can't calculate it since the location is unknown, so it carries over to the Distance value as "NaN" also.

I would like to NOT display those flights with an unknown distance. I tried using the
hide: empty: - distance
configuration, but apparently since the Distance field has something in it (the "NaN"), they aren't filtered.

Icon color based on altitude

Is your feature request related to a problem? Please describe.
The colors of the Icons based on the hex Code is very confusing and gives no information.

Describe the solution you'd like
Add an Option to change the color of the Icons based on the altitude for example. Same color the addon is using.

Describe alternatives you've considered

Additional context

e is undefined

Describe the bug
The frontend sometimes shows
billede

To Reproduce
Steps to reproduce the behavior:

  1. Simply add the card to a tab
  2. Set up the card with a few standard settings

Expected behavior
Sometimes it works as expected, and shows the list of planes, other times it just shows that odd message

Screenshots
Firefox
billede
Chrome
billede

Environment (please complete the following information):

  • Home Assistant version: 2022.08.06
  • Browser or app, including version: Firefox 103.0.2 (64 bit) / Chrome 104.0.5112.101

Additional context
FR24: Linux/generic/static_armel/1.0.29-10
Raspberry Pi 3b+

Configuration

type: custom:fr24-card
entity: sensor.fr24_aircraft
title: Fly over os
units_in_table: true
units: metric
larger_units: true

If possible, also supply the JSON of aircraft.json.


{ "now" : 1661157367.0,
  "messages" : 266121,
  "aircraft" : [
    {"hex":"4ca66f","squawk":"6513","altitude":5625,"vert_rate":1984,"track":151,"speed":312,"mlat":[],"tisb":[],"messages":17,"seen":49.9,"rssi":-34.1},
    {"hex":"4aca50","squawk":"3755","flight":"NOZ3QJ  ","lat":55.662140,"lon":12.952714,"nucp":7,"seen_pos":0.1,"altitude":36000,"vert_rate":0,"track":346,"speed":486,"category":"A3","mlat":[],"tisb":[],"messages":1441,"seen":0.1,"rssi":-28.7},
    {"hex":"471f7e","mlat":[],"tisb":[],"messages":2,"seen":142.8,"rssi":-41.5},
    {"hex":"45cab6","mlat":[],"tisb":[],"messages":29,"seen":194.1,"rssi":-34.6},
    {"hex":"3c66e2","squawk":"6454","flight":"DLH7AE  ","lat":55.941696,"lon":13.009560,"nucp":7,"seen_pos":2.9,"altitude":36975,"vert_rate":0,"track":357,"speed":464,"category":"A3","mlat":[],"tisb":[],"messages":2774,"seen":0.1,"rssi":-33.3},
    {"hex":"501d20","mlat":[],"tisb":[],"messages":5,"seen":201.9,"rssi":-37.5},
    {"hex":"471f80","mlat":[],"tisb":[],"messages":134,"seen":165.0,"rssi":-35.5},
    {"hex":"4596c1","squawk":"7000","altitude":1175,"mlat":[],"tisb":[],"messages":42,"seen":9.4,"rssi":-34.5},
    {"hex":"345084","squawk":"0751","flight":"VLG1507 ","lat":55.133194,"lon":12.168005,"nucp":7,"seen_pos":22.0,"altitude":22750,"vert_rate":1984,"track":220,"speed":374,"mlat":[],"tisb":[],"messages":369,"seen":10.7,"rssi":-34.5}
  ]
}

Ground Vehicles switch

G'day,

I was thinking that a filter on ground-based detections might be a good idea.
There are a few that I pick up that crawl around on the ground here and there (must be test vehicles/transmitters) and I'd love to get rid of them on my listing. Perhaps a "ground_vehicles: false" kind of thing perhaps?
Or perhaps work it into an altitude filter if one is going to be implemented.

Just a thought!

Cheers!

Origin/Destination airport codes

Firstly, love the card. So simple but just works.

I don't know where you are getting the data from but does it include the origin and destination airport codes? It would be nice to have a column with that information, e.g. LHR-JFK.

Map in Popup

Hi, excellent card, I was wondering would it optionally be possible to also display map centred on the radar in the popup?

Though I'm not sure if it's possible to "cut" out just the map without the planes list, as when I go to http://[my fr24 ip]/dump1090/ I see both, which makes it fairly crowded with the limited screen estate on phone.

Filter (e.g., distance < X, altitude < Y)

It would be very useful if we could add filters to the aircraft displayed. E.g., I'd like to only show planes within 10 NM, under 10k altitude.

I'm not sure what the best syntax would be; there is an existing hide: empty option, but I'm not sure what the cleanest way to be would be represent the filters that need a value, and whether it should default to and or or (and how to specify the opposite behavior), which is one reason I'm not submitting a PR. (the other two are poor JS skills and extreme laziness!)

Add elevation angle above the horizon to columns

Hello, nice card! congratulations and thanks for your efforts. It would be nice if it is possible to add another column, which shows elevation angle (angle between horizon and aircraft) for a given aircraft. I often wonder how high (low) above the horizon is the arcraft and making trig on the fly is a bit difficult.

Regards,
Alexey

Config of popup should be an object

This is a weird one...
The card will not display and shows and error complaining about the Config of popup should be an object.

Screenshot 2024-01-15 at 1 57 14 am

No matter what I set popup to, either true or false, the error remains.
Now, if I remove the entire popup: true line, then the card displays properly.

The only thing I did recently was to add the card-mod entry to my configuration.yaml as I wanted more features as a front-end module rather than just as a lovelace resource.

# Front End/Theme Definitions
frontend:
  themes: !include_dir_merge_named themes
  extra_module_url:
    - /hacsfiles/hass-hue-icons/hass-hue-icons.js
    - /local/community/custom-brand-icons/custom-brand-icons.js
    - /local/plugins/card-mod.js
    - /local/community/lovelace-card-mod/card-mod.js. <-------------------- ADDED THIS LINE

However, upon removing the line and putting it back to how it was, the problem is not solved so perhaps I'm barking up the wrong tree and it's just a coincidence and nothing to do with that change?!?!?!?!?!

Any thoughts?

Configurable table head colors (both background and text)

In my theme the text in the head of the table is not clearly visible due to theme color selection.

If possible, make the table head background color and table head text color configurable in the card settings instead of adopting the main theme color scheme.

Tried to achieve that with `card_mod: ' option, but didn't succeed.

Width of popup exeeds window size on Android app

Describe the bug
Popup width is bigger than width of screen on Android app.

To Reproduce
Steps to reproduce the behavior:

  1. Add card to dashboard
  2. Open dashboard in Android app
  3. Click on a row to open the popup

Expected behavior
Popup should stay inside the window.

Screenshots
Screenshot_20231218-190753

Environment (please complete the following information):

  • Home Assistant version: 2023.12.3
  • Companion app: 2023.10.2-full

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.