Java application that retrieves current weather information using latitude and longitude.
264
This is a simple Java-based weather application that retrieves and displays current weather information. It uses the OpenWeatherMap API to fetch weather data based on location (latitude and longitude).
Pull the image:
docker pull aliulislamabir/climax:tagname
Get OpenWeatherMap API Key:
Set your API key as environment variable:
Example:
Linux (.bashrc | /etc/profile): export CLIMAX_API_KEY=your_api_key_here
Windows (PowerShell): [System.Environment]::SetEnvironmentVariable("CLIMAX_API_KEY", "your_api_key_here", "User")
Run the image with API key:
docker run --rm -e CLIMAX_API_KEY climax # Default location was set to New York
Run the image with API key with desired location:
docker run --rm -e CLIMAX_API_KEY climax <latitude> <longitude>
Contributions are welcome! Please open an issue or submit a pull request in the official repo (https://github.com/automation-craftsman/climax.git).
MIT License
Content type
Image
Digest
sha256:0c6e78de6…
Size
125.2 MB
Last updated
over 1 year ago
docker pull aliulislamabir/climax