Download Latest Version v15.4.11 source code.tar.gz (913.0 kB)
Email in envelope

Get an email when there's a new version of FarmBot OS

Home / v15.4.8
Name Modified Size InfoDownloads / Week
Parent folder
farmbot-rpi3-15.4.8.img 2024-05-28 335.8 MB
farmbot-rpi4-15.4.8.img 2024-05-28 335.8 MB
farmbot-rpi4-15.4.8.sha256 2024-05-28 122 Bytes
farmbot-rpi-15.4.8.img 2024-05-28 335.8 MB
farmbot-rpi3-15.4.8.fw 2024-05-28 77.5 MB
farmbot-rpi3-15.4.8.sha256 2024-05-28 122 Bytes
farmbot-rpi4-15.4.8.fw 2024-05-28 86.8 MB
farmbot-rpi-15.4.8.fw 2024-05-28 76.3 MB
farmbot-rpi-15.4.8.sha256 2024-05-28 121 Bytes
README.md 2024-05-28 850 Bytes
v15.4.8 source code.tar.gz 2024-05-28 856.3 kB
v15.4.8 source code.zip 2024-05-28 1.1 MB
Totals: 12 Items   1.2 GB 0
  • Add support for using remote plant objects in the water Lua helper.
  • Add to_unix Lua helper.
  • Add planted_at to local plant objects.

:::lua
-- works in v15.4.7:
plant = variable("Plant")
water(plant)
-- `plant` is fetched locally and includes `age`:
print(inspect(plant))

-- does not work in v15.4.7, now works in v15.4.8:
plant_id = 12345
plant = api({method = "get", url = "/api/points/" .. plant_id})
water(plant)
-- `plant` is feteched from the Web App API and includes `planted_at`:
print(inspect(plant))

-- new `to_unix` helper:
plant_id = 12345
plant = api({method = "get", url = "/api/points/" .. plant_id})
print(to_unix(plant.planted_at))
print(to_unix(utc())
print(to_unix(utc()) - to_unix(local_time())) -- 0
Source: README.md, updated 2024-05-28