Enabling communication with Bosch API
TS can receive data from pollutants sensors based on Bosch API, and show these data on a dedicated layer (see → Bosch Sensors layer).
For enabling this feature, it's necessary:
-
Set the section → Layers configuration > BoschAQSensors in the file
/opt/ptv-optima-vv.n.xxxxptv-optima-as/standalone/configuration/optima/optima-configuration.xml.
-
Update the Apache file httpd.conf
According with a specific Apache installation, the file httpd.conf can be stored in:
-
For Windows system, in <INSTALL_PATH>\ApacheXX\conf\ (XX is the Apache version)
-
For Linux-like system, in /etc/apacheX/sites-enabled/ (X is the Apache version)

In the file httpd.conf you need to add this section:
<Proxy "balancer://bosch">
ProxySet lbmethod=bybusyness
BalancerMember "https://bosch-iot-insights.com/r"
RequestHeader unset Authorization
RequestHeader set Authorization "Basic {Bosch_Token_placeholder}"
</Proxy>
ProxyPass /bosch/r/ "balancer://bosch/"
ProxyPassReverse /bosch/r/ "balancer://bosch/"
A specific module must be activated, simply deleting the leftmost character #:
#LoadModule headers_module modules/mod_headers.so
The ProxyPreserveHost parameter must be changed from On to Off:
ProxyPreserveHost Off
Important: The element {Bosch_Token_placeholder} is replaced by the authentication token associated to the Bosch API.