Skip to content

Commit eade856

Browse files
Merge pull request #1514 from FarmBot/staging
v15.4.7
2 parents abd8dbe + ee18737 commit eade856

31 files changed

+7017
-6642
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ version: 2.0
22
defaults: &defaults
33
working_directory: /nerves/build
44
docker:
5-
- image: ghcr.io/nerves-project/nerves_system_br:1.24.1
5+
- image: ghcr.io/nerves-project/nerves_system_br:1.23.2
66

77
install_elixir: &install_elixir
88
run:
99
name: Install Elixir
1010
command: |
11-
wget https://repo.hex.pm/builds/elixir/v1.15.4-otp-26.zip
12-
unzip -d /usr/local/elixir v1.15.4-otp-26.zip
11+
wget https://repo.hex.pm/builds/elixir/v1.16.2-otp-26.zip
12+
unzip -d /usr/local/elixir v1.16.2-otp-26.zip
1313
echo 'export PATH=/usr/local/elixir/bin:$PATH' >> $BASH_ENV
1414
1515
install_hex_archives: &install_hex_archives

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
erlang 26.0.2
2-
elixir 1.15.4-otp-26
1+
erlang 26.2.5
2+
elixir 1.16.2-otp-26

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
# 15.4.7
4+
5+
* Firmware update to fix calibration deadzone settings.
6+
* Add optional arguments to `take_photo` and `take_photo_raw` lua helpers.
7+
* Add point group `planted_at`/`created_at` conditional.
8+
* Add `utc` and `local_time` lua helpers.
9+
* Dependency updates.
10+
311
# 15.4.6
412

513
* Dependency updates (includes `RingLogger.viewer`).

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
**NOTE:** These instructions are for **software developers only.** If you just want to run FarmBot OS on a FarmBot kit you have purchased, please [see these instructions instead](https://software.farm.bot/v14/FarmBot-OS/farmbot-os.html).
3+
**NOTE:** These instructions are for **software developers only.** If you just want to run FarmBot OS on a FarmBot kit you have purchased, please [see these instructions instead](https://software.farm.bot/docs/farmbot-os).
44

55
1. Install the [ASDF Package Manager](https://asdf-vm.com/)
66
2. Install Elixir and Erlang via ASDF. The correct version can be found in the [.tool-versions file](https://github.com/FarmBot/farmbot_os/blob/staging/.tool-versions).

ELIXIR_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
~> 1.15.4
1+
~> 1.16.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Old versions of FarmBot OS can be found [here](https://github.com/FarmBot/farmbo
1717

1818
## Installing FBOS on a Device
1919

20-
[END USERS: See the official documentation](https://software.farm.bot/v14/FarmBot-OS/farmbot-os.html)
20+
[END USERS: See the official documentation](https://software.farm.bot/docs/farmbot-os)
2121

2222
## Problems?
2323

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.4.6
1+
15.4.7

lib/core/asset/criteria_retriever.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ defmodule FarmbotOS.Asset.CriteriaRetriever do
7171
String.starts_with?(k, meta)
7272
end)
7373
|> Enum.map(fn {k, value} ->
74-
clean_key = String.slice(k, meta_len..-1)
74+
clean_key = String.slice(k, meta_len..-1//1)
7575
{clean_key, value}
7676
end)
7777
|> Enum.reduce(%{}, fn {key, value}, all ->
@@ -152,7 +152,13 @@ defmodule FarmbotOS.Asset.CriteriaRetriever do
152152
">"
153153
end
154154

155-
{pg, accum ++ [{"created_at", inverted_op, time}]}
155+
field =
156+
"CASE
157+
WHEN pointer_type = 'Plant' THEN planted_at
158+
ELSE created_at
159+
END"
160+
161+
{pg, accum ++ [{field, inverted_op, time}]}
156162
end
157163
end
158164

lib/os/configurator/router.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ defmodule FarmbotOS.Configurator.Router do
66
require FarmbotTelemetry
77

88
import Phoenix.HTML
9+
use PhoenixHTMLHelpers
910
use Plug.Router
1011
use Plug.Debugger, otp_app: :farmbot
1112
alias FarmbotOS.Configurator.ConfigDataLayer

lib/os/lua.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ defmodule FarmbotOS.Lua do
169169
soil_height: &DataManipulation.soil_height/2,
170170
sort: &DataManipulation.sort/2,
171171
take_photo_raw: &DataManipulation.take_photo_raw/2,
172-
take_photo: execute_script("take-photo"),
172+
take_photo: &DataManipulation.take_photo/2,
173173
toggle_pin: &Firmware.toggle_pin/2,
174174
uart: [
175175
{:open, &FarmbotOS.Firmware.LuaUART.open/2},
@@ -178,6 +178,8 @@ defmodule FarmbotOS.Lua do
178178
update_device: &DataManipulation.update_device/2,
179179
update_fbos_config: &DataManipulation.update_fbos_config/2,
180180
update_firmware_config: &DataManipulation.update_firmware_config/2,
181+
utc: &Info.utc/2,
182+
local_time: &Info.local_time/2,
181183
verify_tool: &DataManipulation.verify_tool/2,
182184
wait_ms: &Wait.wait/2,
183185
wait: &DataManipulation.wait/2,

0 commit comments

Comments
 (0)