Sol Mate ☀️
Sol Mate ☀️ · Acciones GPT
Sol Mate Weather API
Retrieves current weather data with poetic descriptions of sky conditions, sun position, and moon phase.
GET /currentGetCurrentWeatherGet current weather conditions for a specific location
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "Sol Mate Weather API",
"description": "Retrieves current weather data with poetic descriptions of sky conditions, sun position, and moon phase.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://blixt--sol-mate-weather-api.modal.run"
}
],
"paths": {
"/current": {
"get": {
"description": "Get current weather conditions for a specific location",
"operationId": "GetCurrentWeather",
"parameters": [
{
"name": "latitude",
"in": "query",
"description": "The latitude of the location",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "longitude",
"in": "query",
"description": "The longitude of the location",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "timezone",
"in": "query",
"description": "The timezone (e.g., 'America/New_York')",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "temperature_unit",
"in": "query",
"description": "The unit for temperature",
"required": true,
"schema": {
"type": "string",
"enum": [
"celsius",
"fahrenheit"
]
}
}
],
"responses": {
"200": {
"description": "Weather data",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"temperature": {
"type": "integer",
"description": "Current temperature"
},
"temperature_unit": {
"type": "string",
"description": "Temperature unit (°F or °C)"
},
"condition": {
"type": "string",
"description": "Weather condition (e.g., 'partly cloudy')"
},
"local_time": {
"type": "string",
"description": "Local time in HH:MM format"
},
"day_of_week": {
"type": "string",
"description": "Day of the week"
},
"month": {
"type": "string",
"description": "Current month"
},
"sun": {
"type": "string",
"description": "Sun/daylight status"
},
"sky": {
"type": "string",
"description": "Cloud cover description"
},
"moon": {
"type": "string",
"description": "Moon visibility (optional)"
},
"wind": {
"type": "string",
"description": "Wind conditions (optional)"
},
"ground": {
"type": "string",
"description": "Ground conditions (optional)"
}
},
"required": [
"temperature",
"temperature_unit",
"condition",
"local_time",
"day_of_week",
"month",
"sun",
"sky"
]
}
}
}
}
}
}
}
}
}