This project is about a tool for weather forecasting written for the civilizations Vulcanos, Ferengis and Betasoides. This project also includes a RESTful API for retrieving a desiered weather condition for a single day.
This project generates the weather conditions for a given space in time using a job. The executable can be used from a command prompt in the following way:
In the example above, a prediction for the weather conditions for the next ten years has been made, obtaining the following results:
- Total drought days: 41 of 3650 days (10 years) - 1.12%
- Total rainy days: 1187 of 3650 days (10 years) - 32.52% a) The maximum day of inestability is going to be the day 72.
- Period of optimal pressure and temperature conditions: 81 of 3650 days (10 years) - 2.2%
Command | Description |
---|---|
ci=VALUE | Create initial weather conditions for a given number of years |
c=VALUE | Retrieves weather conditions for a given number of years |
cm=VALUE | Creates the database model for a given number of years |
We can call an API URI to retrieve the weather conditions from a single day the following way:
VERB | URI | RESULT |
---|---|---|
GET | https://fargalaxy-api.azurewebsites.net/weather/81 | {"day":81,"weather":"RainyDay"} |