Commit graph

1562 commits

Author SHA1 Message Date
Connor Rigby e4d9847118 Fix compiler error. 2017-12-09 13:57:27 -08:00
Connor Rigby 8c43489363 Only log movement messages when arduino config is disabled 2017-12-09 13:56:12 -08:00
Connor Rigby 7a1775948b More logging updates. 2017-12-09 13:52:52 -08:00
Connor Rigby f996b08590 Remove debug logs for farm events 2017-12-09 13:25:24 -08:00
Connor Rigby b97cd8ebdc Update farmevent logs, fix copiler warning 2017-12-09 13:15:04 -08:00
Connor Rigby e44bc514d7 Fix move absolute speed multiplication 2017-12-09 12:51:58 -08:00
Connor Rigby 27bf57fb0f Fix failing credo 2017-12-09 12:31:01 -08:00
Connor Rigby 4b925bc2a9 Update logs for syncing 2017-12-09 11:51:47 -08:00
Connor Rigby c6735f3210 Fix update farmware. 2017-12-09 11:48:40 -08:00
Connor Rigby 129288418d Fix farmwares not in repos getting synced 2017-12-08 18:55:13 -08:00
Connor Rigby a8d1a885d9 Fix firmware logging 2017-12-08 16:58:39 -08:00
Connor Rigby 2cbd62b554 Make sure to serialize env into farmwawre runtime 2017-12-08 15:48:23 -08:00
Connor Rigby 109498c806 Add new configs to config_update 2017-12-08 15:10:30 -08:00
Connor Rigby 68e3eb8fd4 Add config option for logging raw firmware input/output 2017-12-08 15:10:30 -08:00
Connor Rigby 9656824d5f Fix some compiler warnings 2017-12-08 14:57:38 -08:00
Connor Rigby 1c3ceb4b08 Only list dir if it exists. 2017-12-08 14:55:48 -08:00
Connor Rigby 601b3e2585 Make sure to index all farmware on bootup 2017-12-08 14:53:56 -08:00
Connor Rigby d1b2ce7f89 Add paramater for arduino debug logs 2017-12-08 12:47:39 -08:00
Connor Rigby 6d2e831da9 Add rescue block to firmware input parser 2017-12-08 11:39:10 -08:00
Connor Rigby bd490b7975 Fix bad function call 2017-12-07 19:10:03 -08:00
Connor Rigby 51a9682adf Cleanup farmware lookup 2017-12-07 19:10:03 -08:00
Connor Rigby e140d152d8 drop multi version support 2017-12-07 19:10:03 -08:00
Connor Rigby 3682a80ff7 Get rid of old/ugly logs 2017-12-07 17:47:15 -08:00
Connor Rigby ab2551d280 Alias warning -> warn in send_message 2017-12-07 17:21:28 -08:00
Connor Rigby 70c75680b4 Fix tests 2017-12-07 17:03:02 -08:00
Connor Rigby d89f9ab63c Fix factory resetting of arduino firmware. 2017-12-07 17:00:10 -08:00
Connor Rigby d97bf1f528 Disable farmware logs 2017-12-07 15:28:31 -08:00
Connor Rigby cad0b2b3f7 Fix bad case clause for farmware installation 2017-12-07 14:57:05 -08:00
Connor Rigby 2f3f2093a2 Add conditional for autosync after eunlock 2017-12-07 14:53:25 -08:00
Connor Rigby 52f6cf279f Add formatting to cs nodes, and add infinity timeout for repo calls 2017-12-07 13:44:06 -08:00
Connor Rigby c91665de86 Disable debug messages in farm event manager. 2017-12-07 12:51:49 -08:00
Connor Rigby 9773404a62 fix whitespace. 2017-12-07 12:36:42 -08:00
Connor Rigby d0925254c2 Write some tests for firmware 2017-12-06 20:56:54 -08:00
Connor Rigby 238d4a56f5 Add led debuggers, clean up stub fw impl, add default network configurator 2017-12-06 20:02:49 -08:00
Connor Rigby 8c174a4f04 Fix sequences 2017-12-06 16:14:41 -08:00
Connor Rigby d1ab961be9 Add easter eggs back. 2017-12-06 15:53:14 -08:00
Connor Rigby 0ca3ad1f8b Stub arg for locals. 2017-12-06 15:16:27 -08:00
Connor Rigby 9712179025 Fix rpi3 build again. 2017-12-06 13:23:27 -08:00
Connor Rigby 055fc81356 update config update log verbosity. 2017-12-06 12:46:04 -08:00
Connor Rigby dd4b62f507 Add version to logs.meta and remove mqtt botstate transport 2017-12-06 12:41:01 -08:00
Connor Rigby 17398ae041 Fix nerves_firmware_ssh 2017-12-06 12:09:38 -08:00
Connor Rigby e597e1f726 Fix firmware flashing 2017-12-05 20:29:10 -08:00
Connor Rigby e731e5be35 Fix failing tests 2017-12-05 18:28:02 -08:00
Connor Rigby 0285160151 Fix factory reset for arduino 2017-12-05 18:13:28 -08:00
Connor Rigby a720147453 Not exactly sure what is happening here.. 2017-12-05 12:33:15 -08:00
Connor Rigby 34ef41632f Add some tests 2017-12-05 10:16:48 -08:00
Connor Rigby 54f777edec Fix stub handler never reporting position. 2017-12-04 15:44:26 -08:00
Connor Rigby af40143c05 Fix typo 2017-12-04 15:38:43 -08:00
connor rigby 1661d10d15 More prod prep 2017-12-04 13:20:01 -08:00
connor rigby e87d209180 Be sure to put different creds in auth_secret_travis later. 2017-12-04 11:09:30 -08:00
connor rigby 75853f8986 Fix firmware initializer fun 2017-12-04 10:18:55 -08:00
connor rigby 94525fae04 Misc test fixes.
* Temp disable set_user_env test.
* add test support for waiting for the firmware handler to be up
2017-12-04 10:00:33 -08:00
connor rigby d04b8c6e2a Add log verbosity to amqp client. 2017-12-04 09:46:53 -08:00
connor rigby 1775a0be6c Fix test template 2017-12-04 09:35:47 -08:00
connor rigby c78c49e170 Add New celery_script node for setting servo angle. 2017-12-04 09:35:47 -08:00
connor rigby df565dc8c3 Strip Elixir Namespace from module name. 2017-12-04 09:35:47 -08:00
connor rigby 8d62db32ac Add new celeryscript node generator. 2017-12-04 09:35:47 -08:00
connor rigby 20b1e30fa4 Add set_servo_angle to Firmware Behaviour. 2017-12-04 09:35:47 -08:00
Connor Rigby e9669135d1 Add some tests 2017-12-01 19:08:07 -08:00
Connor Rigby 5ed7b5bb09 Get rid of weird -1 inband signaling. 2017-12-01 17:54:31 -08:00
Connor Rigby afe35f63a5 typeof(bool) != typeof(float) 2017-12-01 17:39:54 -08:00
Connor Rigby 310c367309 Add new configs 2017-12-01 17:07:54 -08:00
Connor Rigby 37fa89ac4f Misc credo cleanup and elixir formatter. 2017-11-30 09:45:05 -08:00
Connor Rigby d60f008d30 Tune gpio timeout, set default for firmware version 2017-11-29 23:33:05 -08:00
Connor Rigby cec26b5fed Fix tests 2017-11-29 22:18:52 -08:00
Connor Rigby ab317e83c0 Add farmbot os version to farmware runtime. 2017-11-29 21:39:30 -08:00
Connor Rigby a1f4896fed Add options to disable parts of sequences 2017-11-29 20:51:05 -08:00
Connor Rigby e0f246dcc6 Remove old db call 2017-11-29 20:26:33 -08:00
Connor Rigby 5dd6ed956a Move helpers into their own module, implement factory_reset option. 2017-11-29 20:26:33 -08:00
Connor Rigby 4ea3efaafd Store gpio registations in db, publish in bot state tree 2017-11-29 18:00:55 -08:00
Connor Rigby 44b233dad8 remove annoying logs 2017-11-29 18:00:55 -08:00
Connor Rigby 191903ac59 💥 2017-11-29 18:00:55 -08:00
Connor Rigby 15d1b36474 Build out ale handler 2017-11-29 18:00:55 -08:00
Connor Rigby 176d22667c New ast node for registering gpio to sequence 2017-11-29 18:00:55 -08:00
Connor Rigby 08ce508453 Layout framework for gpio. 2017-11-29 18:00:55 -08:00
Connor Rigby cadeab70fe Migrate a v5 bot to v6. 2017-11-28 13:59:04 -08:00
Connor Rigby 57fb093df6 Add filename to image uploader 2017-11-28 08:42:46 -08:00
connor rigby 31ea283015 amqp-mqtt swap now enabled 2017-11-27 13:48:07 -08:00
connor rigby 94314cce9d Allow speed on a per axis basis like the fw expects 2017-11-27 13:13:16 -08:00
connor rigby 7dcb3df98d More Network updates.
* Add network_not_found delay to the list of keys.
* Add method for getting ip address
2017-11-27 13:12:23 -08:00
connor rigby 6b3cdcb612 Network updates
* Add handler for network not found.
  * if never connected - reset
  * if no delay configured - reset
  * if delay configured, start timer. reset if timer completes before
  connection.
