Commit graph

260 commits

Author SHA1 Message Date
connor rigby af7aca9334 that was a mess 2017-06-06 10:13:24 -07:00
connor rigby ce0227a173 test catastrophy should now be more readable 2017-05-31 12:01:33 -07:00
connor rigby f8cc96573e What is {:error, :eagain} 2017-05-31 11:19:28 -07:00
connor rigby 737592bd84 run on hardware. AS IS 2017-05-31 11:12:01 -07:00
connor rigby be618d8f5f cant figure out the ssl bug 2017-05-26 14:44:17 -07:00
connor rigby e8249dd642 rip out farmware for overhaul, and start and http adapter 2017-05-22 13:40:52 -07:00
Rick Carlino 32d7d441b5 Not mocking correctly? 2017-05-18 14:57:11 -05:00
connor rigby 89baa242c0 dont look at me im not important; most tests are broken 2017-05-18 12:18:29 -07:00
Rick Carlino d6dbb0a1d1 🏀 2017-05-18 09:55:30 -05:00
connor rigby 803cd58c23 start mangling things again 2017-05-18 07:25:58 -07:00
Connor Rigby 1f53741745 auth is extracted 2017-05-17 21:05:08 -07:00
connor rigby cf84485676 hey 2017-05-17 11:29:13 -07:00
Rick Carlino 43dcf07510 Remove "singleton" in favor of PIDs all over the place 2017-05-17 11:41:49 -05:00
connor rigby 4fb1f11469 write tests for database implementation 2017-05-16 11:01:18 -07:00
connor rigby 4e4214130b implement new fw stuff 2017-05-08 08:37:15 -07:00
connor rigby 0a534feeb3 sprinkle some stability on the socket handler and what not 2017-05-05 12:54:44 -07:00
connor rigby 2b430c013a remove other systems for now, remove dual wifi deal. 2017-05-05 10:24:45 -07:00
connor rigby fc91829b0f clean up warnings, fix tests. 2017-05-04 07:03:29 -07:00
connor rigby 51878e4e45 revamp sync 2017-05-01 08:49:40 -07:00
connor rigby b5c6b4a833 proof of concept for host/client mode at the same time 2017-04-28 08:50:30 -07:00
connor rigby 3ef5a84222 fix looping reading params hopefully? 2017-04-27 13:21:09 -07:00
connor rigby 5fc9ae7733 * Bump firmware version
* Fix the no filename issue in Downloader
* Fix a ton of Logger.error/1 that were not actually errors.
* Remove DebugLog warnings
* Change Firmware Signing again.
2017-04-26 12:27:28 -07:00
connor rigby 01478fb19b add rollbar support 2017-04-25 10:46:36 -07:00
connor rigby 0ca369d946 fix every single @lint warning. 2017-04-18 13:41:19 -07:00
connor rigby 7baffc587d i guess that doesnt work. Revert back to explicit app name. 2017-04-18 08:23:25 -07:00
connor rigby bcbc219b49 Change config layout. Going to move EXPECTED_FW_VERSION around so configurator shares it. 2017-04-18 07:41:31 -07:00
connor rigby 0171b0d3ee dont lint this; blame justin; profit 2017-04-14 11:22:05 -07:00
connor rigby bed7fea28d more signing stuff. Moved into app init because :priv_dir(:farmbot) 2017-04-10 12:15:06 -07:00
connor rigby 54820252d6 [UNSTABLE] initial pass at firmware signing. Waiting for prs and what. 2017-04-10 11:45:18 -07:00
connor rigby 6b8d0d8a95 rpi0w support 2017-03-28 13:54:07 -07:00
connor rigby 837c2d39a3 remove camera wrapper 2017-03-28 07:30:58 -07:00
connor rigby 5b7434ccad tests pass with new farmbot simulator app. Slow though. 2017-03-27 09:26:35 -07:00
connor rigby 0d29b163b2 add tests for serial 2017-03-20 11:53:37 -07:00
connor rigby 3b174ae126 bump nerves versions 2017-03-20 10:19:40 -07:00
connor rigby 9fde916d9f typeo 2017-03-14 09:38:08 -07:00
connor rigby 589061b5c6 fix update checker and replace Logger.debug with Logger.info 2017-03-14 09:37:41 -07:00
connor rigby 2286d82885 add ability for open password wifis 2017-03-06 12:47:20 -08:00
connor rigby cf2cf6cf92 host - dev works. fixing target build 2017-03-02 05:24:13 -08:00
connor rigby 4983cdcf0e umbrella? i think so 2016-12-18 12:33:59 -08:00
connor rigby 07525fad0f need to finish building out configurator. 2016-12-16 16:29:36 -08:00
connor rigby 56a6d3dd2c network is in fbos now. just needs a communication channel to configurator now 2016-12-16 10:24:55 -08:00
connor rigby 375b6b43ba changing network functionality 2016-12-14 15:14:44 -08:00
connor rigby ce7b15a50a network and farmbot configurator needs to be fixed before i can move on 2016-12-14 13:07:01 -08:00
connor rigby b62d504a02 qemu boots 2016-12-14 11:42:34 -08:00
connor rigby e980b708af heres the basic idea. Compiles and runs but nothing persists application restarts/ bot reboots 2016-12-13 14:05:48 -08:00
connor rigby cd95ef21d3 some authorization error handling. 2016-12-11 21:50:03 -08:00
connor rigby eaeedfae3d more linting stuff. I probably broke a bunch of log messages i think 2016-12-08 12:23:17 -08:00
connor rigby 12ae57042f just doing some linting 2016-12-08 10:59:21 -08:00
connor rigby f3794b4824 fix auto updating. 2016-12-07 14:12:32 -08:00
connor rigby e9e1511627 logs now display the correct datetime and i added a bunch of them back 2016-12-06 13:27:04 -08:00
connor rigby 9cb602da88 Logger backend is complete. Adding logs back to the rest of the application now. 2016-12-05 15:53:14 -08:00
connor rigby 9093498c5c Building a new Logger 2016-12-05 10:43:42 -08:00
connor rigby 705663a779 needs a bit more error handling but its pretty good 2016-12-05 08:55:28 -08:00
connor rigby ee8092a603 testtesttesttest 2016-11-30 07:22:10 -08:00
connor rigby f6071095f1 Fix syncing and stuff 2016-11-29 11:51:45 -08:00
connor rigby 1fa3e70594 something like that 2016-11-20 20:34:10 -08:00
connor rigby 3ed23a41b1 bunch of stuff still broken but you can log in again 2016-11-17 14:23:13 -08:00
connor rigby 2b9a3716c3 Time for bed. 2016-11-16 17:05:03 -08:00
connor rigby d593cc9f2f Still unstable but getting to a useable state 2016-11-16 14:32:49 -08:00
connor rigby 1d4bfb5db5 [stable] i hope 2016-11-14 12:47:11 -08:00
connor rigby 28b76886be renaming 2016-11-14 10:32:04 -08:00
connor rigby 6b2eb071b9 moving some stuff aroun 2016-11-14 09:27:08 -08:00
connor rigby 19b6254894 some naming changes to make things look a little bit nicer in :observer 2016-11-07 11:14:05 -08:00
connor rigby 4eafa350f7 Network is now bundled with FarmbotConfigurator, but state persistance is stored in SafeStorage via BotState 2016-11-04 12:16:06 -07:00
connor rigby c50abe0b58 Moving Auth to its own repo. 2016-11-03 15:53:26 -07:00
connor rigby b9c8bf0873 Ext4fs now. 2016-10-31 15:49:38 -07:00
connor rigby ec534ec300 tests pass again. 2016-10-28 22:03:45 -07:00
connor rigby 3930117530 Pretty big commit heres what happened:
Got rid of a bunch of configs in favor of handling all file reading and writing in one module.
This module is SafeStorage. Rather than a module needing to handle its own state file, i made SafeStorage that just stores binaries in a map. The key is the module name.
It flushes the entire state to disk every 60 seconds. But only if the state has changed.
The filesystem is now mounted readonly for MOST of the time, except for that brief moment of flushing to disk if state changed.

