Corpus and formatting updates
parent
1fce146504
commit
4faab5fe6a
Binary file not shown.
|
@ -2,5 +2,6 @@
|
||||||
"skip_files": [
|
"skip_files": [
|
||||||
"lib/farmbot_celery_script/compiler/tools.ex"
|
"lib/farmbot_celery_script/compiler/tools.ex"
|
||||||
],
|
],
|
||||||
|
"minimum_coverage": 53,
|
||||||
"treat_no_relevant_lines_as_covered": true
|
"treat_no_relevant_lines_as_covered": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,6 @@
|
||||||
"calibrate",
|
"calibrate",
|
||||||
"change_ownership",
|
"change_ownership",
|
||||||
"check_updates",
|
"check_updates",
|
||||||
"dump_info",
|
|
||||||
"emergency_lock",
|
"emergency_lock",
|
||||||
"emergency_unlock",
|
"emergency_unlock",
|
||||||
"execute",
|
"execute",
|
||||||
|
@ -832,18 +831,6 @@
|
||||||
],
|
],
|
||||||
"docs": ""
|
"docs": ""
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"allowed_args": [],
|
|
||||||
"allowed_body_types": [],
|
|
||||||
"name": "dump_info",
|
|
||||||
"tags": [
|
|
||||||
"function",
|
|
||||||
"network_user",
|
|
||||||
"disk_user",
|
|
||||||
"api_writer"
|
|
||||||
],
|
|
||||||
"docs": "Sends an info dump to server administrators for troubleshooting."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"allowed_args": [],
|
"allowed_args": [],
|
||||||
"allowed_body_types": [],
|
"allowed_body_types": [],
|
||||||
|
@ -1170,7 +1157,6 @@
|
||||||
"calibrate",
|
"calibrate",
|
||||||
"change_ownership",
|
"change_ownership",
|
||||||
"check_updates",
|
"check_updates",
|
||||||
"dump_info",
|
|
||||||
"emergency_lock",
|
"emergency_lock",
|
||||||
"emergency_unlock",
|
"emergency_unlock",
|
||||||
"execute",
|
"execute",
|
||||||
|
@ -1242,7 +1228,6 @@
|
||||||
"calibrate",
|
"calibrate",
|
||||||
"change_ownership",
|
"change_ownership",
|
||||||
"check_updates",
|
"check_updates",
|
||||||
"dump_info",
|
|
||||||
"emergency_lock",
|
"emergency_lock",
|
||||||
"emergency_unlock",
|
"emergency_unlock",
|
||||||
"execute",
|
"execute",
|
||||||
|
|
|
@ -3,7 +3,10 @@ defmodule FarmbotCeleryScript.Corpus.NodeTest do
|
||||||
alias FarmbotCeleryScript.Corpus
|
alias FarmbotCeleryScript.Corpus
|
||||||
|
|
||||||
test "inspect" do
|
test "inspect" do
|
||||||
assert "Sequence(version, locals) [calibrate, change_ownership, check_updates, emergency_lock, emergency_unlock, execute, execute_script, factory_reset, find_home, flash_firmware, home, install_farmware, install_first_party_farmware, _if, move_absolute, move_relative, power_off, read_pin, read_status, reboot, remove_farmware, resource_update, send_message, set_servo_angle, set_user_env, sync, take_photo, toggle_pin, update_farmware, wait, write_pin, zero]" =
|
a =
|
||||||
inspect(Corpus.sequence())
|
"Sequence(version, locals) [calibrate, change_ownership, check_updates, emergency_lock, emergency_unlock, execute, execute_script, factory_reset, find_home, flash_firmware, home, install_farmware, install_first_party_farmware, _if, move_absolute, move_relative, power_off, read_pin, read_status, reboot, remove_farmware, resource_update, send_message, set_servo_angle, set_user_env, sync, take_photo, toggle_pin, update_farmware, wait, write_pin, zero]"
|
||||||
|
|
||||||
|
b = inspect(Corpus.sequence())
|
||||||
|
assert a == b
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use Mix.Config
|
use Mix.Config
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.AssetWorker.FarmbotCore.Asset.FarmEvent, checkup_time_ms: 10_000
|
config :farmbot_core, FarmbotCore.AssetWorker.FarmbotCore.Asset.FarmEvent,
|
||||||
|
checkup_time_ms: 10_000
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.AssetWorker.FarmbotCore.Asset.RegimenInstance,
|
config :farmbot_core, FarmbotCore.AssetWorker.FarmbotCore.Asset.RegimenInstance,
|
||||||
checkup_time_ms: 10_000
|
checkup_time_ms: 10_000
|
||||||
|
@ -18,9 +19,11 @@ config :farmbot_core, FarmbotCore.AssetWorker.FarmbotCore.Asset.PinBinding,
|
||||||
gpio_handler: FarmbotCore.PinBindingWorker.StubGPIOHandler,
|
gpio_handler: FarmbotCore.PinBindingWorker.StubGPIOHandler,
|
||||||
error_retry_time_ms: 30_000
|
error_retry_time_ms: 30_000
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.Leds, gpio_handler: FarmbotCore.Leds.StubHandler
|
config :farmbot_core, FarmbotCore.Leds,
|
||||||
|
gpio_handler: FarmbotCore.Leds.StubHandler
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.JSON, json_parser: FarmbotCore.JSON.JasonParser
|
config :farmbot_core, FarmbotCore.JSON,
|
||||||
|
json_parser: FarmbotCore.JSON.JasonParser
|
||||||
|
|
||||||
# Customize non-Elixir parts of the firmware. See
|
# Customize non-Elixir parts of the firmware. See
|
||||||
# https://hexdocs.pm/nerves/advanced-configuration.html for details.
|
# https://hexdocs.pm/nerves/advanced-configuration.html for details.
|
||||||
|
@ -43,13 +46,15 @@ config :farmbot_core, FarmbotCore.EctoMigrator,
|
||||||
"beta"
|
"beta"
|
||||||
)
|
)
|
||||||
|
|
||||||
config :farmbot_celery_script, FarmbotCeleryScript.SysCalls, sys_calls: FarmbotOS.SysCalls
|
config :farmbot_celery_script, FarmbotCeleryScript.SysCalls,
|
||||||
|
sys_calls: FarmbotOS.SysCalls
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.BotState.FileSystem,
|
config :farmbot_core, FarmbotCore.BotState.FileSystem,
|
||||||
root_dir: "/tmp/farmbot_state",
|
root_dir: "/tmp/farmbot_state",
|
||||||
sleep_time: 200
|
sleep_time: 200
|
||||||
|
|
||||||
config :farmbot_core, FarmbotCore.FarmwareRuntime, runtime_dir: "/tmp/farmware_runtime"
|
config :farmbot_core, FarmbotCore.FarmwareRuntime,
|
||||||
|
runtime_dir: "/tmp/farmware_runtime"
|
||||||
|
|
||||||
config :ecto, json_library: FarmbotCore.JSON
|
config :ecto, json_library: FarmbotCore.JSON
|
||||||
|
|
||||||
|
@ -60,13 +65,16 @@ config :farmbot_core,
|
||||||
FarmbotCore.Asset.Repo
|
FarmbotCore.Asset.Repo
|
||||||
]
|
]
|
||||||
|
|
||||||
config :farmbot_ext, FarmbotExt.API.Preloader, preloader_impl: FarmbotExt.API.Preloader.HTTP
|
config :farmbot_ext, FarmbotExt.API.Preloader,
|
||||||
|
preloader_impl: FarmbotExt.API.Preloader.HTTP
|
||||||
|
|
||||||
config :farmbot, FarmbotOS.FileSystem, data_path: "/tmp/farmbot"
|
config :farmbot, FarmbotOS.FileSystem, data_path: "/tmp/farmbot"
|
||||||
|
|
||||||
config :farmbot, FarmbotOS.System, system_tasks: FarmbotOS.Platform.Host.SystemTasks
|
config :farmbot, FarmbotOS.System,
|
||||||
|
system_tasks: FarmbotOS.Platform.Host.SystemTasks
|
||||||
|
|
||||||
config :farmbot, FarmbotOS.Configurator, network_layer: FarmbotOS.Configurator.FakeNetworkLayer
|
config :farmbot, FarmbotOS.Configurator,
|
||||||
|
network_layer: FarmbotOS.Configurator.FakeNetworkLayer
|
||||||
|
|
||||||
config :farmbot, FarmbotOS.Platform.Supervisor,
|
config :farmbot, FarmbotOS.Platform.Supervisor,
|
||||||
platform_children: [
|
platform_children: [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"coverage_options": {
|
"coverage_options": {
|
||||||
"treat_no_relevant_lines_as_covered": true,
|
"treat_no_relevant_lines_as_covered": true,
|
||||||
"minimum_coverage": 22
|
"minimum_coverage": 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,9 @@ defmodule FarmbotOS.Configurator.Router do
|
||||||
plug(:match)
|
plug(:match)
|
||||||
plug(:dispatch)
|
plug(:dispatch)
|
||||||
|
|
||||||
@network_layer Application.get_env(:farmbot, FarmbotOS.Configurator)[:network_layer]
|
@network_layer Application.get_env(:farmbot, FarmbotOS.Configurator)[
|
||||||
|
:network_layer
|
||||||
|
]
|
||||||
@telemetry_layer FarmbotOS.Configurator.DetsTelemetryLayer
|
@telemetry_layer FarmbotOS.Configurator.DetsTelemetryLayer
|
||||||
|
|
||||||
# Trigger for captive portal for various operating systems
|
# Trigger for captive portal for various operating systems
|
||||||
|
|
Loading…
Reference in New Issue