Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charakamihiranga/weatherapp

This Weather App is built using React Native and Expo, utilizing the OpenWeather API and Unsplash API to provide users with current weather conditions, detailed forecasts for the next few hours, and additional information about cities, including population, sunrise, and sunset times.
https://github.com/charakamihiranga/weatherapp

expo open-weather-api react-native unplash-api

Last synced: about 1 month ago
JSON representation

This Weather App is built using React Native and Expo, utilizing the OpenWeather API and Unsplash API to provide users with current weather conditions, detailed forecasts for the next few hours, and additional information about cities, including population, sunrise, and sunset times.

Awesome Lists containing this project

README

        

# Weather App using React native

## Description
This Weather App is built using React Native and Expo, utilizing the OpenWeather API and Unsplash API to provide users with current weather conditions, detailed forecasts for the next few hours, and additional information about cities, including population, sunrise, and sunset times.

## Features
- **Current Weather:** Displays current weather conditions including temperature, humidity, wind speed, and description.
- **Hourly Forecast:** Provides detailed weather forecasts for the upcoming hours.
- **City Information:** Allows users to search for current city details such as population, sunrise, and sunset times.
- **Background Images:** Enhances user experience with dynamic background images fetched from Unsplash API based on weather conditions.

## APIs Used
- **OpenWeather API:** Used for retrieving weather data.
- **Unsplash API:** Provides high-quality images based on weather conditions to enhance visual appeal.

## Technologies Used
- **Expo:** Framework for building React Native applications with easy setup and development.
- **JavaScript/TypeScript:** Language used for development.
- **RESTful APIs:** Integration with external APIs for data retrieval.

## Installation
To run the Weather App locally:

1. Clone this repository:
https://github.com/CharakaMihiranga/WeatherApp.git

2. Obtain API keys for OpenWeather API and Unsplash API.

3. Create a `.env` file in the root directory and add your API keys:
OPENWEATHER_API_KEY=your_openweather_api_key
UNSPLASH_ACCESS_KEY=your_unsplash_access_key

4. Start the app using Expo CLI: 'npm start'

5. Use the Expo client app to open the project on your simulator or device.

## Screenshots

![Screenshot 2024-06-27 133217](https://github.com/CharakaMihiranga/WeatherApp/assets/143955766/25eb572b-7c01-443f-a1ec-8e798a638950)

![Screenshot 2024-06-27 133139](https://github.com/CharakaMihiranga/WeatherApp/assets/143955766/0431816c-76d0-4268-b760-4b915b89d64e)

![Screenshot 2024-06-27 133234](https://github.com/CharakaMihiranga/WeatherApp/assets/143955766/ede52866-2e2e-40cd-a14f-c8f3298a7815)