PyzeWeatherAndForecast

PyzeWeatherAndForecast : PyzeCuratedEvents

PyzeWeatherAndForecast methods can be used to post events related to Weather and Forecast.

PyzeWeatherAndForecast methods

  • Post weather request for type.

    Sample

    var attributes = {};
    attributes["wtype"] = typeValue;
    attributes["nDays"] = howManyDaysValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherReqType", attributes, customAttributes);

    Parameters

    wtype

    Type you wish to query weather app.

    nDays

    Number of days.

    customAttributes

    Addition attributes. Learn more about custom attributes.

  • Post weather historical request data.

    Sample

    var attributes = {};
    attributes["startInterval"] = startingIntervalValue;
    attributes["endInterval"] = endIntervalValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherHistoricReqType", attributes, customAttributes);

    Parameters

    startingInterval

    Timestamp to start with.

    endInterval

    End timestamp interval.

    customAttributes

    Additional attributes. Learn more about custom attributes.

  • Post weather station request.

    Sample

    var attributes = {};
    attributes["clusterData"] = clusterDataValue;
    attributes["lat"] = latitudeValue;
    attributes["lon"] = longitudeValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherStationReqType", attributes, customAttributes);

    Parameters

    clusterData

    Cluster data to pass.

    lat

    Geo latitude of the station.

    long

    Geo longitude of the station.

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post request of weather maps. Weather maps include precipitation, clouds, pressure, temperature, wind and more.

    Sample

    var attributes = {};
    attributes["layerName"] = layerNameValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherMapLayer", attributes, customAttributes);

    Parameters

    layerName

    Layer name.

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post request for UVIndex.

    Sample

    var attributes = {};
    attributes["lat"] = latitudeValue;
    attributes["lon"] = longitudeValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherUVIndex", attributes, customAttributes);

    Parameters

    lat

    Geo latitude.

    long

    Geo longitude.

    customAttributes

    Additional attributes. Learn more about custom attributes.

  • Post response received for weather request for type.

    Sample

    var attributes = {};
    attributes["wtype"] = queryTypeValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherResponseForType", attributes, customAttributes);

    Parameters

    wtype

    Type queried.

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post historical weather response.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherResponseForHistorical", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post weather station response.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherStationResponse", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post weather map layer’s response.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherMapLayersResponse", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post weather response for UVIndex.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("WeatherResponseForUVIndex", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post forecast request for keywords.

    Sample

    var attributes = {};
    attributes["keywords"] = commaSeperateKeywordsValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("ForecastRequest", attributes, customAttributes);

    Parameters

    keywords

    Keywords used to search forecast and are comma seperated.

    attributes

    Additional attributes. Learn more about custom attributes.

  • Post response received for keywords.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("ForecastResponse", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post forecast fetch for n Days.

    Sample

    var attributes = {};
    attributes["nDays"] = NumberOfDaysValue;
    var customAttributes = {};
    PyzeCuratedEvents.post("ForecastFetch", attributes, customAttributes);

    Parameters

    nDays

    Number of days.

    customAttributes

    Additional custom attributes. Learn more about custom attributes.

  • Post forecast fetch response.

    Sample

    
    var customAttributes = {};
    PyzeCuratedEvents.post("ForecastFetchResponse", null, customAttributes);

    Parameters

    customAttributes

    Additional custom attributes. Learn more about custom attributes.