Commit Graph

59 Commits

Author SHA1 Message Date
mmcwilliams 5f71e48c38 Restart, update and reset all have ble and restify endpoints 2018-02-08 15:31:48 -05:00
mmcwilliams 42580c46b9 Sequence feature for bluetooth control does NOT need to be split (yet) into start and stop. intval.mobile.js was using the incorrect callback on the sequence characteristic and should be tested before changes are made. 2018-02-07 18:38:19 -05:00
mmcwilliams 8ec1694b02 Add a "sequence stop" endpoint 2018-02-06 17:42:50 -05:00
mmcwilliams b8787c0fac If exposure if over 5000ms, call back from ble service immediately and block UI until frame is done. 2018-01-17 15:58:55 -05:00
mmcwilliams 63eee43386 Simply exit process to restart. 2018-01-12 17:48:26 -05:00
mmcwilliams 64adc6cc86 Create an update script and add an update command to the main process. 2018-01-11 15:50:36 -05:00
mmcw-dev 0d251b212e Add path module to db to better format url? Why is database no longer writing?
Move ip above list of wifi.

List package.version in app server creation.
2018-01-05 17:31:00 -05:00
mmcwilliams 93387b27f2 Seq_id doesn't exist in a stop context 2018-01-01 01:08:59 -05:00
mmcwilliams 68dab59e6b Bluetooth sequence logic was waiting for a callback that never came... 2018-01-01 00:52:29 -05:00
mmcw-dev 360998e9a0 Using periods instead of commas. Starting to get tired. 2017-12-20 23:52:58 -05:00
mmcw-dev e880e44a5c Control sequence with GUIs 2017-12-20 23:47:37 -05:00
mmcw-dev ccd87b4d7e Send a "started" object when sequence is started 2017-12-20 23:29:43 -05:00
mmcw-dev 8333f451f8 Post sequence callbacks are not firing. Skip for now and just call back immediately 2017-12-20 22:39:20 -05:00
mmcw-dev 02aea27ff9 Log when sequences are started and stopped by release cable 2017-12-20 22:34:30 -05:00
mmcw-dev c36c0ab598 Declare variables to pass into sequence.start() 2017-12-20 22:30:13 -05:00
mmcw-dev 386de6dc56 Add delay restify endpoint. 2017-12-20 22:15:40 -05:00
mmcw-dev a7bcb0a87b Combine sequence and intval functionality 2017-12-20 22:10:36 -05:00
mmcw-dev 11bf8b95f8 flag the start of a sequence and stop it. 2017-12-20 21:49:26 -05:00
mmcw-dev c7ed8bed3b Was returning sequence start, now calling and then returning 2017-12-20 21:12:40 -05:00
mmcw-dev fc99b9ff06 Do not wait for sequence to finish to respond to /sequence request 2017-12-20 20:51:14 -05:00
mmcw-dev af28f14ecc Fix syntax error and update to latest node modules on ubuntu 2017-12-20 20:42:20 -05:00
mmcw-dev e6070465e5 Sequence logic ready for testing 2017-12-20 18:40:51 -05:00
mmcwilliams 22d497b464 BLE features are working, minus the wifi feature. Good work today. 2017-12-13 18:40:14 -05:00
mmcwilliams 52194e0b41 Set counter via ble 2017-12-13 17:27:42 -05:00
mmcwilliams 2818bd1180 Respect exposure settings. 2017-12-13 17:01:22 -05:00
mmcwilliams 6b65168f03 Obj not req 2017-12-13 16:25:23 -05:00
mmcwilliams 2a28b622f0 Set delay from ble 2017-12-13 16:22:22 -05:00
mmcwilliams 7fc84a3f14 Set exposure with bluetooth app 2017-12-13 16:04:24 -05:00
mmcwilliams ae03b97f96 Set direction with bluetooth, also resolve an unfortunate bug where I repeatedly spelled "undefined" as "udnefined" 2017-12-12 14:23:14 -05:00
mmcwilliams d8e6a2206e OK! Cannot pass data back during a write event, BUUUT can respond asynchronously, and state can be read immediately after? Or should I cache a response? More on this later. 2017-12-12 13:37:36 -05:00
mmcwilliams 9d95ffa483 Was trying to console.log an undefined string. 2017-12-12 13:14:20 -05:00
mmcwilliams 4aadc5a9df Use callback model for bluetooth write events. 2017-12-12 13:09:13 -05:00
mmcwilliams 3e9f560db0 intval.status() not intval.state. 2017-12-11 14:57:01 -05:00
mmcwilliams 139c72caee ble needs to be constructed 2017-12-11 14:41:44 -05:00
mmcwilliams 1fef6d6925 Pass an intval.state object into ble lib 2017-12-11 14:38:46 -05:00
mmcwilliams f1a5ae5aff bluetooth on data event 2017-12-07 12:06:08 -05:00
mmcwilliams 9c5d429051 Use sequence module and begin fashioning requests around it. 2017-11-22 20:26:34 -05:00
mmcwilliams dd74ba7218 Res.send not req.send you absolute knucklehead. 2017-11-22 11:31:08 -05:00
mmcw-dev 0272ca21f6 Add bleno to main process by adding a module that gets incorporated into the same process running express. 2017-11-22 09:30:08 -05:00
mmcw-dev 67f864f975 rReset not rRest, gah 2017-10-23 20:29:52 -04:00
mmcw-dev f2f5d583ce Added /reset endpoint to reset device state. 2017-10-23 13:33:05 -04:00
mmcw-dev 65b1802390 If exposure is less than _frame.expected, set to 0 (default) 2017-10-23 00:37:44 -04:00
mmcw-dev a9e13ac2a6 Restore device state in app, set counter in webapp, 2017-10-22 19:59:38 -04:00
mmcw-dev d7ca2ebe46 All features added to /frame endpoint, can set direction independent of the state and can set the exposure as well. 2017-10-21 20:12:39 -04:00
mmcw-dev 0b245a00c4 Log after frame is complete 2017-10-21 12:21:15 -04:00
mmcw-dev 9302cf1b21 Force example frame before evaluating query and body of post for parameters 2017-10-21 12:10:16 -04:00
mmcw-dev 0848d5bfc0 Add logging to webapp and callback to frame function in intval 2017-10-21 12:08:12 -04:00
mmcw-dev 06bdb8b763 Need to initialize intval in server code. 2017-10-21 11:47:55 -04:00
mmcw-dev 186b8324d1 Manage state from the webapp. Build all features there before mobile. 2017-10-21 11:46:06 -04:00
mmcwilliams 7d9377e7ea Start fleshing out API for web/mobile 2017-10-20 13:58:01 -04:00