This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml.sample
48 lines (44 loc) · 2.07 KB
/
config.yml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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:
# The type of backend API to use. supported APIs:
# - SOS:transactional Transactional API must be enabled in SOS!
# - SOS:mqtt more efficient, must be configured, requires development version of 52N SOS
type: SOS:transactional
# Backend options, dependend on `broker.type`
options:
#### For SOS:transactional
# URL to the SOS deployment with
host: http://localhost:8080/52n-sos-webapp
# Optional access token
token: super-secure-token
#### For SOS:mqtt
# no options, must be manually configured via SOS admin interface
# 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