{"id":30703014,"url":"https://github.com/ryanlarge13/native-weather","last_synced_at":"2025-10-25T18:06:53.725Z","repository":{"id":305507213,"uuid":"1021185300","full_name":"RyanLarge13/Native-Weather","owner":"RyanLarge13","description":"Expo Router and Open Meteo join forces","archived":false,"fork":false,"pushed_at":"2025-07-18T03:08:42.000Z","size":26305,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-31T12:41:44.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RyanLarge13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-17T03:03:02.000Z","updated_at":"2025-07-18T03:08:45.000Z","dependencies_parsed_at":"2025-07-20T14:53:04.772Z","dependency_job_id":null,"html_url":"https://github.com/RyanLarge13/Native-Weather","commit_stats":null,"previous_names":["ryanlarge13/native-weather"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RyanLarge13/Native-Weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanLarge13%2FNative-Weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanLarge13%2FNative-Weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanLarge13%2FNative-Weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanLarge13%2FNative-Weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyanLarge13","download_url":"https://codeload.github.com/RyanLarge13/Native-Weather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanLarge13%2FNative-Weather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273317763,"owners_count":25084037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T16:53:32.428Z","updated_at":"2025-10-25T18:06:48.669Z","avatar_url":"https://github.com/RyanLarge13.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌤️ Expo Weather App\n\n[![Built with Expo](https://img.shields.io/badge/built%20with-expo-1f2024.svg?logo=expo)](https://expo.dev/)\n[![React Native](https://img.shields.io/badge/framework-react--native-61dafb.svg?logo=react)](https://reactnative.dev/)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![TypeScript](https://img.shields.io/badge/language-TypeScript-blue.svg?logo=typescript)](https://www.typescriptlang.org/)\n[![SQLite](https://img.shields.io/badge/database-SQLite-lightgrey.svg?logo=sqlite)](https://www.sqlite.org/)\n[![Location API](https://img.shields.io/badge/location-enabled-success.svg)](#)\n\n---\n\n## 📚 Table of Contents\n\n- [📱 Features](#-features)\n- [🚀 Tech Stack](#-tech-stack)\n- [🧠 Architecture Overview](#-architecture-overview)\n- [📂 Project Structure Highlights](#-project-structure-highlights)\n- [🛠️ Setup \u0026 Usage](#️-setup--usage)\n- [🧪 Notes](#-notes)\n- [📸 Screenshots](#-screenshots)\n- [📝 Future Improvements](#-future-improvements)\n- [📄 License](#-license)\n\n---\n\n## 📱 Features\n\n- 📍 Auto-detects device location using permissions\n- 🏙️ Supports static city selection from `cities.json`\n- 🌦️ Shows:\n  - Current weather conditions\n  - 24-hour hourly forecast\n  - 7-day forecast\n- 🎨 Theme support (orange, blue, green)\n- 💾 SQLite-based settings storage (theme, temperature unit, accuracy)\n- 🎞 Animated transitions using Moti\n\n---\n\n## 🚀 Tech Stack\n\n- [Expo](https://expo.dev/)\n- [React Native](https://reactnative.dev/)\n- [Moti](https://moti.fyi/)\n- [expo-location](https://docs.expo.dev/versions/latest/sdk/location/)\n- [expo-sqlite](https://docs.expo.dev/versions/latest/sdk/sqlite/)\n- TypeScript\n\n---\n\n## 🧠 Architecture Overview\n\nThe app revolves around the `Index` screen which:\n\n- Initializes app state\n- Loads saved settings from SQLite\n- Requests and handles location permissions\n- Loads weather data from local dummy data or (optionally) an API\n- Renders:\n  - Current weather (`\u003cToday /\u003e`)\n  - Weather details (`\u003cTodaysInfo /\u003e`)\n  - Hourly forecast (`\u003cHourly /\u003e`)\n  - Weekly forecast (`\u003cDay /\u003e`)\n\n---\n\n## 📂 Project Structure Highlights\n\n```\n\n.\n├── assets/\n│ ├── images/icons/ # Weather icons\n│ └── cities.json # City coordinates map\n├── components/\n│ ├── Today.tsx\n│ ├── TodaysInfo.tsx\n│ ├── Hourly.tsx\n│ └── Day.tsx\n├── hooks/\n│ └── useTabAnimation.ts\n├── utils/\n│ ├── api.ts\n│ ├── dayStringMap.ts\n│ ├── weatherCodes.ts\n│ └── dummyData.ts\n└── index.tsx # Main screen logic\n\n```\n\n---\n\n## 🛠️ Setup \u0026 Usage\n\n### Prerequisites\n\n- Node.js\n- Expo CLI\n\n### Getting Started\n\n```bash\ngit clone https://github.com/yourusername/weather-app.git\ncd weather-app\nnpm install\nnpx expo start\n```\n\n- Ensure your emulator or mobile device has **location services enabled**\n- The local SQLite database (`myApp.db`) should contain a `Settings` table\n\n---\n\n## 🧪 Notes\n\n- Weather data is loaded from `utils/dummyData.ts`\n\n  \u003e You can replace `M_FetchWeather()` logic to call a real API (like OpenWeatherMap)\n\n- If location access is denied, the app falls back to manually selected cities\n\n---\n\n## 📸 Screenshots\n\n\u003e _(Add screenshots here if available)_\n\u003e For example:\n\u003e\n\u003e - ![Today Screen](./screenshots/today.png)\n\u003e - ![Weekly Forecast](./screenshots/weekly.png)\n\n---\n\n## 📝 Future Improvements\n\n- 🌐 Replace dummy data with real-time API integration\n- 🧭 Fallback handling if location services fail\n- 🛠 Add user-facing Settings screen\n- 🌍 Multi-language (i18n) support\n\n---\n\n## 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlarge13%2Fnative-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanlarge13%2Fnative-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlarge13%2Fnative-weather/lists"}