-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.lua
More file actions
104 lines (91 loc) · 4.91 KB
/
config.lua
File metadata and controls
104 lines (91 loc) · 4.91 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
local sides = require("sides")
local colors = require("colors")
local loggerLib = require("lib.logger-lib")
local discordLoggerHandler = require("lib.logger-handler.discord-logger-handler-lib")
local fileLoggerHandler = require("lib.logger-handler.file-logger-handler-lib")
local lsc = require("src.lsc")
local gtnhController = require("src.controllers.gtnh-controller")
local redstoneController = require("src.controllers.redstone-controller")
local redstoneBundledController = require("src.controllers.redstone-bundled-controller")
local config = {
enableAutoUpdate = true, -- Enable auto update on start
logger = loggerLib:newFormConfig({
name = "LSC Control",
timeZone = 3, -- Your time zone
handlers = {
discordLoggerHandler:newFormConfig({
logLevel = "warning",
messageFormat = "{Time:%d.%m.%Y %H:%M:%S} [{LogLevel}]: {Message}",
discordWebhookUrl = "" -- Discord Webhook URL
}),
fileLoggerHandler:newFormConfig({
logLevel = "info",
messageFormat = "{Time:%d.%m.%Y %H:%M:%S} [{LogLevel}]: {Message}",
filePath = "logs.log"
})
}
}),
lsc = lsc:newFormConfig({
useMedian = false, -- Use median in calculations
wirelessMode = false, -- Use wireless network mode
version = "2.7", -- Your game version allow ["2.6", "2.7", "custom"]
customLines = { -- Lines number in SensorInformation for version ["custom"]
storedEu = 2, -- EU Stored line
capacity = 5, -- Total Capacity line
avgEuIn = 10, -- Avg EU IN: 0 (last 5 seconds) line
avgEuOut = 11, -- Avg EU OUT: 0 (last 5 seconds) line
capacitorUHV = 19, -- UHV Capacitors detected line
capacitorUEV = 20, -- UEV Capacitors detected line
capacitorUIV = 21, -- UIV Capacitors detected line
capacitorUMV = 22, -- UMV Capacitors detected line
wirelessStored = 23 -- Total wireless EU line
},
}),
generators = { -- List of generators to control
-- redstoneBundledController:newFormConfig({ -- Controller for control with redstone bundled cable
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of redstone IO
-- side = sides.north, -- Side of redstone IO to which connected bundled cable
-- color = colors.magenta, -- Color of bundled cable line
-- name = "Name", -- Name of generator
-- enableEuPercent = 75, -- EU percent (0 - 100) at which the generator switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the generator switches off
-- }),
-- redstoneController:newFormConfig({ -- Controller for control with redstone cable
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of redstone IO
-- side = sides.north, -- Side of redstone IO to which connected redstone
-- name = "Name", -- Name of generator
-- enableEuPercent = 75, -- EU percent (0 - 100) at which the generator switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the generator switches off
-- }),
-- gtnhController:newFormConfig({ -- Controller for direct control of the generator
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of adapter which connected to gtnh generator
-- name = "Name", -- Name of generator
-- enableEuPercent = 20, -- EU percent (0 - 100) at which the generator switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the generator switches off
-- }),
},
machines = { -- List of machines to control
-- redstoneBundledController:newFormConfig({ -- Controller for control with redstone bundled cable
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of redstone IO
-- side = sides.north, -- Side of redstone IO to which connected bundled cable
-- color = colors.magenta, -- Color of bundled cable line
-- name = "Name", -- Name of machine
-- enableEuPercent = 75, -- EU percent (0 - 100) at which the machine switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the machine switches off
-- }),
-- redstoneController:newFormConfig({ -- Controller for control with redstone cable
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of redstone IO
-- side = sides.north, -- Side of redstone IO to which connected redstone
-- name = "Name", -- Name of machine
-- enableEuPercent = 75, -- EU percent (0 - 100) at which the machine switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the machine switches off
-- }),
-- gtnhController:newFormConfig({ -- Controller for direct control of the machine
-- address = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", -- Address of adapter which connected to gtnh machine
-- name = "Name", -- Name of machine
-- enableEuPercent = 20, -- EU percent (0 - 100) at which the machine switches on
-- disableEuPercent = 98 -- EU percent (0 - 100) at which the machine switches off
-- }),
}
}
return config