Skip to content

Fetch weather daily

weather3rd party APIintegration

Fetch daily weather data for given times and locations.

Usage


The following are the step's expected inputs and outputs and their specific types.

Step signature
fetch_weather_daily(
    lat: number,
    lon: number,
    date: date, 
    {
        "param": value
    }
) -> (
    weather_day_apparentTemperatureHigh: number,
    weather_day_apparentTemperatureHighTime: date,
    weather_day_apparentTemperatureLow: number,
    weather_day_apparentTemperatureLowTime: date,
    weather_day_apparentTemperatureMax: number,
    weather_day_apparentTemperatureMaxTime: date,
    weather_day_apparentTemperatureMin: number,
    weather_day_apparentTemperatureMinTime: date,
    weather_day_cloudCover: number,
    weather_day_dewPoint: number,
    weather_day_humidity: number,
    weather_day_icon: category,
    weather_day_moonPhase: number,
    weather_day_ozone: number,
    weather_day_precipIntensity: number,
    weather_day_precipIntensityMax: number,
    weather_day_precipIntensityMaxTime: date,
    weather_day_precipProbability: number,
    weather_day_precipType: category,
    weather_day_pressure: number,
    weather_day_sunriseTime: date,
    weather_day_sunsetTime: date,
    weather_day_uvIndex: number,
    weather_day_uvIndexTime: date,
    weather_day_visibility: number,
    weather_day_windBearing: number,
    weather_day_windGust: number,
    weather_day_windGustTime: date,
    weather_day_windSpeed: number
)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Example

This step has no configuration parameters, so it's simply

Example call (in recipe editor)
fetch_weather_daily(ds.lat ,ds.lon ,ds.date) -> (
  ds.weather_day_apparentTemperatureHigh,
  ds.weather_day_apparentTemperatureHighTime,
  ds.weather_day_apparentTemperatureLow,
  ds.weather_day_apparentTemperatureLowTime,
  ds.weather_day_apparentTemperatureMax,
  ds.weather_day_apparentTemperatureMaxTime,
  ds.weather_day_apparentTemperatureMin,
  ds.weather_day_apparentTemperatureMinTime,
  ds.weather_day_cloudCover,
  ds.weather_day_dewPoint,
  ds.weather_day_humidity,
  ds.weather_day_icon,
  ds.weather_day_moonPhase,
  ds.weather_day_ozone,
  ds.weather_day_precipIntensity,
  ds.weather_day_precipIntensityMax,
  ds.weather_day_precipIntensityMaxTime,
  ds.weather_day_precipProbability,
  ds.weather_day_precipType,
  ds.weather_day_pressure,
  ds.weather_day_sunriseTime,
  ds.weather_day_sunsetTime,
  ds.weather_day_uvIndex,
  ds.weather_day_uvIndexTime,
  ds.weather_day_visibility,
  ds.weather_day_windBearing,
  ds.weather_day_windGust,
  ds.weather_day_windGustTime,
  ds.weather_day_windSpeed)

Inputs


lat: column:number

Latitude of the location to be analyzed.


lon: column:number

Longitude of the location to be analyzed.


date: column:date

Date to be analyzed.

Outputs


weather_day_apparentTemperatureHigh: column:number

High temperature point for the date requested.


weather_day_apparentTemperatureHighTime: column:date

Time this previous temperature was recorded.


weather_day_apparentTemperatureLow: column:number

Low temperature point for the date requested.


weather_day_apparentTemperatureLowTime: column:date

Time this previous temperature was recorded.


weather_day_apparentTemperatureMax: column:number

Max temperature point for the date requested.


weather_day_apparentTemperatureMaxTime: column:date

Time this previous temperature was recorded.


weather_day_apparentTemperatureMin: column:number

Min temperature point for the date requested.


weather_day_apparentTemperatureMinTime: column:date

Time this previous temperature was recorded.


weather_day_cloudCover: column:number

Cloud cover for the day analyzed.


weather_day_dewPoint: column:number

Dew point for the day analyzed.


weather_day_humidity: column:number

Humidity level of the day requested.


weather_day_icon: column:category

Weather icon for that day.


weather_day_moonPhase: column:number

Phase of the moon.


weather_day_ozone: column:number

Ozone measurements for that day.


weather_day_precipIntensity: column:number

Intensity of precipitations during that day.


weather_day_precipIntensityMax: column:number

Maximum intensity of precipitation.


weather_day_precipIntensityMaxTime: column:date

Time the maximum intensity was recorded.


weather_day_precipProbability: column:number

Precipitation probability for that day.


weather_day_precipType: column:category

Precipitation type for that day.


weather_day_pressure: column:number

Pressure recorded.


weather_day_sunriseTime: column:date

Sunrise time for the day.


weather_day_sunsetTime: column:date

Sunset time for the day.


weather_day_uvIndex: column:number

UVIndex for that day.


weather_day_uvIndexTime: column:date

Time the uvIndex was recorded.


weather_day_visibility: column:number

Visibility for that day.


weather_day_windBearing: column:number

Angle of the wind in degrees.


weather_day_windGust: column:number

Wind gust for that day.


weather_day_windGustTime: column:date

Time the wind gust was recorded.


weather_day_windSpeed: column:number

Wind speed recorded.

Parameters


requests_per_second: number = 2

Request per Second.


integration: string

ID of the integration you'd like to use.