unixpunk / PlutoWeb

PlutoWeb
73 stars 19 forks source link

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

Closed fllay closed 5 years ago

fllay commented 5 years ago

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 commented 5 years ago

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... https://github.com/unixpunk/PlutoWeb/issues/33 - Wanna help with that effort instead? :)

LamaBleu commented 5 years ago

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 :

dump1090-pluto ol3.zip

unixpunk commented 5 years ago

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 commented 5 years ago

@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