Settings - olaaaf/hydroponics GitHub Wiki
Settings
Settings are stored in a json file, called settings.json
. The current version structure is as following:
{
"version": 0,
"port": 80,
"pump_intensity": 30,
"start_server": true,
"schedule" : {
"mon": [],
"tue": [],
"wed": [],
"thu": [],
"fri": [],
"sat": [],
"sun": []
}
}
version
is the current version of settings fileport
specifies the http port of the serverpump_intensity
is the power of the pump in percentage (0 - 100)start_server
stored in a boolean - whether to start the server, by default the pump runs all the timeschedule
specifies OFF times of the pump; each weekday holds a table of string of OFF times in seconds of the day divided by a "-" (for ex.["0-28800", "61200-86399"]
turns the pump off at 00:00-06:00 and 17:00-23:59)