forked from GhostTalker/RebootMadDevice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini.example
81 lines (74 loc) · 2.33 KB
/
config.ini.example
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
######################################################
# #
# Configuration file for RebootMadDevice #
# #
######################################################
[Enviroment]
ADB_PATH: /usr/bin
ADB_PORT: 5555
[Logging]
LOG_MODE: <console/file/off>
LOG_FILENAME: RMDclient.log
LOG_LEVEL: <INFO/DEBUG>
[MAD server]
MADMIN_HOST: <Hostname or IP>
PLUGIN_PORT: <50000>
PLUGIN_TOKEN: 'changeit'
[Status LED]
LED_ENABLE: True
# internal or external LED
LED_TYPE: internal/external
# Number of LED pixels.
LED_COUNT: 60
# GPIO pin connected to the pixels (18 uses PWM!)
LED_PIN: 18
# LED signal frequency in hertz (usually 800khz)
LED_FREQ_HZ: 800000
# DMA channel to use for generating signal (try 10)
LED_DMA: 10
# Set to 0 for darkest and 255 for brightest
LED_BRIGHTNESS: 255
# True to invert the signal (when using NPN transistor level shift)
LED_INVERT: False
# WS for external LED
LED_WS_EXTERNAL: ws://<IP>:<Port>
[IP ban check]
BANCHECK_ENABLE: True
BANCHECK_WEBHOOK: webhookurl
banPing: discordID
[Devices]
DEVICE_0: <ORINGIN_DEVICE_0>;<IP_ADRESS_DEVICE_0>
DEVICE_1: <ORINGIN_DEVICE_1>;<IP_ADRESS_DEVICE_1>
DEVICE_xx: <ORINGIN_DEVICE_xx>;<IP_ADRESS_DEVICE_xx>
[PowerSwitchCommands]
SWITCH_MODE: <GPIO or HTML or CMD or PB or POE>
#### for HTTP mode ####
PowerON_Device_1: http://<IPADRESS_POWER_SWITCH>/<PowerONcommand>
PowerOFF_Device_1: http://<IPADRESS_POWER_SWITCH>/<PowerOFFcommand>
PowerON_Device_2: http://<IPADRESS_POWER_SWITCH>/<PowerONcommand>
PowerOFF_Device_2: http://<IPADRESS_POWER_SWITCH>/<PowerOFFcommand>
#### for GPIO mode ####
RELAY_MODE: <NO or NC>
#the cleanup_mode is optional. only use if you have problems with the relayswitch
CLEANUP_MODE: <yes or no>
GPIO_Device_1: 17
GPIO_Device_2: 27
#### for CMD mode ####
PowerON_Device_1: <path>/<command> <options>
PowerOFF_Device_1: <path>/<command> <options>
PowerON_Device_2: <path>/<command> <options>
PowerOFF_Device_2: <path>/<command> <options>
#### for PB mode ####
PB_INTERFACE: /dev/ttyACM0
PB_Device_1: 1
PB_Device_2: 2
PB_Device_3: 3
PB_Device_4: 4
#### for POE mode ####
POE_Device_1: <path>/<poescript> <options>
POE_Device_2: <path>/<poescript> <options>
#### for SNMP mode ####
SNMP_SWITCH_IP_ADRESS: 192.168.xxx.xxx
SNMP_COMMUNITY_STRING: string
SNMP_Device_1: 1
SNMP_Device_2: 2