Show Menu
TOPICS×

Travel Center Temperature Activation

The following use case demonstrates the usage of travel center local temperature activation based on the values populated in Google Sheets.

Description

For this Use Case, if your Google Sheets has Value less than 50, then an image with hot drinks will display and if the value is greater than or equal to 50, then the image with cold drinks will display. In case of some other or no value, the player will display a default image.

Preconditions

Before you start implementing the travel center local temperature activation, you must learn how to set up Data Store , Audience Segmentation and Enable Targeting for Channels in an AEM Screens Project.
Refer to Configuring ContextHub in AEM Screens for detailed information.

Basic Flow

Follow the steps below to implement the Travel Center Local Temperature Activation use case:
  1. Populating the Google Sheets
    1. Navigate to the ContextHubDemo Google Sheet.
    2. Add a column with Heading1 with corresponding value for temperature.
  2. Configuring the segments in Audiences as per the requirements
    1. Navigate to the segments in your audience (Refer to Step 2: Setting up Audience Segmentation in Configuring ContextHub in AEM Screens page for more details).
    2. Select the Sheets A1 1 and click Edit .
    3. Select the comparison property and click the configure icon to edit the properties.
    4. Select googlesheets/value/1/0 from the drop-down in Property name
    5. Select the Operator as **greater-than-or-equal **from the drop-down menu
    6. Enter the Value as 50
    7. Similarly, Select the** Sheets A1 2 **and click Edit .
    8. Select the Comparison Property - Value and click the configure icon to edit the properties.
    9. Select googlesheets/value/1/0 from the drop-down in Property name
    10. Select the Operator as **less-than **from the drop-down menu
    11. Enter the Value as 50
  3. Navigate and select your channel () and click Edit from the action bar. In the following example, DataDrivenWeather , a sequential channel is used to showcase the functionality.
    Your channel should already have a default image and the Audiences should be pre-configured as described in Configuring ContextHub in AEM Screens .
    You should have set up your ContextHub Configurations using the channel Properties --> Personalization tab.
  4. Select Targeting from the editor and select Brand and the Activity from the drop-down menu and click Start Targeting .
  5. Checking the Preview
    1. Click Preview. Also, open your Google Sheet and update its value.
    2. Change the value to less than 50, you should be able to view the an image of summer drinks. If the value in the Google Sheet is 50 or greater than should be able to view the an image of hot drink.