Collecting data from Weatherstack

Follow this guide to collect data from Weatherstack and preview the data.

Understanding datastreams and authorizations

When you connect to Weatherstack through Adverity, you authorize Adverity to access your account. Adverity stores this authorization information in an authorization, and stores the data collection configuration in a datastream.

You can create several datastreams using the same authorization. The datastreams collect information from the same source, with the same login credentials, with different configurations.

Creating a datastream using Weatherstack

Connecting to Weatherstack

To connect to Weatherstack, follow these steps:

  1. Select the workspace you work with in Adverity and then, in the platform navigation menu, click Datastreams.

  2. In the top right corner, click + Create datastream.

  3. Search for and click Weatherstack.

  4. Choose one of the following options:

    • Click Setup a new authorization and set up the new authorization with your own login credentials.

    • Click Send an access request to ask someone else to set up the new authorization. In the Email field, enter the email address of the person you want to ask to authorize the new authorization.

    • If you already have an authorization to Weatherstack, choose an existing authorization.

  1. Click Next.

Choosing what data to collect

To choose what data to collect and customize the Weatherstack datastream configuration, follow these steps:

  1. Click Custom configuration.

  1. Click Next.

  1. (Optional) Rename your datastream.

  1. In Query locations, select one of the following options:

    • Select Value Table to add the locations where you want to query weather data from a value table which you add or edit below in the Locations value table field. For more information about value tables, see Creating value tables.

    • Select Type In to manually add the locations where you want to query weather data, and enter the locations below in the Locations field. You can select either latitude and longitude (for example, 48.8567,2.3508), city name (for example, Paris), US zip, UK postcode, Canada postal code, or IP address.

  1. In Report type, select the type of data to collect from Weatherstack.

  1. In Unit, select the unit in which you want to retrieve your weather data.

  1. In Granularity, select either daily or hourly granularity of data.

  1. In Fields, change the list of fields that you want to see in your data extract.

  1. Click Next.

Choosing where to transfer your data

To choose where to transfer your data, follow these steps:

  1. To assign destinations to your datastream, select their checkboxes. For more information on destinations and their configuration settings, see Introduction to transferring data.

  1. Click Next.

Collecting initial data

To collect the initial data, follow these steps:

  1. Choose the time period for which data is collected.

  1. Click Run fetch.

Previewing data collected from Weatherstack

The fetch collects data from Weatherstack which takes some time. The Overview page of the newly created datastream is now displayed. To preview the collected data, follow these steps:

  1. In the All tasks tab, find the task at the top of the list, and click Show extracts.

  2. Click the top hyperlink.

  3. The data extract is displayed in a table containing the data that you have fetched.

What’s next?

After collecting data from Weatherstack, harmonize your data so that it conforms with Adverity's unified naming and formatting conventions.