Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit file to change google map API key in dump1090 #38

Closed
fllay opened this issue Dec 20, 2018 · 4 comments
Closed

edit file to change google map API key in dump1090 #38

fllay opened this issue Dec 20, 2018 · 4 comments

Comments

@fllay
Copy link

fllay commented Dec 20, 2018

I can edit a file to change the API key but I cannot save it. It will go back to the original value after reboot. Any option to change to key?

@unixpunk
Copy link
Owner

Not currently, I would have to add that functionality. I would rather someone help convert it over to a more open map system that doesn't require an API key that isn't even provided for free to 'just anyone' anymore... #33 - Wanna help with that effort instead? :)

@LamaBleu
Copy link

Hi, I tried to cross compile the dump1090 version from @Mictronics two months ago.
No luck so far. I can't get the json file, and interactive mode is not working on console.
For more details have a look here : https://github.com/Mictronics/dump1090/issues/7
However I suspect my environment (Ubuntu 16.04 LTS) ... and compilation should work on a more decent computer.
But I also realized the Mictronics version take too much space for the Pluto firmware flash.

So I restarted from scratch, using the original and light version, proven to work on pluto : https://github.com/PlutoSDR/dump1090

I was able to get dump1090 working, and get the aircraft json files. I replaced the googlemaps by OL3, was able to pinpoint my location on the map, and display the aircraft.json file on the screen. So far is not so bad.
TODO :

  • display aircrafts from the json file on the map (have to create a new layer).
  • display aircraft list
  • implement autorefresh.
    Please see my actual result as attachment.
    I share the gmap.html file if someone is interested to work on this. Sorry but I don't have spare time at this moment for this even if it's really interesting :) And totally it's out of my skills ;)

dump1090-pluto
ol3.zip

@unixpunk
Copy link
Owner

unixpunk commented Jan 5, 2019

Thanks, @LamaBleu ! I'll take a look. I'm hoping to have time today to rebuild my xilinx stuff on this new system so I can start making changes again. Guess we should probably update to 0.29 as well. (more xilinx fun)

@unixpunk
Copy link
Owner

unixpunk commented Jan 5, 2019

@fllay I can probably make the process easier for now. You can use the Run Command feature in the Settings screen of PlutoWeb and modify the file on the fly replacing your api key in there: sed -i 's/AIzaSyAqbCJY-G6y-KFYMOUAna0sJH_0z6QmW9s/YOUR-API-KEY-HERE/' /dump1090/public_html/gmap.html Then when you browse to the dump1090 port it should use the new key, maybe need to refresh browser at most. HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants