/** * OpenWeatherMap Node - Version 1 * Gets current and future weather information */ export interface OpenWeatherMapV1Params { operation?: 'currentWeather' | '5DayForecast'; /** * The format in which format the data should be returned * @default metric */ format?: 'imperial' | 'metric' | 'standard' | Expression; /** * How to define the location for which to return the weather * @default cityName */ locationSelection?: 'cityName' | 'cityId' | 'coordinates' | 'zipCode' | Expression; /** * The name of the city to return the weather of * @displayOptions.show { locationSelection: ["cityName"] } */ cityName?: string | Expression | PlaceholderValue; /** * The ID of city to return the weather of. List can be downloaded here: http://bulk.openweathermap.org/sample/. * @displayOptions.show { locationSelection: ["cityId"] } * @default 160001123 */ cityId?: number | Expression; /** * The latitude of the location to return the weather of * @displayOptions.show { locationSelection: ["coordinates"] } */ latitude?: string | Expression | PlaceholderValue; /** * The longitude of the location to return the weather of * @displayOptions.show { locationSelection: ["coordinates"] } */ longitude?: string | Expression | PlaceholderValue; /** * The ID of city to return the weather of. List can be downloaded here: http://bulk.openweathermap.org/sample/. * @displayOptions.show { locationSelection: ["zipCode"] } */ zipCode?: string | Expression | PlaceholderValue; /** * The two letter language code to get your output in (eg. en, de, ...). */ language?: string | Expression | PlaceholderValue; } export interface OpenWeatherMapV1Credentials { openWeatherMapApi: CredentialReference; } interface OpenWeatherMapV1NodeBase { type: 'n8n-nodes-base.openWeatherMap'; version: 1; credentials?: OpenWeatherMapV1Credentials; } export type OpenWeatherMapV1ParamsNode = OpenWeatherMapV1NodeBase & { config: NodeConfig; }; export type OpenWeatherMapV1Node = OpenWeatherMapV1ParamsNode;