* Update facotry reset message display.
* Allow manual input for wireless ssid.
2017-11-27 12:46:15 -08:00
connor rigby a2da261066 Bump ranch listeners down accross the app.. 2017-11-27 08:10:01 -08:00
connor rigby 8031bdce40 Cleanup old logs 2017-11-27 07:28:56 -08:00
Connor Rigby f91d8aa2b0 development tool to find farmbot on network. 2017-11-24 14:57:45 -08:00
connor rigby 7cbe0aa3c4 add better message for tools not in slots 2017-11-22 09:06:28 -08:00
connor rigby 1662ad94ee Fix moveing to a point. 2017-11-22 08:43:27 -08:00
connor rigby 13c8cd675f Fix calibration after report. 2017-11-21 12:45:58 -08:00
connor rigby b351882d68 Fix set_zero. 2017-11-21 12:31:01 -08:00
connor rigby 910b7c6d77 Add log for unlocked bot. 2017-11-21 12:22:53 -08:00
connor rigby aa056a7a29 Make sequence errors lock bot, don't start sequence if bot is locked. 2017-11-21 12:20:10 -08:00
connor rigby abbdc7d813 If a sequence fails, lock the bot. 2017-11-21 11:57:19 -08:00
connor rigby 599947815e Inject sequence name into ast in farmevents and regimens. 2017-11-21 11:52:45 -08:00
connor rigby 117eaec2f1 Shoehorn sequence name into the args. Hopefully this ins't an issue later on. 2017-11-21 09:52:45 -08:00
connor rigby 296ea01ea1 Fix in if reguarding pins. 2017-11-21 09:29:09 -08:00
Connor Rigby 277ada3c89 fix host udev, add verbosity to log meta 2017-11-20 20:42:29 -08:00
Connor Rigby 3b933074d2 Fix bad logic. 2017-11-20 20:37:20 -08:00
connor rigby 2eddf23878 Add ability to plug/unplug arduino without disaster 2017-11-20 12:16:46 -08:00
connor rigby 5bc7955488 Add firmware POST check..
* Wait for the startup message before allowing the `Firmware` module
  to issue commands to the `uart_handler`
