mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
Add water level configuration
This commit is contained in:
@@ -528,6 +528,18 @@ class ChannelEditView(ChannelView, EditView):
|
|||||||
"format": lambda value: "Yes" if value else "No",
|
"format": lambda value: "Yes" if value else "No",
|
||||||
"help": "Enable/disable this channel",
|
"help": "Enable/disable this channel",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "Watering Level",
|
||||||
|
"prop": "water_level",
|
||||||
|
"inc": 0.05,
|
||||||
|
"min": 0,
|
||||||
|
"max": 1.0,
|
||||||
|
"mode": "float",
|
||||||
|
"round": 2,
|
||||||
|
"format": lambda value: f"{value * 100:0.2f}%",
|
||||||
|
"help": "Saturation at which watering occurs",
|
||||||
|
"context": "sat",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "Auto Water",
|
"title": "Auto Water",
|
||||||
"prop": "auto_water",
|
"prop": "auto_water",
|
||||||
|
|||||||
Reference in New Issue
Block a user