A web application that calculates and visualizes the Global Humidity Index (GHI) based on dew point temperatures. The GHI provides an intuitive way to understand humidity comfort levels across different locations.
- Real-time GHI calculation based on dew point
- City comparison with side-by-side visualization
- Color-coded comfort levels
- Historical data viewing (yesterday's noon data)
- Interactive charts for temperature, dew point, and humidity comparison
- Dark/Light theme support
The GHI uses the following comfort scale based on dew point temperatures:
- Below 10°C: Dry (#5ECBFC)
- 10-15°C: Very comfortable (#62FF3B)
- 15-18°C: Comfortable (#CBFF73)
- 20°C: Alright (#FFFF9E)
- 21-24°C: Uncomfortable (#FFD239)
- 24-26°C: Very uncomfortable (#FF981E)
- Over 26°C: Severely uncomfortable (#FF6610)
-
Clone the repository:
git clone https://github.com/missingfoot/global-humidity-index.git cd global-humidity-index
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory and add your OpenWeatherMap API key:OPENWEATHERMAP_API_KEY=your_api_key_here
-
Run the application:
python app.py
-
Open your browser and navigate to
http://localhost:5000
- Python 3.7+
- Flask
- Requests
- python-dotenv
- OpenWeatherMap API key
MIT License