Skip to content

Google Location Services & Weather Conditions for Mission Control#2592

Open
GenCodeInc wants to merge 7 commits intoiNavFlight:maintenance-9.xfrom
GenCodeInc:feature/geolocation-button
Open

Google Location Services & Weather Conditions for Mission Control#2592
GenCodeInc wants to merge 7 commits intoiNavFlight:maintenance-9.xfrom
GenCodeInc:feature/geolocation-button

Conversation

@GenCodeInc
Copy link

Adds Google API integration to Mission Control for map centering and weather conditions when no drone is connected.

Auto-center on load — Probes Google Geolocation API on tab open, centers map on approximate location with info banner
Dual-purpose center button — Centers on drone GPS when connected, falls back to Google API position when not
Conditions panel — New sidebar panel showing wind, gusts, temperature, humidity, UV, precipitation, visibility, cloud cover from Google Weather API. Color-coded wind/UV values.
Unit-aware — Respects app unit preference (imperial/metric) for all weather data
Auto-refresh on GPS lock — Weather re-fetches with precise drone coords when GPS fix acquired
Address lookup fix — Now asks "Move to this location?" with OK/Cancel instead of moving immediately
Options UI — API key input, Test button (validates both Geolocation + Weather APIs), Help popup with setup instructions

Add Google API Key Option
image

Get help and info on what it does
image

See info in mission control, moves to googles rough location and you can see the weather info on the left
image

Fix to address search, currently it will move to location even if you press the "x" this is now fixed and added a yes/no
image

GenCodeInc added 4 commits March 14, 2026 21:37
- Add geolocate control (crosshair button) to bottom-right of OL map
- Calls Google Geolocation API directly using user-provided API key
- Add Google API Key field to Application Options under GPS Options
- Key stored locally via electron-store (never committed)
- Auto-adjusts zoom based on accuracy (14/12/10)
- Available in both connected and offline modes
@GenCodeInc
Copy link
Author

@b14ckyy can you see if this helps using wifi, I'm using the Google API, it should at least get to the same city.

@b14ckyy b14ckyy added the Enhancement Enhancement of existing functions label Mar 15, 2026
@b14ckyy
Copy link
Collaborator

b14ckyy commented Mar 15, 2026

Cool, I will give it a shot when I have time.

@GenCodeInc
Copy link
Author

Cool, I will give it a shot when I have time.

No rush, if they add the api key they get weather too, wind speed and all for helping mission planning before heading to the field. If drone is attached and locked gps, it will use that over any of the api keys. Let me know if you have any issues with adding the api key.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Enhancement of existing functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants