feat(script): Add script
This commit is contained in:
39
notify_signal_about_traccar_events.sh.conf.example
Normal file
39
notify_signal_about_traccar_events.sh.conf.example
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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.'
|
||||
message_device_offline='On %s Traccar Client app is now off.'
|
||||
|
||||
# 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
|
||||
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'
|
Reference in New Issue
Block a user