Commit Graph

273 Commits (feature/sequence-on-boot)

Author SHA1 Message Date
Connor Rigby 3886304c54
Force farmware to be reinstalled.
This has to be done because v8 was shipped with a configuration error causing
farmware to install to the temporary data partition on the raspberry pi.
2019-12-31 10:32:27 -08:00
Connor Rigby bd51878b41
Force bootupsequence worker to check farmware before executing 2019-12-31 10:32:27 -08:00
connor rigby 3f06afdccb
Make bootup sequence wait for farmware installion 2019-12-31 10:32:27 -08:00
connor rigby f23eb81616
Update bootup sequence logs 2019-12-31 10:32:27 -08:00
Connor Rigby 503e62507e
Refactor bootup sequence to be in `farmbot_os` application
This moves it's execution to much later in the boot process. Doing this
allows the bootup sequence to check for a number of things before
executing. Checked systems are:

* firmware configured
* bot is synced (which happens on every boot now)
* peripherals loaded
2019-12-31 10:32:26 -08:00
Connor Rigby e79e1e4d05
Add bootup sequence selction log 2019-12-31 10:32:09 -08:00
Connor Rigby 6704a40c5a
Force farmbot to sync on first boot 2019-12-31 10:32:09 -08:00
Connor Rigby fd7510fc94
Add bootup sequence feature 2019-12-31 10:32:08 -08:00
connor rigby 9b9091d5e2
Add `boot_sequence_id` to FbosConfig
also force resync of fbos config
2019-12-31 10:32:08 -08:00
Connor Rigby 1a1bcb49bc
Update fbos_config and peripherals to coordinate with firmware status 2019-12-31 10:32:08 -08:00
Connor Rigby 12049e04ba
Add helpers for inspecting asset states 2019-12-31 10:32:08 -08:00
Connor Rigby a76f67347a
Add new `configured` state to farmbot firmware 2019-12-31 10:32:07 -08:00
Connor Rigby d34ab2abb2
Add new system to track dependency statuses globally 2019-12-31 10:31:50 -08:00
connor rigby b11faf93a4 Cleanup more syncing and firmware logs 2019-12-30 09:23:39 -08:00
connor rigby 9eace5e87d Add farmduino 1.5 package 2019-12-27 10:35:50 -08:00
Connor Rigby d65a54223c Fix Firmware flashing on boot on express boards 2019-12-26 10:37:23 -08:00
Rick Carlino 7664d2a9cc Tests for needs_reset update usecase 2019-12-19 13:18:34 -08:00
Rick Carlino 27fb2d210c Tests for needs_reset base case 2019-12-19 13:18:34 -08:00
Rick Carlino d9fddde3e7 Add factory reset when device.needs_reset field changes 2019-12-19 13:18:34 -08:00
Rick Carlino b9e65aa503 Add `needs_reset` field (bool) to devices table. 2019-12-19 13:18:34 -08:00
Connor Rigby 6cb47d43aa Add docs for generating app specific docs 2019-12-18 13:01:20 -08:00
Connor Rigby 8f29577394 Add handler for axis load for express boards 2019-12-18 06:33:30 -08:00
connor rigby e36f98afc0 Update all places where params are listed 2019-12-18 06:33:30 -08:00
Rick Carlino dc6ec05ecc Dep updates for farmbot_core 2019-12-16 13:03:25 -08:00
connor rigby 2d52743068 Add check for farmware installation before execution 2019-12-16 08:35:58 -08:00
connor rigby 60e1594d26 Refactor Farmware to need less manual pid cleanup 2019-12-16 08:35:58 -08:00
Connor Rigby 1b6320d9dd Add `mounted_tool_id` to Device schema and worker 2019-12-16 08:35:58 -08:00
Connor Rigby 0257ef6c4d Add `mounted_tool_id` to `devices` table
WARNING: This modifies a previous migration
2019-12-16 08:35:58 -08:00
Connor Rigby 528956dd07 Fix firmware_debug_logs and arduino_debug_messages being ignored
Don't know which of these params is supposed to be used for this
feature, so added both of them.
2019-12-16 08:35:58 -08:00
connor rigby b1fdf1a5c3 Update log message for ota hour 2019-11-14 10:36:49 -08:00
Connor Rigby 54f3e282c1 Update ota-hour log format 2019-11-14 10:36:49 -08:00
Connor Rigby 9faea9c28c Add a log for when ota-hour is updated 2019-11-14 10:36:49 -08:00
Connor Rigby 0ba112c9c5 Fix bug causing sync errors in farmware-envs 2019-11-14 10:36:49 -08:00
connor rigby 381be026d6 Update nerves_hub_client to check for hour before applying ota 2019-11-14 10:36:49 -08:00
connor rigby 2ae369a710 Add `ota_hour` to `device` 2019-11-14 10:36:49 -08:00
Connor Rigby c159ddbe0b Fix farmware race condition 2019-11-12 11:42:20 -08:00
connor rigby 99f92c3298 Update Firmware IO logs 2019-11-05 13:09:40 -08:00
Connor Rigby 685177046b Set peripheral IO mode before read/writing 2019-11-05 13:09:40 -08:00
Connor Rigby 44bc196320 Add a timer that resets firmware_io logs after 5 minutes 2019-11-05 13:09:40 -08:00
Connor Rigby 2d3b7b0cf5 Add backoff timer to firmware flash 2019-11-05 13:09:40 -08:00
John H Simmonds 3f4722b7d0 Address issues with scheduler effort reporting; fixes for Issue 1040 2019-11-05 13:09:40 -08:00
Connor Rigby 9009ff6329 Update deps
* `tesla` 1.3.0
* `hackney` 1.15.2
* `tzdata` 1.0.2
* `amqp` ~> 1.3
* `circuits_gpio` 0.4.2
* `circuits_uart` 1.3.2
* `toolshed` 0.2.11
2019-10-31 14:00:08 -07:00
Connor Rigby b866e227a5 Add quick fix for encoder data being malformed 2019-10-31 14:00:08 -07:00
Connor Rigby 69ea5e9bcf Add gcode handler for `report_axis_timeout` 2019-10-31 14:00:08 -07:00
Connor Rigby ec56ebaf74 Add telemetry to the rest of the app
More things will be added in the future.
Metrics are collected from bot state because
the amount of messages sent by every bot would
make datadog charge us a lot of money
2019-10-31 14:00:08 -07:00
Connor Rigby 1539f45014 Add new farmbot_telemetry application 2019-10-31 14:00:08 -07:00
Connor Rigby c82619e470 Add referential integrity checker for point_groups
This will cause point_group updates to reindex any
running processes using those assets
2019-10-22 14:19:32 -07:00
Connor Rigby 2867fcce2a Implement some storting algos for points and point_groups 2019-10-22 14:19:32 -07:00
Connor Rigby a5022eed27 Factor out CeleryScript compiler into multiple modules
This should hopefully allow for easier to follow error messages as it
removes all elixir macro "magic"
2019-10-22 14:19:32 -07:00
connor rigby f843f097d9 Update `all_points` loop node to ignore soft deleted points 2019-10-22 14:19:32 -07:00