Collecting data from Weatherstack
Follow this guide to collect data from Weatherstack and preview the data.
Understanding datastreams and s
When you connect to Weatherstack through Adverity, you authorize Adverity to access your account. Adverity stores this authorization information in an , and stores the data collection configuration in a datastream.
You can create several datastreams using the same . 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:
-
Select the workspace you work with in Adverity and then, in the , click Datastreams.
-
In the top right corner, click + Create datastream.
-
Search for and click Weatherstack.
-
Choose one of the following options:
-
Click Setup a new and set up the new with your own login credentials.
-
Click Send an access request to ask someone else to set up the new . In the Email field, enter the email address of the person you want to ask to authorize the new .
-
If you already have an Weatherstack, choose an existing .
to
-
-
Click Next.
Choosing what data to collect
To choose what data to collect and customize the Weatherstack datastream configuration, follow these steps:
-
Click Custom configuration.
-
Click Next.
-
(Optional) Rename your datastream.
-
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.
-
-
In Report type, select the type of data to collect from Weatherstack.
-
In Unit, select the unit in which you want to retrieve your weather data.
-
In Granularity, select either daily or hourly granularity of data.
-
In Fields, change the list of fields that you want to see in your data extract.
-
Click Next.
Choosing where to transfer your data
To choose where to transfer your data, follow these steps:
-
To assign destinations to your datastream, select their checkboxes. For more information on destinations and their configuration settings, see Introduction to transferring data.
-
Click Next.
Collecting initial data
To collect the initial data, follow these steps:
-
Choose the time period for which data is collected.
-
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:
-
In the All tasks tab, find the task at the top of the list, and click
Show extracts.
-
Click the top hyperlink.
-
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.