Repository navigation
Develop - AI advice card and air quality (AQI) card - #26
Open
HmnDev-Tech wants to merge 7 commits into
Open
HmnDev-Tech wants to merge 7 commits into
HmnDev-Tech wants to merge 7 commits into
Conversation
DevelopDevelop - more weather units, lowe sdk, improve rain and particle visuals, adjsut effect intensity, improve app startup, improve location, custom icons and more
Develop - Widgets, Screensaver, full screen mode, Compatibility mode and more
Develop - new settings UI, remove accurate location, onboarding, accuweather, build flavors, play billing
Develop - Island SDK and remote rendering
Develop - timeline mode, ui fixes, landscape ui, yandex weather, moon phases, past hour weather data fix, improved effects, fixed screesaver heaviors and more
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new cards to the main weather screen plus a settings section to configure them. No build or CI changes — purely feature code.
AI advice card (What to wear today)
gemini-3.5-flash-litevia the Google AI Studio API (generativelanguage.googleapis.com), chosen for low latency and low cost at small request volumes.generateContentendpoint, free-key link in settings./chat/completions, custom model + base URL.Air quality (AQI) card
Both cards are added to the portrait layout and the wide/two-pane (tablet/foldable) layout.
Files changed
weather/ai/AiProviders.kt,weather/ai/AiAdvisor.kt— provider registry and Gemini / OpenAI-compatible client (HTTP via the existingProviderHttp).weather/aqi/AqiRepository.kt— Open-Meteo air quality fetch + category mapping.ui/features/weather/AiAdviceCard.kt,ui/features/weather/AqiCard.kt— the two new cards.ui/features/weather/AiSettingsUI.kt— new settings section, mounted inSettingsActivity.ui/features/weather/WeatherDetailSheet.kt— cards inserted in both layouts.data/repository/SettingsRepository.kt— AI provider / model / base URL / key storage (SharedPreferences, same pattern as weather keys).res/values/strings.xml— new strings.Testing
./gradlew assembleGithubDebugsucceeds on JDK 21 / Android SDK 37.1; all new Kotlin code compiles.assembleGithubRelease(minified build).Notes for maintainers
values/strings.xml; happy to add translations if there is a localization flow.