AI Weather Poem
This project is a web application combines real-time weather data with AI. Users can search for a city, view the current weather conditions, and receive an AI generated poem that reflects the atmosphere of that location.
Tehcnologies Used
- Frontend: HTML, CSS, Vanilla JavaScript = Backend: Node.js + Express
- Weather Data: OpenWeatherMap API
- AI Model: Replicate API using IBM Granite LLM
- Deployment: Vercel
Features
- Search bar to find city location
- Display weather condition, temperature, and weather icon
- AI generated poem based on location and weather condition
Setup Instruction
- Clone repository
- Open folder and open terminal and type "npm install express cors dotenv replicate node-fetch"
- Create a .env file that will contain "REPLICATE_API_TOKEN={enter your replicate api key}" and "WEATHERSAPI_TOKEN={your openweathermap api key}"
- To start the program type "npm start" on the terminal
This project integrates AI using Replicate API. The IBM Granite LLM is prompted with the user’s chosen location, and the current weather conditions of the chosen city. Based on this context, the model generates a short, atmospheric poem that reflects the “vibe” of the place.