Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Optional filter id. Only the timeseries defined under this filter id will be visible to the FewsPiService
FILTER_ID=MY_CUSTOM_FILTER_ID
 
# Identifier of the flag conversion file to use when extracting timeseries from the FewsPiService (type = string).
# If omitted no flag conversion takes place
EXPORT_FLAGCONVERSION_ID=My_Export_FlagConversion
 
# Identifier of the unit conversion file to use when extracting timeseries from the FewsPiService (type = string).
# If omitted no unit conversion takes place
EXPORT_UNITCONVERSION_ID=My_Export_UnitConversion
 
# Identifier of the id map file to use when extracting timeseries from the FewsPiService (type = string).
# If omitted no id mapping takes place
#EXPORT_IDMAP_ID=My_Export_IdMap
 
# Identifier of the unit conversion file to use when writing timeseries to the FewsPiService (type = string).
# If omitted no unit conversion takes place
IMPORT_UNITCONVERSION_ID=My_Import_UnitConversion
 
# Identifier of the id map file to use when writing timeseries to the FewsPiService (type = string).
# If omitted no id mapping takes place
IMPORT_IDMAP_ID=My_Import_IdMap
 
# Export missing value. All internal NaN values will be mapped to this value (type = float).
# If omitted the default value \-999 will be used.
MISSING_VALUE=-999
 
# Option to skip the export of missing values when reading timeseries from the FewsPiService (type = true/false).
# If omitted the default value 'true' is used.
OMIT_MISSING_VALUES=true
 
# Default time zone.
# If omitted, GMT-0 is used.
# TIME_ZONE=GMT

# Option to return timeseries with value type SAMPLE in the getTimeSeries method.
# If omittedthe default value 'false' is used resulting in only SCALAR value types being returned.
SHOW_SAMPLE_TIMESERIES=true
 
# Readonly mode can be set to true if no only read access is allowed for FEWS WebServices methods.
# When set to true no create, write, update or execute functionality is allowed.
# default set to false in 2017.02
# Since 2018.02 the default is set to true
READONLY_MODE=false

# option to limit the grid plot groups that can be accessed by the webservice
#WMS_ALLOWED_GRID_PLOT_GROUP_ID=

# option to specify the time in seconds between a on the fly synchronziation of archive parameters and locations. Default is 10 minutes. Since 2020.01, only for FEWS configurations without a default filter.
UPDATE_FREQUENCY_ARCHIVE_SYNCHRONIZER=600


# Since 2021.02 the test page is disabled by default. To enable the test page, set the property: TEST_PAGE_ENABLED=true
#TEST_PAGE_ENABLED=false


# Since 2021.02 it is possible to configure the CORS headers sent by the FEWS Web Services to limit the allowed origins. This can be used to limit the domains from wich javascript web applications can access the FEWS Web Services.
# If not configured, by default all origins are allowed.
# To disable all origins, set the CORS_ALLOWED_ORIGINS to None: CORS_ALLOWED_ORIGINS=None
# To allow multiple origins, pass a comma separated list of domains. For example: CORS_ALLOWED_ORIGINS=https://allowed1.domain.com,https://allowed2.domain.com
# CORS_ALLOWED_ORIGINS=*

 

Here follows a explanation of these properties. All property names are case sensitive:

...

  • IMPORT_FLAG_CONVERSION_ID = Identical to the export option except that with this option the external flags are mapped to FEWS flags. This option can be omitted resulting in no conversion. If the flags are unknown to FEWS they will not be imported.
  • IMPORT_UNITCONVERSION_ID = Identical to the export option except that with this option the external units can be converted to FEWS units. This option can be omitted resulting in no conversion. If the units are unknown to FEWS then it is assumed that the values are in the same unit as the import parameter.
  • IMPORT_IDMAP_ID = *Identical to the export option except that with this option external id are translated to internal FEWS ids. This option can be omitted resulting in the export of the FEWS ids. If the external ids are unknown to FEWS then it will not be possible to map the timeseries and the values will be discarded.
  • READONLY_MODE = Only read access is allowed to the FEWS Web Services methods if set to true. No create, write, update or execute functionality is allowed.
  • WMS_ALLOWED_GRID_PLOT_GROUP_ID = This must be one of the plotgroupids from the Griddisplau.xml (or SpatialDisplay.xml) file located in the DisplayConfigFiles directory. Only the spatial plots defined under this plotgroupid will be visible to the FewsPiService. 
  • UPDATE_FREQUENCY_ARCHIVE_SYNCHRONIZER = Option to specify the time in seconds between a on the fly synchronziation of archive parameters and locations. Default is 10 minutes. Since 2020.01, only for FEWS configurations without a default filter

  • TEST_PAGE_ENABLED = Option to enable the testpage. Since 2021.02 the test page is disabled by default.

  • CORS_ALLOWED_ORIGINS = Since 2021.02 it is possible to configure the CORS headers sent by the FEWS Web Services to limit the allowed origins. This can be used to limit the domains from wich javascript web applications can access the FEWS Web Services. If not configured, by default all origins are allowed. To disable all origins, set the CORS_ALLOWED_ORIGINS to None: CORS_ALLOWED_ORIGINS=None. To allow multiple origins, pass a comma separated list of domains. For example: CORS_ALLOWED_ORIGINS=https://allowed1.domain.com,https://allowed2.domain.com