forked from F8ASB/Module-Remote-Relay
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault_settings.php
More file actions
27 lines (26 loc) · 875 Bytes
/
default_settings.php
File metadata and controls
27 lines (26 loc) · 875 Bytes
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
<?php
/*
* This is the file that gets called for this module when OpenRepeater first
* installs the mdoule. It adds the default settings for the module defined in
* the PHP array below into the database in the moduleOptions field in the
* modules table. This information is serialized in the database. The variables
* that should be defined here are the same variables that are used in the
* settings form. Again, it is what is stored in the database as options and
* not the variables that the SVXLink code expects to see in the generated
* config file for the module.
*/
$default_settings = [
'timeout' => '300',
'momentary_delay' => '200',
'access_pin' => '1234',
'access_attempts_allowed' => '3',
'relays_off_deactivation' => '1',
'relays_gpio_active_state' => 'low',
'relay' => [
1 => [
'gpio' => '0',
'label' => 'Relay 1'
]
]
];
?>