|
{
|
|
"plant": {
|
|
"id": "PLT01",
|
|
"nimi": "Valkosipuli",
|
|
"type": "Sipuli",
|
|
"planting_day": "10.10.2019",
|
|
"short_description": "Sipulikasvi, joka maistuu hyvältä",
|
|
"long_description": "Sipulikasvi, joka maistuu hyvältä ja viihtyy hyvin",
|
|
"imagefile": "../Photos/valkosipulivk1.jpeg",
|
|
"logfile": "/path/to/plant/log/file.log"
|
|
},
|
|
|
|
"sensors": {
|
|
|
|
"moisture": {
|
|
"enabled": true,
|
|
"sensor_type": "common",
|
|
"gpio_pin": 16,
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"sensor_friendly_name": "Moisture sensor (1)",
|
|
"trigger_data_type": "dummy_on_off",
|
|
"trigger_min": 0.00,
|
|
"trigger_max": 1.00,
|
|
"time": {
|
|
"use_time": true,
|
|
"months": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true,
|
|
"5": true,
|
|
"6": true,
|
|
"7": true,
|
|
"8": true,
|
|
"9": true,
|
|
"10": true,
|
|
"11": true,
|
|
"12": true
|
|
},
|
|
"weeks": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true
|
|
},
|
|
"days": {
|
|
"mon": { "enabled": true, "interval": ["12.00", "18.00"] },
|
|
"tue": { "enabled": true, "interval": ["08.00", "16.00"] },
|
|
"wed": { "enabled": true, "interval": ["13.00", "20.00"] },
|
|
"thu": { "enabled": true, "interval": ["04.00", "12.00"] },
|
|
"fri": { "enabled": true, "interval": ["12.00", "18.00"] },
|
|
"sat": { "enabled": true, "interval": ["06.00", "14.00"] },
|
|
"sun": { "enabled": true, "interval": ["15.00", "23.59"] }
|
|
}
|
|
},
|
|
"devices_out": {
|
|
"common": {
|
|
"use_devices_out": true,
|
|
"keepalivetime_min": 0.25,
|
|
"keepalivetime_max": 5.00
|
|
},
|
|
"devices_out_spec": [
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": 23,
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"operation_type": "irrigation",
|
|
"name": "pump_1",
|
|
"friendly_name": "Water pump (1)"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": 24,
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"operation_type": "irrigation",
|
|
"name": "pump_2",
|
|
"friendly_name": "Water pump (2)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
"light": {
|
|
"enabled": true,
|
|
"sensor_type": "common",
|
|
"gpio_pin": 19,
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"sensor_friendly_name": "Light sensor (1)",
|
|
"trigger_data_type": "i2c_device: 200",
|
|
"trigger_min": 0.00,
|
|
"trigger_max": 1.00,
|
|
"time": {
|
|
"use_time": true,
|
|
"months": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true,
|
|
"5": true,
|
|
"6": true,
|
|
"7": true,
|
|
"8": true,
|
|
"9": true,
|
|
"10": true,
|
|
"11": true,
|
|
"12": true
|
|
},
|
|
"weeks": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true
|
|
},
|
|
"days": {
|
|
"mon": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"tue": { "enabled": true , "interval": ["08.00", "16.00"] },
|
|
"wed": { "enabled": true , "interval": ["13.00", "20.00"] },
|
|
"thu": { "enabled": true , "interval": ["04.00", "12.00"] },
|
|
"fri": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"sat": { "enabled": true , "interval": ["06.00", "14.00"] },
|
|
"sun": { "enabled": true , "interval": ["15.00", "23.59"] }
|
|
}
|
|
},
|
|
"devices_out": {
|
|
"common": {
|
|
"use_devices_out": true,
|
|
"keepalivetime_min": 5.00,
|
|
"keepalivetime_max": 600.00
|
|
},
|
|
"devices_out_spec": [
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": "",
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"operation_type": "lighting",
|
|
"name": "light_1",
|
|
"friendly_name": "UV lamp (1)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
"temperature": {
|
|
"enabled": true,
|
|
"gpio_pin": 36,
|
|
"sensor_type": "temperature",
|
|
"device_type": "THERM_SENSOR_DS18B20",
|
|
"device_id": "",
|
|
"sensor_friendly_name": "Temperature sensor (1)",
|
|
"time": {
|
|
"use_time": true,
|
|
"months": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true,
|
|
"5": true,
|
|
"6": true,
|
|
"7": true,
|
|
"8": true,
|
|
"9": true,
|
|
"10": true,
|
|
"11": true,
|
|
"12": true
|
|
},
|
|
"weeks": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true
|
|
},
|
|
"days": {
|
|
"mon": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"tue": { "enabled": true , "interval": ["08.00", "16.00"] },
|
|
"wed": { "enabled": true , "interval": ["13.00", "20.00"] },
|
|
"thu": { "enabled": true , "interval": ["04.00", "12.00"] },
|
|
"fri": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"sat": { "enabled": true , "interval": ["06.00", "14.00"] },
|
|
"sun": { "enabled": true , "interval": ["15.00", "23.59"] }
|
|
}
|
|
},
|
|
"temperature": {
|
|
"format": "celsius",
|
|
"baseline": 30.00,
|
|
"threshold": 0.10,
|
|
"tolerance": 4.00,
|
|
"precision": 12
|
|
},
|
|
"devices_out": {
|
|
"common": {
|
|
"use_devices_out": true,
|
|
"keepalivetime_min": 0.25,
|
|
"keepalivetime_max": 500.00
|
|
},
|
|
"devices_out_spec": [
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": 25,
|
|
"gpio_pin_initialstate": "HIGH",
|
|
"gpio_pin_upstate": "LOW",
|
|
"operation_type": "warming",
|
|
"name": "warming_1",
|
|
"friendly_name": "Battery (1)"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": 26,
|
|
"gpio_pin_initialstate": "HIGH",
|
|
"gpio_pin_upstate": "LOW",
|
|
"operation_type": "cooling",
|
|
"name": "cooling_1",
|
|
"friendly_name": "Cooling box (1)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
"acidity": {
|
|
"enabled": true,
|
|
"sensor_type": "common",
|
|
"gpio_pin": "",
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"sensor_friendly_name": "pH sensor (1)",
|
|
"trigger_data_type": "i2c_device: 200",
|
|
"trigger_min": 0.00,
|
|
"trigger_max": 1.00,
|
|
"time": {
|
|
"use_time": true,
|
|
"months": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true,
|
|
"5": true,
|
|
"6": true,
|
|
"7": true,
|
|
"8": true,
|
|
"9": true,
|
|
"10": true,
|
|
"11": true,
|
|
"12": true
|
|
},
|
|
"weeks": {
|
|
"1": true,
|
|
"2": true,
|
|
"3": true,
|
|
"4": true
|
|
},
|
|
"days": {
|
|
"mon": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"tue": { "enabled": true , "interval": ["08.00", "16.00"] },
|
|
"wed": { "enabled": true , "interval": ["13.00", "20.00"] },
|
|
"thu": { "enabled": true , "interval": ["04.00", "12.00"] },
|
|
"fri": { "enabled": true , "interval": ["12.00", "18.00"] },
|
|
"sat": { "enabled": true , "interval": ["06.00", "14.00"] },
|
|
"sun": { "enabled": true , "interval": ["15.00", "23.59"] }
|
|
}
|
|
},
|
|
"devices_out": {
|
|
"common": {
|
|
"use_devices_out": true,
|
|
"keepalivetime_min": 0.25,
|
|
"keepalivetime_max": 5.00
|
|
},
|
|
"devices_out_spec": [
|
|
{
|
|
"enabled": true,
|
|
"gpio_pin": "",
|
|
"gpio_pin_initialstate": "LOW",
|
|
"gpio_pin_upstate": "HIGH",
|
|
"operation_type": "fertilize",
|
|
"name": "fert_1",
|
|
"friendly_name": "Fertilizer pump (1)"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|