Step into a smarter way to plan your day with WeatherWise.ai. This app connects to the OpenWeather API to provide current weather data tailored to your location. It integrates with OpenAI's ChatGPT for personalized activity suggestions and attire recommendations, ensuring you're perfectly prepared, no matter the weather.
Click Here š
E2E testing:
š Weather Data: Get real-time weather data based on your geolocation, ensuring you're always aware of what's outside.
š¤ ChatGPT Integration: Receive tailored activity suggestions and dressing advice etc. from ChatGPT, customized to the current weather conditions.
š Global Reach: Whether you're in your hometown or traveling abroad, WeatherWise.ai delivers accurate weather forecasts wherever you are.
š Responsive Design: Enjoy a seamless experience on any device, thanks to a responsive interface powered by Tailwindcss and Vite.
š Dynamic Updates: Weather data is constantly refreshed to provide the most current information, powered by TanStack Query (React Query) for efficient data management.
š± User-Friendly Interface: Navigate easily through a clean, modern UI that makes weather checking intuitive and quick.
š«ļø Air Quality Index: Monitor air quality and the presence of harmful pollutants in the air.
š 5-Day Forecast: Plan ahead with a detailed 5-day weather forecast.
š Theme Switch: Choose between dark or light mode of UI. By default the app will switch to the preferences set up by your system or your browsers settings.
WeatherWise.ai leverages the power of OpenAI's ChatGPT to provide personalized suggestions. The integration is managed through custom endpoints and webhooks configured in Make.com, ensuring seamless communication and data processing.
The application fetches real-time weather data from the OpenWeatherMap API. Based on the user's geolocation or browser coordinates, it provides accurate and up-to-date weather information.
In addition to weather data, WeatherWise.ai includes an air quality index feature. This provides users with information about the levels of various pollutants, helping them make informed decisions about outdoor activities. This data is also fetched from OpenWeatherMap API.
WeatherWise.ai reads your system or browser theme preferences and adapts to it. In every moment you can switch between dark and light mode by using dedicated intuitive button placed in the header section (just right to main logo of the app).
Clone the Repository:
git clone https://github.com/traczoskar/ai_weather_app.git
cd ai_weather_app
Install Dependencies:
npm install
Set Up Webhook with Make.com
Set Up Environment Variables:
.env
file in the root directory.VITE_API_KEY=your_api_key
VITE_MAKE_API_URL=your_webhook_url
Run the Application:
npm start
To run E2E tests use the command below:
npx cypress open
To integrate OpenAI responses using Make.com, follow these steps to create a webhook:
Log in to Make.com: Go to Make.com and log in to your account.
Create a New Scenario:
Configure the Webhook:
Integrate with OpenAI:
Test the Webhook:
I'd love to hear your thoughts and suggestions! Feel free to open an issue or submit a pull request.