The following use case demonstrates the usage of travel center local temperature activation based on the values populated in Google Sheets.
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.
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.
Follow the steps below to implement the Travel Center Local Temperature Activation use case:
Populating the Google Sheets
Configuring the segments in Audiences as per the requirements
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).
Select the Sheets A1 1 and click Edit.
Select the comparison property and click the configure icon to edit the properties.
Select googlesheets/value/1/0 from the drop-down in Property name
Select the Operator as greater-than-or-equal from the drop-down menu
Enter the Value as 50
Similarly, Select the Sheets A1 2 and click Edit.
Select the Comparison Property - Value and click the configure icon to edit the properties.
Select googlesheets/value/1/0 from the drop-down in Property name
Select the Operator as less-than from the drop-down menu
Enter the Value as 50
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.
Select Targeting from the editor and select Brand and the Activity from the drop-down menu and click Start Targeting.
Checking the Preview