alexellis / eyes-in-the-sky

Instructions and Dockerfiles for tracking flights with your Raspberry Pi and a USB TV stick.
9 stars 11 forks source link

Google Maps API key #3

Open PaulWebster opened 6 years ago

PaulWebster commented 6 years ago

All was working well for a month or so ... but now the map fails to load. I think that the reason is that the Google Maps interface now requires an API key. Perhaps there was a grace period before they enforce it.

Anyway - getting a key is easy enough https://developers.google.com/maps/documentation/javascript/get-api-key

I think it then needs to go into ~/dump1090/public_html/gmap.html with key=xxxxxxxxx in the call with /maps.googleapis.com/maps/api/js

Since this API key would be different for each user then I think that this should be in a configuration file that then gets into the right place during the make process.

An alternative route would be to use a different map provider. I think that work has been done in a version of dump1090 to support that.

Some guidance in the readme file might be enough because working with Docker is not always obvious.

fhibler commented 5 years ago

Fixed this in https://github.com/fhibler/eyes-in-the-sky/commit/41fa4dcb44163262a88ccce31469a8e9e214853c