Example of a config file

The example of a strobe_config.ini is shown below. In the example file the unit is set to work with the B3 system at https://boomerang3.com.

#Version 5.0 (strobe.sh located in /boot/ICU)
#Configuration for ICU-RaspFlash (aka. Blixtljus)

PING_URL="http://www.google.com"
PING_REATTEMPTS=5
PING_TIMEOUT=20

#How many seconds to wait for server to respond before aborting, and how many tries
SERVER_TIMEOUT=1
SERVER_TRIES=8

#How many retries of getting data from Service-URL before it reboots
MAXIMUM_RETRIES_BEFORE_REBOOT=100

#Update interval of the URL's (how many seconds between each URL-poll)
UPDATE=20

#INVERT_OUTPUTx=0 -> Default behaviour, a "1" from server turns on the relay
#INVERT_OUTPUTx=1 -> Inverts the output, so a "0" from server turns on the relay 
INVERT_CH1=0
INVERT_CH2=0
INVERT_CH3=0

#TURN_ON_CHx_IF_CONNECTION_FAILS=0 -> doesn't change relay output if connection to server goes down
#TURN_ON_CHx_IF_CONNECTION_FAILS=1 -> Turns on relay output if connection to server goes down. Note that this is OR'ed together with the normal relay status, so both can be used together (is also affected by INVERT_OUTPUT)
TURN_ON_CH1_IF_CONNECTION_FAILS=0
TURN_ON_CH2_IF_CONNECTION_FAILS=0
TURN_ON_CH3_IF_CONNECTION_FAILS=0

# B3:
#URL_MAC=0 -> Uses the SERVICE_URL to get status from server (older behaviour of Blixtljus)
#URL_MAC=1 -> Default behaviour, uses the URL_MAC_BASE + the MAC-adress to generate a unique URL only used by this unit, for example: http://www.boomerang3.com/bl/MAC/?id=B827EB29CA0D
URL_MAC=1
URL_MAC_BASE="https://boomerang3.com/api/relaybox"

# B2 or RQS (only reads temperature-alarms of two URL's)
#URL_DUAL=0 -> Uses the SERVICE_URL to get status from server (older behaviour of Blixtljus where a single URL controls both relays)
#URL_DUAL=1 -> Uses the two URL's SERVICE_URL_CH1 and SERVICE_URL_CH2 to control the two relay outputs individually, only temperature-alarms (ie. 1x) from URL will control the outputs (server's communication alarm status is ignored).
URL_DUAL=0
SERVICE_URL_CH1="http://81.91.10.237/strobelight.aspx?User=HUS_CH1"
SERVICE_URL_CH2="http://81.91.10.237/strobelight.aspx?User=HUS_CH2"

# B2 or RQS (old standard URL)
#Use either URL_MAC or URL_DUAL solution (above), OR, SERVICE_URL (don't try to use both)
#SERVICE_URL="http://81.91.10.237/strobelight.aspx?User=HUS_CH1"
SERVICE_URL="http://192.168.61.156/rasp.html"
#SERVICE_URL="http://www.rqs.se/bl/?id=ICU_MANKAN_INTERNAL_TEST_CGNS_GW"

Last updated