openWeatherMap.json•4.7 kB
{
"nodeType": "n8n-nodes-base.openWeatherMap",
"displayName": "OpenWeatherMap",
"description": "Gets current and future weather information",
"version": 1,
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "currentWeather",
"description": "Returns the current weather data",
"options": [
{
"name": "Current Weather",
"value": "currentWeather",
"description": "Returns the current weather data"
},
{
"name": "5 Day Forecast",
"value": "5DayForecast",
"description": "Returns the weather data for the next 5 days"
}
]
},
{
"name": "format",
"displayName": "Format",
"type": "options",
"default": "metric",
"description": "Fahrenheit | miles/hour",
"options": [
{
"name": "Imperial",
"value": "imperial",
"description": "Fahrenheit | miles/hour"
},
{
"name": "Metric",
"value": "metric",
"description": "Celsius | meter/sec"
},
{
"name": "Scientific",
"value": "standard",
"description": "Kelvin | meter/sec"
}
]
},
{
"name": "locationSelection",
"displayName": "Location Selection",
"type": "options",
"default": "cityName",
"description": "How to define the location for which to return the weather",
"options": [
{
"name": "City Name",
"value": "cityName"
},
{
"name": "City ID",
"value": "cityId"
},
{
"name": "Coordinates",
"value": "coordinates"
},
{
"name": "Zip Code",
"value": "zipCode"
}
]
},
{
"name": "cityName",
"displayName": "City",
"type": "string",
"default": "",
"description": "The name of the city to return the weather of",
"placeholder": "berlin,de",
"required": true,
"displayOptions": {
"show": {
"locationSelection": [
"cityName"
]
}
}
},
{
"name": "cityId",
"displayName": "City ID",
"type": "number",
"default": 160001123,
"description": "The ID of city to return the weather of. List can be downloaded here: http://bulk.openweathermap.org/sample/.",
"required": true,
"displayOptions": {
"show": {
"locationSelection": [
"cityId"
]
}
}
},
{
"name": "latitude",
"displayName": "Latitude",
"type": "string",
"default": "",
"description": "The latitude of the location to return the weather of",
"placeholder": "13.39",
"required": true,
"displayOptions": {
"show": {
"locationSelection": [
"coordinates"
]
}
}
},
{
"name": "longitude",
"displayName": "Longitude",
"type": "string",
"default": "",
"description": "The longitude of the location to return the weather of",
"placeholder": "52.52",
"required": true,
"displayOptions": {
"show": {
"locationSelection": [
"coordinates"
]
}
}
},
{
"name": "zipCode",
"displayName": "Zip Code",
"type": "string",
"default": "",
"description": "The ID of city to return the weather of. List can be downloaded here: http://bulk.openweathermap.org/sample/.",
"placeholder": "10115,de",
"required": true,
"displayOptions": {
"show": {
"locationSelection": [
"zipCode"
]
}
}
},
{
"name": "language",
"displayName": "Language",
"type": "string",
"default": "",
"description": "The two letter language code to get your output in (eg. en, de, ...).",
"placeholder": "en"
}
],
"credentialsConfig": [
{
"name": "openWeatherMapApi",
"required": true
},
{
"name": "operation",
"required": false
},
{
"name": "format",
"required": false
},
{
"name": "locationSelection",
"required": false
},
{
"name": "cityName",
"required": true
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}