https://github.com/efecanxrd/java-weather-app
Java Weather App using wttr.in
https://github.com/efecanxrd/java-weather-app
Last synced: 2 months ago
JSON representation
Java Weather App using wttr.in
- Host: GitHub
- URL: https://github.com/efecanxrd/java-weather-app
- Owner: efecanxrd
- License: mit
- Created: 2023-02-17T17:55:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T17:58:43.000Z (almost 3 years ago)
- Last Synced: 2025-01-15T11:50:00.732Z (12 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Weather App
Weather app with java by using wttr.in api.
How this is working?
In the example, a request is sent to the wttr.in service for the city of Ankara. The response of the service is received using the %C (weather condition), %t (temperature) and %H (humidity) formats. The received response is stored as a string using the StringBuilder class and eventually printed.
This example is just one way to use the wttr.in service to get weather information. Other services can be used or different data formats can be received.