Git Product home page Git Product logo

Comments (1)

fratsloos avatar fratsloos commented on May 26, 2024 1

I like the idea of a map, in fact it was one of my first wishes for showing the results within HA. But it is not so easy to use a map based on the data from the JSON. See the documentation.

With regard to loading the map that can be found on your Dump1090 frontend: that is not possible either. The frontend of Dump1090 contains a lot of code that is needed to show the map and the list. Loading all this code into Home Assistant does not seem desirable to me. And using just a part (the map) of that page is also not possible, because it is dependent on each other. You'll have to stick to an iframe card loading the Dump1090 front-end if you want to use that map in HA.

I am thinking about using a static maps API in the popup. This could then replace the image of Planespotters, or it could be at the bottom of the popup.

With a static maps API a static image is generated (like any other image on the internet), so the plane will not move over the map like in the Dump1090 frontend. Also there are no map controls. The best known is the Google Maps Static API, but it does have some drawbacks:

  • No free API, although for small consumption the free tier is probably enough;
  • The map looks different from the standard map in HA.

A quick search for a static maps API based on OpenStreetMap also yields some results: https://wiki.openstreetmap.org/wiki/Static_map_images. I have to dig further into this.

I am also open to proposals for a different implementation. In that case, leave a comment, preferably with code examples and/or documentation.

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.