Configuration via environment variables - MONICA-Project/sound-heat-map GitHub Wiki
The following table documents all available environment variables that can be set via the dockerfile (needs rebuilding of image) or at runtime.
Variable | Description | Examples |
---|---|---|
SHM_ID | identifier for this SHM instance | shm_1 |
GOST_URL | URL of GOST instance. The module queries this object store for the available sound pressure sensors. | "http://monica-cloud.eu:5050/gost/v1.0" |
GOST_USER | Credentials for GOST server access | |
GOST_PASS | Credentials for GOST server access | |
MQTT_BROKER_PREFIX | an optional topic prefix that the MQTT broker uses, e.g. if prefix is GOST then the sound heat map will listen for data via MQTT topics GOST/Datastreams(ID)/Observations , where ID is the Datastream ID of a sound pressure sensor |
|
CATALOG_URL | URL of a LinkSmart instance | "http://monica-cloud.eu:8921" |
FILTER_MICS | optionally filter the selection of sound pressure datastreams from GOST service | "", "endswith(name, 'MONICA0010_100090_Id1')" or "startswith(name, 'SLM-GW')" |
FREQUENCIES | frequencies of the CPBLZeq data | "[13, 16, 20, 25, 32, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, 16000, 20000]" |
TEMPERATURE | atmospheric temperature used in propagation model | 20 |
SOURCES | location of sound sources as list of Lat/Lon coordinates | "[45.0619, 7.6801], [45.0619, 7.68], [45.0619, 7.68005](/MONICA-Project/sound-heat-map/wiki/45.0619,-7.6801],-[45.0619,-7.68],-[45.0619,-7.68005)" |
SOURCES_DIRECTION | direction of sound sources given in radiance. `0 points north. If empty string (""), monopole soures are used. Otherwise, dipole sources are used. | "[-1.51417453, -1.51417453, -1.51417453]" |
WALLS | position of reflecting walls in Lat/Lon coordinates given as list of list of two points (starting point, end point). | "[[45.055, 7.675], [45.0619, 7.675](/MONICA-Project/sound-heat-map/wiki/[45.055,-7.675],-[45.0619,-7.675)]" |
AREA_POLYGON | map is predicted on point grid inside this polygon. Only datastreams of microphones that are inside this polygon are used. Given as list of lat/lon points. | "[45.056, 7.676], [45.06, 7.676], [45.061, 7.685], [45.055, 7.685](/MONICA-Project/sound-heat-map/wiki/45.056,-7.676],-[45.06,-7.676],-[45.061,-7.685],-[45.055,-7.685)" |
CELLSIZE | distance between prediction points in lat/lon unit | 0.0005 |
WEIGHTINGS | Create one sound heat map stream for each of the weightings in WEIGHTINGS. Supportinged weightings are 'A', 'C', 'Z', 'Afullband', 'Cfullband', 'Zfullband'. In the 'Xfullband' form, the weighted sound pressure levels are summed to give a single number instead of one value for each value in FREQUENCIES | "['Z', 'Afullband', 'Cfullband']" |
UPDATE_DATASTREAMS_PERIODE | time in seconds between queries to GOST instance for new datastreams | 60 |
NEW_MAP_PERIODE | Time between computation and publishing of new sound heat maps | |
MAP_LATENCY | Sound heat maps are computed from the buffered data of the datastreams, between the times t1 = NOW - MAP_LATENCY and t2 = NOW - MAP_LATENCY - MAP_AVERAGING_TIME | 10 |
MAP_AVERAGING_TIME | 10 | |