Connor Rigby
7e90421f14
Update docs for variable sanitizer
2019-12-17 14:42:08 -08:00
Connor Rigby
f78b146bca
Delete old file
2019-12-17 14:25:20 -08:00
Rick Carlino
e1cbfa26f5
Dep updates for farmbot_celery_script
2019-12-16 13:03:25 -08:00
Connor Rigby
477a179ff9
Add log for executing `take-photo`
2019-11-14 10:36:49 -08:00
Connor Rigby
685177046b
Set peripheral IO mode before read/writing
2019-11-05 13:09:40 -08:00
Connor Rigby
f50c945232
Add new sequence logs to execute block
2019-10-31 14:40:33 -07:00
Connor Rigby
2eb94818a6
Add logs to sequence iteration
2019-10-31 14:40:32 -07: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
131a5f5e8d
Add UUID to telemetry payload
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
29bff57501
Fix missing command for calibrate and home
2019-10-24 14:03:11 -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
30d035fb88
Fix compiler tests
2019-10-22 14:19:32 -07:00
connor rigby
433af34e6a
Add ability to use loops in farm_events and regimens
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
1ff2a7d153
Implement `every_point` and `point_group` Celery nodes
2019-10-22 14:19:32 -07:00
Connor Rigby
96574f2033
Implement `resource_update` celery node
2019-09-24 12:47:08 -07:00
Connor Rigby
8a816ba1f4
Change if and read_pin to function the same as v7
...
this prevents the possibility of reading a sensor and it changing
by the time an if statement is executed
2019-09-13 16:03:34 -07:00
Gabriel Burnworth
85465f3044
add missing op log cases
2019-09-13 16:03:34 -07:00
Connor Rigby
46d259202c
Add sequence start/complete logs to regimen and farm_events
2019-09-13 16:03:34 -07:00
Connor Rigby
d22a390505
Update `if` logs to have more contextual information
2019-09-13 16:03:33 -07:00
Connor Rigby
cf2877c76e
Ensure firmware/rpc logs always dispatch
2019-09-13 16:03:33 -07:00
Connor Rigby
f400b2746f
Add new RPC for `toggle_pin`
...
This was previously implemented as a "macro" that just expanded
`toggle_pin` to a series of `read_pin` -> `write_pin` -> `read_pin` this
lead to three logs instead of just one. The implementation is still
mostly the same, but now there is less logging.
Also factored all pin control into it's own module
2019-09-13 16:03:32 -07:00
Connor Rigby
5373849f51
Update dependencies
...
* `elixir_make`
* `muontrap`
* `vintage_net`
* `busybox`
* `mdns_lite`
* `nerves_hub`
* `plug`
2019-09-13 16:03:32 -07:00
Connor Rigby
70c9035769
Fix non-string errors causing crashes
2019-09-13 16:03:32 -07:00
Connor Rigby
209ded96cb
Add Lua helpers for updating and getting resources
2019-09-13 16:03:32 -07:00
Connor Rigby
a242cce830
Add new log type for assertion logs
2019-09-13 16:03:32 -07:00
Connor Rigby
f756302fe6
Add option to continue and not recover from assertion
2019-09-13 16:03:32 -07:00
Connor Rigby
528acd119c
Fix execute block inside lua expression block
2019-09-13 16:03:32 -07:00
Gabriel Burnworth
2619586102
Change `update_farmware` fields to match corpus
2019-09-13 16:03:32 -07:00
Connor Rigby
d3081fcc56
Change field names of `assert` to match corpus
2019-09-13 16:03:31 -07:00
Connor Rigby
7e1ceaf7be
Implement new AST: `assert`.
...
This is a new AST that will allow executing a
simple expression and conditionally pass/fail
and cleanup when it completes.
2019-09-13 16:03:31 -07:00
Connor Rigby
a04ddf0159
Fix set_pin_io mode
2019-09-13 16:03:31 -07:00
Connor Rigby
fcadeebe6e
Add `update_farmware` rpc back
2019-09-13 16:03:31 -07:00
connor rigby
3231651b5f
Add :set_pin_io_mode rpc back to known rpcs
2019-09-13 16:03:30 -07:00
Connor Rigby
a6efc9df38
Remove scheduler debug logs
2019-09-13 16:03:28 -07:00
Connor Rigby
3569a21c72
Update to elixir 1.9
2019-09-13 16:03:27 -07:00
connor rigby
d4157175d4
Increase grace period in scheduler to 15 minutes
2019-09-13 16:03:27 -07:00
gabrielburnworth
62a101dc9c
Fix some farmware bugs
2019-09-13 16:03:27 -07:00
Connor Rigby
ed84cfeb2f
Add feature to subscribe to update to scheduled calendar
2019-09-13 16:03:27 -07:00
Connor Rigby
6c59d54244
Update logs for starting/completing a sequence
2019-09-13 16:03:26 -07:00
Connor Rigby
3d07c263ea
Fix scheduler not reindexing when an event is missed
...
* Add some breadcrumbs to see what the data that generated the scheduled
event looks like
* only monitor a process if it isn't monitored yet
2019-09-13 16:03:26 -07:00
connor rigby
55533675f5
Reenable sequence init and sequence complete logs
...
Sort of a hack, but store some metadata about a sequence in the AST
format, and if it exists, log it
2019-09-13 16:03:26 -07:00
Connor Rigby
6bb75de021
Allow flashing firmware at runtime
...
* Moves tty detector to farmbot_core
* Update elixir config to reflect this
* Update `flash_firmware` rpc to not circularly flash firmware
2019-09-13 16:03:25 -07:00
Connor Rigby
a160d6a41b
Fix factory_resetting the arduino-firmware
...
* Adds `api_migrated` field to FirmwareConfig
* Changes `factory_reset()` syscall to be `factory_reset(package)`
2019-09-13 16:03:25 -07:00
connor rigby
2a884f3b41
Fix typo in `If`
2019-09-13 16:03:25 -07:00
connor rigby
e7fed8838d
Update home all log
2019-09-13 16:03:25 -07:00
connor rigby
5ca92090a1
Update more logs
...
* Any float is not formatted very specifically
* if the remainder in the decimal is `0`, don't display decimal
* if the remainder is not zero, truncate to only one decimal place
* Write/Read pin
* yeah that got messy
2019-09-13 16:03:25 -07:00
connor rigby
ce3480a0f5
Add log for relative movement
2019-09-13 16:03:25 -07:00
connor rigby
d2239d76c3
Try add log channels more aggressively
2019-09-13 16:03:24 -07:00