Hi @jsimmonds
My Farmbot is running the latest version. I took the code from this forum entry Nested sequences and Plant Groups - #13 by roryaronson
The “plant” feature is described in more detail in this documentation
I have also already executed this shared sequence The FarmBot Web App which should update all plants.
Unfortunately no success. It still returns the error that the plant has not yet been planted.
I have now rebuilt the LUA script and use “dispense” instead of “water(plant)”.
However, my aim is for the Farmbot to create a soil moisture reading for each group of plants and use this as a basis for deciding whether or not to water a group.
I have extended the script from the forum to measure three plant groups. This works well so far but …
It only waters the first plant in the group and then jumps to the next group. It seems as if the loop from the script is not working properly.
if soil_moisture_1 < moisture_threshold_all then
for i, member in ipairs(group(variable(“Group ID #1”))) do
plant = api({
method = “get”,
url = “/api/points/” … member
})
move_absolute(plant.x, plant.y, 0)
dispense1 = variable(“Dispense #1”)
dispense(dispense1)
end
end
@roryaronson You had provided the LUA code in the forum. Perhaps you have an idea what I am doing wrong here?
Thank you in advance for your support
Greetings Christian