FarmBot supports six variable types:

Location variables

Location variables can be set to the following values:

  • Externally defined
  • Custom coordinates
  • Tools and Seed Containers
  • Plants
  • Weeds
  • Map Points

When a location variable is set to Externally defined and you are choosing a value for it in a regimen, event, execute command, or from the RUN button, you may also select a Group of Plants, Weeds, or Map Points.

Number variables

Number variables can be set to the following values:

  • Externally defined
  • Custom number

Custom numbers may be positive, negative, and have decimals.

Number variables are only usable from Lua commands via the variable() function. Refer to the Lua developer docs for additional usage information.

Text variables

Text variables can be set to the following values:

  • Externally defined
  • Custom text

Custom text may include any standard characters.

Text variables are only usable from Lua commands via the variable() function. Refer to the Lua developer docs for additional usage information.

Resource variables

Peripheral, sensor, and sequence variables are all grouped into one Resource category. To add one of these variable types, click the VARIABLES button followed by the RESOURCE option. At this time these variable types can only be set to Externally defined, and then they can be set to any peripheral, sensor, or sequence from a regimen, event, execute command, or from the RUN button.

Peripheral, sensor, and sequence variables are only usable from Lua commands via the variable() function. Refer to the Lua developer docs for additional usage information.

What’s next?