Utilize Client Location for Displays and Commands

HTML5 displays can access client location data to set global aliases and automatically execute commands. This works in the MobileHMI app for iOS and Android and in HTML5-compliant browsers.

 

To enable location access, follow these steps on the desired client device:

  1. Go to the App Hub page.

  2. Open the context menu.

  3. Select Preferences.

  4. In the Location section, select Enabled.

  5. If desired, enable Commands and set the desired Distance. The distance tunes the sensitivity (in meters) of checking for nearby commands.

When the location is enabled, the client's location will be written to the <#AR\ar_longitude#> and <#AR\ar_latitude#> global aliases. These aliases can then be used to show location-specific information in displays.

 

If location commands are enabled, the user can launch the App Hub to check if there are any geofence commands available. Geofence commands are defined in Workbench under MobileHMI > Configuration > Augmented Reality. If the user is inside a geofence, a message will appear, asking if the user would like to execute the defined command.

 

See Also:

Augmented Reality

Execute Augmented Reality Commands with Geofences