fratsloos / fr24_card Goto Github PK
View Code? Open in Web Editor NEWLovelace card for showing Dump1090 data from FR24 in Home Assistant
Lovelace card for showing Dump1090 data from FR24 in Home Assistant
I imagine this is related to the update to browser_mod (https://github.com/thomasloven/hass-browser_mod) as I just had to edit all my personal popups but, as a result the popup in your card no longer works.
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
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 the bug
Popup width is bigger than width of screen on Android app.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Popup should stay inside the window.
Environment (please complete the following information):
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?
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.
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.
Describe the solution you'd like
Add a config variable to disable the photo of the aircraft in the popup.
Describe the bug
The frontend sometimes shows
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sometimes it works as expected, and shows the list of planes, other times it just shows that odd message
Environment (please complete the following information):
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}
]
}
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!)
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.
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.
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
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!
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.
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:
UPDATE: Interestingly, it works in a browser but not in the Home Assistant companion for Mac.
iOS seems ok too.
As of the new version of HA, the card displays;
var(--primary-color)
var(--app-header-text-color)
var(--secondary-background-color)
All the rest is blank.
This is a weird one...
The card will not display and shows and error complaining about the Config of popup should be an object.
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?
To help sort multiple instances of the same card with different sort criteria, an option to add a title
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.
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
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.
Describe the bug
Card not reporting Speed / Altitude
To Reproduce
Steps to reproduce the behavior:
{"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.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
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.