* Fix bad formatted r82 messages factory resetting the bot.
2017-11-20 09:00:13 -08:00
connor rigby 78b68cae11 Re add arduino timeout. :/ 2017-11-20 08:37:35 -08:00
connor rigby a982c4166b add special things to variable blacklist 2017-11-17 09:44:33 -08:00
connor rigby 0d20d2a5b9 Misc celeryscript fixes.
* reenable `find_home` checks.
* add mech for only logging an error once.
* fix `read_pin` bad pattern.
* fix `send_message` pin pattern.
* fix _if execution of `nothing`
2017-11-17 09:09:24 -08:00
connor rigby d36116eb3d bring back fw flashing 2017-11-16 13:47:36 -08:00
Connor Rigby f991a2be2d [BROKEN] start building fw updater 2017-11-16 11:30:21 -08:00
Connor Rigby 9eb189ec44 Maybe fix FarmEvent - Sequence execution 2017-11-16 07:20:12 -08:00
Connor Rigby b355aa4341 Add logs to sequence execution. 2017-11-16 07:15:03 -08:00
connor rigby 78c4cc10dd wait for sync for realz 2017-11-15 11:07:35 -08:00
connor rigby c6b00bca73 set default channel 2017-11-15 11:02:49 -08:00
connor rigby c134ec4cf4 remove mix call 2017-11-15 11:01:06 -08:00
connor rigby 8bab843683 Upload take-photo to slack for fun. 2017-11-15 10:51:24 -08:00
connor rigby e7beaa5f2a clean up logs 2017-11-15 09:59:28 -08:00
connor rigby 6a2c3ebc26 fix amqp transport with new sync_cmd. 2017-11-15 09:47:52 -08:00
Connor Rigby 34c6b05fe2 disable noisy log 2017-11-14 15:40:50 -08:00
Connor Rigby 2c80c0b4b8 Slack shell. 2017-11-14 15:30:04 -08:00
connor rigby c08e37e148 Add sanatizer for send_message. 2017-11-14 14:15:46 -08:00
connor rigby 4e712ccc0c allod sync_cmd body to be null 2017-11-14 12:01:12 -08:00
connor rigby e6def9bfcd ack rpc ok messages to from_device after auto sync commands are applied 2017-11-14 11:08:51 -08:00
Connor Rigby 7b4517e320 close socket before updating. 2017-11-14 10:33:30 -08:00
Connor Rigby 47dcf07314 Read peripherals after a sync. 2017-11-14 10:29:01 -08:00
connor rigby e96a3ab149 store sync commands in sqlite. 2017-11-14 07:15:18 -08:00
connor rigby b07ae9c2fb add dl updater to bot state 2017-11-13 13:58:49 -08:00
connor rigby f595f9e38a add a force sync mech to repo manager 2017-11-13 13:22:08 -08:00
connor rigby a67508eac5 fix celeryscript ast encodeing. 2017-11-13 12:29:34 -08:00
connor rigby b782fb5f7e Try to speed up travis 2017-11-13 12:10:58 -08:00
connor rigby 1407d25bf6 fix bad psk not factory resetting bot 2017-11-13 11:55:37 -08:00
connor rigby 60b6da11e3 Use auth 2017-11-13 10:27:25 -08:00
connor rigby 40d33368e7 Fix stub handler set_pin_mode 2017-11-13 10:21:11 -08:00
connor rigby 0ae5cf927f New AMQP transport to replace MQTT. 2017-11-13 10:20:51 -08:00
Connor Rigby 044b271110 fix missing ssh keys 2017-11-12 17:10:26 -08:00
Connor Rigby 549d78e6e1 stream to fwup instead of saving a file, and then writing it 2017-11-12 16:52:04 -08:00
Connor Rigby 8caa47f9d8 We need to go deeper 2017-11-12 13:21:52 -08:00
Connor Rigby db39a9dd58 fix http requests timing out 2017-11-12 13:19:12 -08:00
Connor Rigby 049c68f975 check if os auto updates are enabled 2017-11-11 15:53:24 -08:00
Connor Rigby 0a83d135b1 clean up slack updater. 2017-11-11 15:50:45 -08:00
Connor Rigby bd84c64796 bring back slack uploader 2017-11-11 15:35:50 -08:00
Connor Rigby 73a11a5353 add logs for homing complete 2017-11-11 10:58:07 -08:00
Connor Rigby 68c7074a1d numbers don't work that way. 2017-11-11 10:54:04 -08:00
Connor Rigby fbe97119c3 Merge branch 'purge-context' of github.com:ConnorRigby/farmbot_os into purge-context 2017-11-11 10:48:58 -08:00
Connor Rigby 4b379375ba Add new report for homing. 2017-11-11 10:48:44 -08:00
connor rigby b0658efbc2 bring back farmevents and regimens 2017-11-10 12:10:02 -08:00
connor rigby 3db2a97271 write some tests 2017-11-10 09:51:56 -08:00
connor rigby 99ecc1035d whoops. I didn't know what F43 was. 2017-11-09 17:38:44 -08:00
connor rigby a581557481 add set_pin_mode to stub handler 2017-11-09 17:34:06 -08:00
connor rigby 75d7b4b85c fix peripheral toggles? 2017-11-09 17:30:26 -08:00
connor rigby 65286edfe4 fix report softawre version 2017-11-09 17:10:47 -08:00
connor rigby df4faf9174 Fix debug router. 2017-11-09 16:57:18 -08:00
connor rigby 9171d38bfa make firmware commands block 2017-11-09 16:23:47 -08:00
connor rigby 3069e5c3db add mix tasks back. 2017-11-09 16:22:52 -08:00
connor rigby b9479fd266 fix image uploader 2017-11-09 14:25:53 -08:00
connor rigby 8d5157546f fix farmware, logs, etc 2017-11-09 13:59:26 -08:00
Connor Rigby 17a865c232 cleanup. 2017-11-09 11:11:16 -08:00
Connor Rigby 054cc8dd1c some farmware fixes. 2017-11-09 09:37:03 -08:00
Connor Rigby 44b8b37656 more stub handler fixes. 2017-11-08 17:13:16 -08:00
Connor Rigby a1fea72ad8 fix stub handler, _if, toggle_pin 2017-11-08 16:55:16 -08:00
connor rigby 4548c23346 refactor fw comms, fix set_user_env, and persist hw params in db 2017-11-08 16:24:22 -08:00
connor rigby 31dc503bd6 re implement uart 2017-11-08 12:55:16 -08:00
connor rigby a86e986a1d fix tranport crashes causing app crash 2017-11-08 11:10:28 -08:00
Connor Rigby 4e207092e8 fix seq and exeute ast nodes 2017-11-07 16:23:14 -08:00
Connor Rigby a7bfbd26e8 fix send message channels, and legacy fe logging 2017-11-07 13:56:15 -08:00
Connor Rigby 293dcdfba4 add shell logger filter 2017-11-07 13:45:01 -08:00
Connor Rigby 63afb585d3 build fb logger 2017-11-07 13:24:19 -08:00
Connor Rigby 66c8baab9b cleanup 2017-11-07 10:22:21 -08:00
Connor Rigby d69ac3cf4d re add support for maintance mode 2017-11-07 10:15:48 -08:00
Connor Rigby d79d02cd54 💥 autosyncing!!!! 2017-11-07 09:53:49 -08:00
connor rigby 412c7da4b9 rebase params 2017-11-07 07:28:31 -08:00
connor rigby 3836336f90 Fix More CeleryScript
* Add diapatcher for config updates.
* Add env updater for each cs_node.
* Fix logging.
2017-11-06 09:46:24 -08:00
Connor Rigby fceef7ee74 more reimplementation. 2017-11-05 16:18:44 -08:00
Connor Rigby d6bdfd3433 Yay. many nodes working again 2017-11-05 14:13:11 -08:00
Connor Rigby 6782e88792 get movement commands done. 2017-11-05 02:07:30 -08:00
Connor Rigby 6c66e13f5a begin implementing cs again.. 2017-11-04 23:54:49 -07:00
Connor Rigby 6b59f458e1 clean up many compile warnings.. 2017-11-04 21:04:00 -07:00
Connor Rigby 57dff695e9 build pretty printer 2017-11-03 18:54:26 -07:00
Connor Rigby 8aab2b0439 allow for args to be mutated 2017-11-03 16:54:05 -07:00
Connor Rigby a501a7e14c brb 2017-11-03 16:26:13 -07:00
connor rigby 4f025c3233 ok. That hurt. 2017-11-03 15:48:55 -07:00
connor rigby 1d04c3ed71 Nope 2017-11-02 12:17:19 -07:00
connor rigby 54d4fb0f73 going to try grabbing the old CS implementation. 2017-11-02 12:07:04 -07:00
Connor Rigby 093e77bba4 change to farmbot fork of vmq commons. 2017-11-02 10:04:53 -07:00
Connor Rigby 46232d11d9 Add docs for farmware and http 2017-11-02 09:52:23 -07:00
connor rigby 7953d2100d Begin adding ws server 2017-11-02 06:34:21 -07:00
connor rigby 9eacd7f925 add new http cs/state transport 2017-11-01 11:44:50 -07:00
connor rigby fe53427c9e add task for refreshing token every 30 mins 2017-11-01 09:03:06 -07:00
connor rigby 1d86dc644f allow fpf to be opt out 2017-10-31 13:46:01 -07:00
connor rigby 43deb4aaf3 bring back farmware repos. 2017-10-31 13:36:06 -07:00
Connor Rigby ff37b75093 Redo Farmware installation and lookup. 2017-10-31 11:18:49 -07:00
connor rigby f67590ba76 update dhcp lib; add wobserver 2017-10-30 10:47:24 -07:00
Connor Rigby aee55a25a3 Add friendlier log message 2017-10-26 09:57:37 -07:00
Connor Rigby 08868bf6fb Merge branch 'cs_compiler' of github.com:ConnorRigby/farmbot_os into cs_compiler 2017-10-26 09:26:41 -07:00
Connor Rigby fc653e46bb Remove dead code 2017-10-26 09:26:32 -07:00
Connor Rigby a756e12f84 fix tests.
Ok it was actually just remove broken tests :P
2017-10-26 09:25:47 -07:00
connor rigby 9b4c72206e more work on implementing auto sync 2017-10-26 08:07:50 -07:00
Connor Rigby 12ce82654f implement data update. 2017-10-25 20:43:30 -07:00
Connor Rigby cfb568cf97 you get the idea 2017-10-25 15:32:29 -07:00
connor rigby 06c9edf149 begin adding auto sync feature 2017-10-25 08:52:43 -07:00
connor rigby 7e60283d71 infinate recursion... 2017-10-24 12:19:23 -07:00
connor rigby bec0c3c5d1 infinate recursion.. 2017-10-24 10:56:38 -07:00
connor rigby 7bde7fb8c8 reenable logger 2017-10-24 06:31:59 -07:00
connor rigby 78650b67e5 Finish firmware contract. 2017-10-24 06:21:23 -07:00
connor rigby d0b2c00153 Write contract for FW handlers. 2017-10-24 05:50:32 -07:00
connor rigby ef9368818c clean up docs 2017-10-24 05:38:14 -07:00
connor rigby d5ac873245 clean up mqtt client 2017-10-24 05:36:03 -07:00
Connor Rigby 7a4e4bddb7 going to do the fw adapters the same wayt 2017-10-23 22:31:53 -07:00
Connor Rigby e4128b5ac6 Fix http requests to the api. 2017-10-23 21:37:24 -07:00
Connor Rigby 2c48abf2b2 ftfy 2017-10-23 21:15:49 -07:00
Connor Rigby f78ce3773c [BROKEN] begin allowing http adapter to be replaced. 2017-10-23 19:14:30 -07:00
connor rigby c2bc4f60fe wut 2017-10-19 11:50:26 -07:00
connor rigby 9552110994 networking isn't working... 2017-10-16 11:39:47 -07:00
Connor Rigby c2da435729 more formatting 2017-10-11 16:01:35 -07:00
Connor Rigby fe32cd1540 use Elixir 1.6.0 code formatter 2017-10-11 15:53:00 -07:00
connor rigby a7e3b6ba30 genstage stuff 2017-10-11 09:47:52 -07:00
connor rigby b3a343ed36 Teat cleanup.
* Remove old tests
* Fix existing tests.
2017-10-11 08:08:18 -07:00
Connor Rigby 3999ef58d9 format exit reasons 2017-10-10 11:36:47 -07:00
Connor Rigby a1f2bc84c6 move stuff and add docs 2017-10-04 19:46:51 -07:00
Connor Rigby 345287a534 prepare for merge 2017-10-04 19:11:20 -07:00
Connor Rigby 6c20b0d484 wee 2017-10-04 13:56:15 -07:00
Connor Rigby db10ad1810 brb 2017-10-04 12:56:15 -07:00
Connor Rigby a7bfa81b4c more conf. stuff 2017-10-04 09:36:51 -07:00
Connor Rigby f7989a13a4 more progress toward new coonf 2017-10-03 15:20:24 -07:00
Connor Rigby 3b3197505d cleanup 2017-10-01 19:56:29 -07:00
Connor Rigby 2c27b8c8db reimplement logger 2017-10-01 19:54:21 -07:00
Connor Rigby 3cebc51b5e more cleanup 2017-10-01 10:31:55 -07:00
Connor Rigby f0bfcf3d4f start cleaning up 2017-09-30 22:08:53 -07:00
Connor Rigby f19535b604 clean this up pls 2017-09-29 16:55:10 -07:00
Connor Rigby 3a3413eda5 /shrug 2017-09-29 15:05:48 -07:00
connor rigby f8d52e33f5 deploy2rpi3 2017-09-26 13:21:49 -07:00
Connor Rigby ca0b4fccf3 start implementing configurator again 2017-09-26 11:21:33 -07:00
Connor Rigby db27ef3842 move db repos, fix tests 2017-09-26 10:45:55 -07:00
Connor Rigby d15351313b Cleanup + document 2017-09-26 09:36:16 -07:00
Connor Rigby cc899b0fa0 Fix init.
* Now runs migrations.
* factory_reset drops the databases.
2017-09-26 09:33:29 -07:00
Connor Rigby 02da0a982f Fix config and ConfigStorage
* Fix host/target specific elixirc paths.
* Add cred copier to db for host env.
2017-09-26 07:46:29 -07:00
Connor Rigby fa3492f5aa time to merge back in 2017-09-26 07:00:43 -07:00
connor rigby c59e630d28 more_better.jpg 2017-09-25 15:16:26 -07:00
connor rigby 02816610af Implement most of config_storage 2017-09-25 11:25:42 -07:00
connor rigby 210a79b30a this isn't working as well 2017-09-22 16:28:30 -07:00
Connor Rigby 7a9117983e 🏀 2017-09-22 14:23:13 -07:00
Connor Rigby d47c136fb1 Merge branch 'purge-context' of github.com:ConnorRigby/farmbot_os into store-config-sqlite3 2017-09-22 13:09:18 -07:00
Connor Rigby 8b8304b696 whoops, forgot that. 2017-09-22 13:08:18 -07:00
Connor Rigby beabfbf970 Start adding a third repo for config settings 2017-09-22 13:07:43 -07:00
Connor Rigby a7f837930b add check for failed creds on mqtt 2017-09-22 13:03:14 -07:00
connor rigby aac3775f7b remove last will 2017-09-22 11:14:52 -07:00
Connor Rigby e279aeb8e2 remove old stuff 2017-09-22 08:08:57 -07:00
Connor Rigby 17406e29f2 implement sequence 2017-09-21 11:58:11 -07:00
Connor Rigby dafd98e847 Fix test config and implement sequences. 2017-09-21 10:39:39 -07:00
Connor Rigby 9bc82261f5 I don't know if i like this idea 2017-09-21 09:17:39 -07:00
Connor Rigby b681733622 Remove debug_log. 2017-09-21 08:00:30 -07:00
Connor Rigby 04d5acf218 Add/Fix Syncing 2017-09-20 13:46:48 -07:00
connor rigby e45a819301 start adding the rest of the tables. 2017-09-20 12:06:09 -07:00
Connor Rigby b18eaaded4 start adding peripherals 2017-09-20 09:10:04 -07:00
connor rigby a05b6ebd7d write some test for repo + farm_events 2017-09-19 12:34:41 -07:00
Connor Rigby c5e24ae09e Begin implementing resources
* Add some macros to for syncing and validating time.
* add farm_events.
2017-09-19 10:55:17 -07:00
Connor Rigby a843bb5240 Start HTTP module. 2017-09-19 10:54:48 -07:00
Connor Rigby beb136ea61 Temp fix/hack for HTTP to work. 2017-09-19 10:53:29 -07:00
Connor Rigby 4d24f7a02b Merge remote-tracking branch 'origin/purge-context' into replace-db-sqlite3 2017-09-18 17:43:33 -07:00
Connor Rigby e94d0be98c Fix tests, add tests for HTML helpers. 2017-09-18 17:42:55 -07:00
Connor Rigby 223af26580 begin migration to sqlite3 2017-09-18 17:23:10 -07:00
connor rigby 94e3a21970 making progress 2017-09-13 09:29:10 -07:00
connor rigby 82afc009c7 I don't know if i like this. 2017-09-12 13:11:01 -07:00
Connor Rigby a1287a485a Start adding templating to configurator. 2017-09-12 11:42:22 -07:00
Connor Rigby cc6836b8b6 Cleanup mix file.
* Get rid of syslogger. I don't think ill use that anymore.
2017-09-12 11:05:22 -07:00
Connor Rigby 2fddf2b9b3 Start reimplementing configurator.
* Getting rid of the scarry JS.
2017-09-12 11:00:27 -07:00
Connor Rigby 62d3bd84c8 Promote stub handler to first class.
* Remove patches. These will be reimplemented in the system.
2017-09-12 10:19:55 -07:00
Connor Rigby 487ce22cfc Fix tests
* reimplement config system to be a bit more intuitive.
2017-09-12 09:51:31 -07:00
Connor Rigby 68af2939a3 More cleanup.
* Going to put system in it's own repository.
* Realign with upstream/nerves configurations.
2017-09-09 19:22:38 -07:00
Connor Rigby 64f3b40588 Clean up and update deps. 2017-09-09 18:42:23 -07:00
Connor Rigby ea5b27ec1e Move more stuff. 2017-09-09 18:21:55 -07:00
Connor Rigby 3c4f3dd737 More Cleanup.
* I don't plan on using the `migration` system.
* farm_event and farmware will be back.
* deleted other random stuff.
2017-09-09 18:15:48 -07:00
Connor Rigby 08e1c21c61 Merge branch 'purge-context' of github.com:ConnorRigby/farmbot_os into purge-context 2017-09-09 17:55:00 -07:00
Connor Rigby 926f9ce156 clean up some unused code. 2017-09-09 17:51:13 -07:00
connor rigby 7ea89c1cc4 cleanup + add tests 2017-08-28 14:34:48 -07:00
connor rigby f1996c9db7 abstract some stuff out of the database. 2017-08-28 11:04:21 -07:00
connor rigby f8d6b2c930 add some http stuff, fix gen_mqtt test, quite noisy logs 2017-08-28 08:41:34 -07:00
connor rigby c4a5eea349 clean up some compiler warnings 2017-08-23 08:25:27 -07:00
Connor Rigby 91c94df6f6 add some weird tests to mqtt client 2017-08-22 14:22:32 -07:00
Connor Rigby e0c0bd7e70 test the gcode parser 2017-08-22 12:16:52 -07:00
Connor Rigby 40279884ce test info settings and locationdata. sprinkle some coverage on transport supervisor 2017-08-22 10:59:46 -07:00
Connor Rigby 2c1ca43102 more removal. 2017-08-22 10:26:22 -07:00
Connor Rigby f65301e90e remove old token implementation 2017-08-22 10:07:58 -07:00
connor rigby 194bcbdffb start implementing fw again 2017-08-21 13:31:32 -07:00
connor rigby 5349b93efb start to remove context from serial handler 2017-08-21 11:37:14 -07:00
connor rigby 3ce586ff5f format vm 2017-08-21 11:12:01 -07:00
connor rigby 08a06cffe5 move + test sys_logger 2017-08-21 11:11:38 -07:00
connor rigby f8e7b85506 move the log object. don't know why it was there. 2017-08-18 12:13:42 -07:00
connor rigby fa8bb49c26 allow mqtt transport to be accessed independently 2017-08-18 12:11:10 -07:00
connor rigby a853c4903e Refactor default auth task and test it. 2017-08-18 11:48:44 -07:00
connor rigby d19d756795 bring mqtt back 2017-08-16 12:15:05 -07:00
connor rigby 64f4dd04a0 implement default auth task. 2017-08-16 10:28:09 -07:00
connor rigby 4740f7ca04 Merge origin/master 2017-08-16 10:27:41 -07:00
Connor Rigby a124bdd278 bring token back 2017-08-16 09:31:29 -07:00
connor rigby 0ab56be226 framework for transport 2017-08-15 14:55:17 -07:00
connor rigby cb8e8d5b11 start bringing bot state back. Transport is next 2017-08-15 14:26:43 -07:00
Connor Rigby 4388e8feb9 start building functionality of monitor back. 2017-08-15 09:55:56 -07:00
connor rigby d4ca76d839 bump version, add helpful debug_log to serial handler 2017-08-14 08:46:38 -07:00
Connor Rigby b16ec1bffb start reqorking bot state 2017-08-13 22:41:00 -07:00
Connor Rigby 2d171bc792 begin implementation of a new celeryscript virtual machine 2017-08-13 13:46:36 -07:00
Connor Rigby 4cadbcd6d7 trying to debug logs. think its a FE issue 2017-08-11 10:02:04 -07:00
Connor Rigby 75fa609679 change back to not busy on idle. 2017-08-11 08:26:45 -07:00
Connor Rigby e0da76f9f6 start implemening auth in dev/prod environments 2017-08-11 00:17:50 -07:00
Connor Rigby 2ddfb5868f test the init system in a reasonable way, bring back excoveralls 2017-08-10 23:37:42 -07:00
Connor Rigby 8469a573a4 implement test stubs. Not sure what to do about the token 2017-08-10 22:02:40 -07:00
connor rigby a1d0cf5ca1 moving back to master right now. 2017-08-10 11:51:57 -07:00
Connor Rigby b34b08fe4a add some quick docs 2017-08-10 10:02:42 -07:00