How do I change the Tobii Pro Glasses 2 settings using the REST API?

Tobii Pro Glasses 2 API Tobii Pro Glasses 2 Tobii Pro
Two different methods to change the Tobii Pro Glasses 2 settings using the REST API
1 - From your own application
You can use your own application to send HTTP POST requests to the Tobii Pro Glasses 2 REST API in order to change the settings.

2 - Using Mozilla Firefox and HttpRequester
If you are not familiar with programming and HTTP POST requests, this method is for you.
To get your computer ready, please follow these steps:
  1. Install Mozilla Firefox on your computer. If you already have it, please skip to step 2.
  2. Install the HttpRequester add-on for Mozilla Firefox. It can be found here.
  3. Restart Mozilla Firefox. Now, an icon to access HttpRequester appears on the top-right corner of Mozilla Firefox: User-added image.
Your computer is now ready to send HTTP POST requests to tPro Glasses 2. In order to do so, you will need the IPv6 or IPv4 address to your eye tracker (by default 192.168.71.50 is the IPv4 address when connected through Wi-Fi).

To update your Pro Glasses 2 settings, please follow these steps:
  1. Start HttpRequester from Mozilla Firefox by clicking on the double arrow icon User-added image.
  2. In the URL field, put the address to the configuration file of the Pro Glasses 2 recording unit (http://<IPv4>/api/system/conf or http://<IPv6>/api/system/conf). For example: http://192.168.71.50/api/system/conf.
  3. In the Content to Send field, fill in the parameter you want to change in a JSON format. See typical settings to be changed for examples.
  4. Click on POST to send the HTTP request. You should receive a response with the newly-updated configuration file. See the following screenshot:
User-added image
Typical settings to be changed:
  • {"sys_ec_preset": "Indoor"} to change the preset to indoor.
  • {"sys_ec_preset": "ClearWeather"} to change the preset to outdoor.
  • {"sys_store_eyesstream": false} to not store eye images to the SD card.
  • {"sys_store_eyesstream": true} to store eye images to the SD card.
  • {"sys_et_freq": 100} to change the recording unit frequency to 100Hz (not supported for the 50Hz head unit).
  • {"sys_et_freq": 50} to change the recording unit frequency to 50Hz.
  • Check the Tobii Pro Glasses 2 API developer’s guide for more advanced HTTP POST requests.