i upgraded erlinit to alow a pre vm boot script.
I added bash. (This will probably be removed because im not actually doing anything bash specific.

moved hosts and hostapd files into the system dir.
2016-10-27 13:22:06 -07:00
connor rigby 38c4df706b Bot state should persist accross reboots now 2016-10-26 11:01:47 -07:00
connor rigby 107f517181 added ssh to the system 2016-10-25 09:06:38 -07:00
connor rigby 1efd253b7f This will require a new System release. TBD 2016-10-24 16:08:39 -07:00
connor rigby 9113034b0e move wifi configurator 2016-10-24 09:25:14 -07:00
connor rigby ae061fd7fc State tree going to be merged into master now as an api breaking release 2016-10-24 07:33:56 -07:00
connor rigby 7a4bc9d62d Merge branch 'master' of github.com:ConnorRigby/farmbot-raspberry-pi-controller into state_tree 2016-10-23 11:54:09 -07:00
connor rigby cc6aff3d00 Going to do a testing release for the people that were having problems updating firmware 2016-10-23 11:31:09 -07:00
Rick Carlino ac2fa98647 Move around the state tree and stuff 2016-10-21 16:02:12 -05:00
Connor Rigby a7e796ad60 Merge pull request #2 from ConnorRigby/taskmgr.exe
Created a task manager for tracking and executing regimens and sequences.
2016-10-21 09:46:41 -07:00
Gabriel Burnworth b4c646a1ee Prevent inputs from spilling 2016-10-20 22:15:18 -07:00
Gabriel Burnworth 7d97b60c5f Allow continuous toggle between wifi and ethernet 2016-10-20 22:14:49 -07:00
connor rigby 2bad7b5944 Fixed auto update toggles.
INTRODUCING FARMEVENTMANAGER
* Tracks running sequences (there is only aloud to be one at a time)
* tracks paused sequences
* tracks regimens that are running
* tracks regimens that are not running but at one point were running (paused)
2016-10-20 12:38:15 -07:00
connor rigby b83a302b35 REGIMEN VM 2016-10-19 20:00:49 -07:00
connor rigby df1b4db930 Revert to old mqtt implementation. I just like it better 2016-10-19 12:39:52 -07:00
connor rigby 3888eb8815 merge 2.0.6 even though it was very short lived 2016-10-19 12:03:14 -07:00
connor rigby ef486c8a91 Uart handler is so much faster now 2016-10-19 09:43:01 -07:00
connor rigby 1e7ac11cc5 remove embarasing log messages 2016-10-19 08:13:53 -07:00
connor rigby ec784454cc small overhaul of mqtt client 2016-10-17 15:18:51 -07:00
connor rigby d2daf1015c [UNSTABLE] I cant test on a real pi right now. It is working in development mode. 2016-10-17 11:49:33 -07:00
Connor Rigby 5db50eff0f fixing some misc errors and adding dependencies 2016-10-15 20:24:24 -07:00
Connor Rigby 48b7aac24f allow use of ethernet 2016-10-14 09:03:12 -07:00
Connor Rigby 89878c2c88 Some pattern matching for logging to ticker or making a toast message 2016-10-12 15:19:55 -07:00
Connor Rigby 99ab0ba982 Logging looks way better on UART now 2016-10-12 11:39:56 -07:00
Connor Rigby dda3a5d701 fixed a sequence race condition bug deal 2016-10-11 11:39:56 -07:00
Connor Rigby abefac98de Going to stage a new release 2016-10-05 16:11:53 -07:00
Connor Rigby 037aa12a55 Hopefully fix a nasty race condition 2016-10-05 13:34:25 -07:00
Connor Rigby 596c7697ba more isp stuffs 2016-10-05 10:13:26 -07:00
Connor Rigby d68267373a comcastic 2016-10-05 10:06:40 -07:00
Connor Rigby 3b272b7ad3 Remove hard coding of stagings server 2016-10-05 07:46:05 -07:00
Connor Rigby e70db76257 Need to do a new system release 2016-10-04 17:36:43 -07:00
Connor Rigby 3eee3f7f4a Temp workaround for bad dns on some isp's 2016-10-04 14:45:12 -07:00
Connor Rigby a68a3d3443 add new system so we dont have to compile it 2016-10-04 13:24:34 -07:00
Connor Rigby 1877a26ba8 This can be the final release 2016-10-04 10:26:44 -07:00
Connor Rigby c0caea6921 hope this works 2016-10-04 10:05:41 -07:00
Connor Rigby 0cfc1005b2 try to make update server user configuratble 2016-10-04 09:45:18 -07:00
Connor Rigby 9a0a7b5cc1 Github release api 2016-10-04 09:34:34 -07:00
Connor Rigby 0d384c7019 Version 2.0.0 2016-10-04 09:01:23 -07:00
Rick Carlino 126e1346e9 Upgrade farmbot-serial to 0.0.8 2015-04-03 17:42:36 -05:00
TimEvWw 94a74f8374 Changed db config 2014-06-23 19:57:52 -01:00
TimEvWw ebf2cbeb72 removing rails 2014-06-19 17:51:13 -01:00
TimEvWw e1b2d0c29b switched from mongodb to sqlite3 2014-05-07 19:25:51 -01:00
TimEvWw 70123a3411 using mongo as database 2014-01-15 21:58:42 +00:00