Git Product home page Git Product logo

Comments (3)

fratsloos avatar fratsloos commented on June 6, 2024

I'm not sure yet how to implement it, but I'm thinking about something like this for the config:

type: custom:fr24-card
entity: sensor.fr24_aircraft
filter:
    type: or # and, or
    rules:
        - distance: <10
        - altitude: >=5

This will work with both options for units configuration parameter (default and metric) and can be applied after the units are converted (if metric is used).

The syntax for the rules should support the operators >, <, >=, <= and =. It should work on columns that have a number as their value. But not all; based on the above syntax, filtering on track would not be of any value. Therefore I am thinking of supporting the following columns in the filter: altitude, distance, speed.

Maybe in the future also a filter on columns with a text value. For example country.

from fr24_card.

robsymax avatar robsymax commented on June 6, 2024

I've been looking for a solution to logging aircraft noise and being able to count aircraft within a set distance and below a set height would be great. It could also be refined further by aircraft type, speed/acceleration/etc. Is this possible?

from fr24_card.

fratsloos avatar fratsloos commented on June 6, 2024

@robsymax I think that's beyond the scope of this card. This card is for showing the current tracked aircrafts. It won't store any data. Theoretically this is possible by calling HA's API and updating an entity, but I won't develop that. You can always fork this repo and open a PR if you have developed such functionality.

from fr24_card.

Related Issues (20)

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.