59 lines
3.2 KiB
Plaintext
59 lines
3.2 KiB
Plaintext
# List of events on which this script will act. This is a Posix Extended
|
|
# Regular Expression (ERE). Most Perl-Compatible Regular Expression
|
|
# (PCRE) syntax works. Most notably lookarounds are unsupported in ERE.
|
|
# Default's '^(deviceOnline|deviceUnknown|geofenceEnter|geofenceExit)$'.
|
|
# Any event not in this list will be discarded. Note that this script
|
|
# only /gracefully/ acts on these four events anyway. You can have it
|
|
# act on any other event as well but in its current state that just
|
|
# triggers the message_event_other Signal message which is decidedly
|
|
# /ungraceful/, its usefulness is limited.
|
|
#
|
|
# For a list of events refer to github.com/traccar/traccar, specifically
|
|
# the 'src/main/java/org/traccar/model/Event.java' file that lists all
|
|
# available event names.
|
|
allow_list_events='^(deviceOnline|deviceUnknown|geofenceEnter|geofenceExit)$'
|
|
|
|
# If an event comes in that's not in allow_list_events we print this
|
|
# message to stdout and exit.
|
|
message_event_type_not_allowed='Event "%s" not allowed. Nothing to do.\n'
|
|
|
|
# First positional argument '%s' is Traccar device name, second
|
|
# positional argument '%s' is geofence name, third one is battery level.
|
|
# This cannot be switched around, please word your message accordingly.
|
|
# Notice how a line break takes the form '\\n', that's two backslashes.
|
|
message_geofence_enter='%s entered geofence %s.\\n\\nBattery level %s%%.'
|
|
message_geofence_exit='%s left geofence %s.\\n\\nBattery level %s%%.'
|
|
|
|
# Argument '%s' is Traccar device name
|
|
message_device_online='On %s Traccar Client app is now active.'
|
|
message_device_unknown='On %s Traccar Client app has not checked in for 10 minutes, the app is likely off now.'
|
|
|
|
# Argument '%s' is Traccar device name but this one unlike the three
|
|
# message strings before is used as stdout log output when the device ID
|
|
# that triggered an event doesn't match our allow list in
|
|
# allow_unique_device_ids_posix_ere, see below. Note a trailing '\n'
|
|
# (backslash-n) at the end of this string. This is a Bash printf
|
|
# replacement string.
|
|
message_device_unhandled='For %s we do not want to send Signal messages. Nothing to do.\n'
|
|
|
|
# First positional argument '%s' is Traccar device name, second
|
|
# positional argument '%s' is event name. This cannot be switched
|
|
# around, please word your message accordingly.
|
|
message_event_other='%s triggered event "%s" in Traccar server.'
|
|
|
|
# If this is a non-empty value we'll use it to only handle Traccar
|
|
# events for these unique device IDs. Events triggered by other device
|
|
# IDs will be discarded. If this is an empty string or if it's not
|
|
# declared at all we'll handle events for all device IDs. In Traccar
|
|
# server every device has a unique ID that's distinct from its
|
|
# pretty-printed device name. This is a Posix Extended Regular
|
|
# Expression (ERE). Most Perl-Compatible Regular Expression (PCRE)
|
|
# syntax works. Most notably lookarounds are unsupported in ERE.
|
|
allow_unique_device_ids_posix_ere='^(901874|81919333|9991212)$'
|
|
|
|
# signal-cli-rest-api config. These are all mandatory. Leaving them
|
|
# empty or not declaring them at all will cause the script to exit.
|
|
signal_sender_phone_number='+18005550199'
|
|
signal_recipients_array='["group.ImxvbmdpdH=","recipient.21","+18005550111","i-am-a-uuid"]'
|
|
signal_api_endpoint_full_path='https://fully.qualified.domain.name/v2/send'
|