Logo Lanfrica

themrandroid/nigeria-weather-advisor

Domain:

climate

Record type:

software
Creator:
the
Host:
A clean, beautiful Streamlit app that shows real-time weather for Nigerian cities and gives practical daily recommendations; clothing, hydration, rain, sun protection, wind, and activity tips. # 🌀️ Nigeria Weather Advisor A clean, beautiful Streamlit app that shows real-time weather for Nigerian cities and gives practical daily recommendations β€” clothing, hydration, rain, sun protection, wind, and activity tips. --- ## Project Structure ``` nigeria-weather-advisor/ β”œβ”€β”€ app.py # Main Streamlit app β”œβ”€β”€ nigeria_cities_by_state.json # City data (38 states, 480 cities) β”œβ”€β”€ requirements.txt β”œβ”€β”€ .env # Your API key (local β€” do NOT commit) β”œβ”€β”€ .env.example # Template for .env └── .streamlit/ └── secrets.toml # For Streamlit Cloud deployment ``` --- ## βš™οΈ Local Setup ### 1. Clone / copy project files Make sure these files are all in the same folder: - `app.py` - `nigeria_cities_by_state.json` - `requirements.txt` - `.env` ### 2. Create a virtual environment (recommended) ```bash python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows ``` ### 3. Install dependencies ```bash pip install -r requirements.txt ``` ### 4. Set your OpenWeather API key Get a free API key at openweathermap.org Copy `.env.example` to `.env` and fill in your key: ```bash cp .env.example .env ``` Edit `.env`: ``` OPENWEATHER_API_KEY=your_actual_key_here ``` ### 5. Run the app ```bash streamlit run app.py ``` The app opens at `localhost` --- ## πŸ’‘ Recommendations Explained | Category | What it checks | |----------------|--------------------------------------------| | πŸ‘• Clothing | Feels-like temperature | | πŸ’§ Hydration | Temperature + humidity | | β˜‚οΈ Rain | Weather condition + humidity | | πŸ•ΆοΈ Sun | Clear sky + temperature | | πŸ’¨ Wind | Wind speed in km/h | | πŸƒ Activity | Overall conditions for going outside | --- ## Notes - Uses the **OpenWeat …