Skip to content

Commit

Permalink
add grow config that effectively disables heating
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Mar 1, 2015
1 parent 9dc17d0 commit de0c7cb
Showing 1 changed file with 120 additions and 0 deletions.
120 changes: 120 additions & 0 deletions configs/grow_config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
configuration = {
name = "grow",
timestep = 60.0,
dbfile = "/var/gardend/gardend.db",
logfile = "/var/gardend/gardend.log",
inputs = {
tray_temperature_and_humidity_sensor = {
-- Driver name
driver = "htu21d",
-- State configuration
variables = {"tray_temperature", "tray_humidity"},
-- Block-specific configuration
i2c_devpath = "/dev/i2c-2",
i2c_address = 0x40,
},
--tray_light_sensor = {
-- -- Driver name
-- driver = "tsl2561",
-- -- State configuration
-- variables = {"tray_light"},
-- -- Block-specific configuration
-- i2c_devpath = "/dev/i2c-0",
-- i2c_address = 0x39,
--},
webcam = {
-- Driver name
driver = "webcam",
-- State configuration
variables = {"webcam_file"},
-- Block-specific configuration
interval = 5, -- 5 timestep interval
wwwdir = "/var/www",
archivedir = "/mnt/sd/webcam",
},
},
controllers = {
growlight_timer = {
-- Driver name
driver = "timer",
-- State configuration
variables = {"growlight_state"},
-- Block-specific configuration
time_on = {hour = 6, min = 0, sec = 0},
time_off = {hour = 22, min = 0, sec = 0},
},
heatmat_controller = {
-- Driver name
driver = "heatmat",
-- State configuration
variables = {"tray_temperature", "heatmat_hysteresis", "heatmat_state"},
-- Block-specific configuration
temperature_target = 20.0,
temperature_threshold_high = 0.25,
temperature_threshold_low = 0.5,
}
},
outputs = {
growlight_switch = {
-- Driver name
driver = "gpioswitch",
-- State configuration
variables = {"growlight_state"},
-- Block-specific configuration
gpio_number = 68,
active_low = false,
initial_value = false,
},
heatmat_switch = {
-- Driver name
driver = "gpioswitch",
-- State configuration
variables = {"heatmat_state"},
-- Block-specific configuration
gpio_number = 26,
active_low = false,
initial_value = false,
},
},
postprocessors = {
textstats = {
-- Driver name
driver = "textstats",
-- Block-specific configuration
variables = {
{name = "tray_temperature", units = "°C"},
{name = "tray_humidity", units = "%"},
--{name = "tray_light", units = "lux"},
{name = "heatmat_hysteresis", units = ""},
{name = "heatmat_state", units = "(on/off)"},
{name = "growlight_state", units = "(on/off)"},
},
file = nil,
},
webstats = {
-- Driver name
driver = "webstats",
-- Block-specific configuration
wwwdir = '/var/www',
blogfile = '/var/gardend/microblog.lua',
site_url = 'http://theanine.me',
stats_variables = {
{name = "tray_temperature", units = "C", description = "Tray Temperature"},
{name = "tray_humidity", units = "%", description = "Tray Humidity"},
--{name = "tray_light", units = "lux", description = "Tray Light"},
{name = "heatmat_state", units = "(on/off)", description = "Heatmat State"},
{name = "growlight_state", units = "(on/off)", description = "Growlight State"},
},
plot_utc_offset = -8,
plot_width = 600,
plot_height = 800,
plot_variables = {
{name = "tray_temperature", duration = 8*60*60},
{name = "heatmat_state", duration = 8*60*60},
{name = "tray_humidity", duration = 8*60*60},
--{name = "tray_light", duration = 8*60*60},
{name = "growlight_state", duration = 8*60*60},
},
}
},
}

0 comments on commit de0c7cb

Please sign in to comment.