Skip to content

davimassini/weatherapi

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WeatherAPI - Logo

🌦️ WeatherAPI

First of all, that project is a huge over-engineering and the purpose of this is to be a showcase. If you're interested in an open-source weather API for your game or something like that, and ocasionally dropped here, keep searching.

The history behind this: I was going to the gym when I walked through my friend who was watching some Tarkov video and said about the feature in the game which makes rain when Tarkov's rain in real life. My first reaction was to say that it didn't seem like a difficult system to implement and that it would be a nice personal challenge to do something like that. So I did it.

WeatherAPI uses WeatherAPI - yeah, look how creative I'm at creating names 😆 - to get the real statics of the world. For personal projects, the standard version is more than enough.

Don't forget to check the acknowledgments.

⚙️ Run it

No big deal. Just be sure you had all the requirements, then run the task :bootRun in Gradle.

📑 Requirements

  • Some Java IDE.
  • Your own WeatherAPI token.
  • At least Java 17 installed on your machine. (Always recommend the zulu edition)

📖 API Docs

Returns the weather of the specified city.

  GET /weather
Parâmetro Tipo Descrição
city string The name of the city you want to get the weather.
apiKey string Your own API Key.

👾 Demo

You can also test this here.

📈 Improvements

  • Hour;
  • Rain;
  • Wind;
  • Fog;
  • Lightning;
  • Snow;
  • Better day/night system;
  • Sunny light;

🗺️ Acknowledgments

💖 More than words

If you like my work and want to support me, you can buy me a coffee ☕. Also, you can follow me on social networks: