mirror of
https://github.com/52north/ttn-ogcswe-integration
synced 2025-03-12 15:30:29 +01:00
39 lines
1.6 KiB
Text
39 lines
1.6 KiB
Text
# Each array element defines one bridge instance.
|
|
# Define a new bridge for each sensor configuration (differing by encoding or observed property).
|
|
# You can also send the same observations to multiple backends, just copy the configuration and change `broker.host`
|
|
|
|
-
|
|
ttn:
|
|
# Token for the `applicationID`. Requires the scopes `messages`, `settings`
|
|
accessToken: ttn-account-v2.J4vfm..........................
|
|
# The app_id you registered at TTN
|
|
applicationID: sos-example-integration
|
|
|
|
broker:
|
|
type: SOS:transactional
|
|
options:
|
|
host: http://sos:8080/52n-sos-webapp
|
|
# Optional access token
|
|
token: super-secure-token
|
|
|
|
# Defines metadata & decoders for the observations that the sensor will transmit.
|
|
# The order must be the same as transmitted in the LoRa message format!
|
|
sensors:
|
|
-
|
|
# Display name of the observed property
|
|
observedPropertyName: Air Temperature
|
|
# Definition of the observed property if available
|
|
observedProperty: http://sweet.jpl.nasa.gov/2.2/quanTemperature.owl#Temperature
|
|
# Unit of measurement associated to `observedProperty`
|
|
unitOfMeasurement: Cel
|
|
# Amount of bytes to consume for this observation in the LoRa message
|
|
bytes: 2
|
|
# Defines a function to decode the masked bytes of a LoRa Message into the observed value.
|
|
# Must be a valid JavaScript expression, can access the raw message through the bytes[] array.
|
|
# If omitted, the bytes are interpreted as little endian integer (LSB first)
|
|
transformer: bytes[0] + bytes[1] * 256
|
|
-
|
|
observedPropertyName: Bird Count
|
|
observedProperty: BirdCount
|
|
unitOfMeasurement: Count
|
|
bytes: 1
|