Commit Graph

68 Commits

Author SHA1 Message Date
mmcwilliams 45e427caf9 Reset state and then set newly reset state to web UI 2018-02-12 14:57:06 -05:00
mmcwilliams 6accb1ba83 Add logging statements for ble endpoints for reset, restart and update 2018-02-12 14:38:27 -05:00
mmcwilliams a8907a059d Re-order timeout for update and restart BLE endpoints 2018-02-12 14:22:31 -05:00
mmcwilliams 2c40fa4e0e Restart and update both work with restify, so put them behind POST endpoints to prevent absentminded browser requests from breaking sequences. They will need to be added to the UI in a reasonable way. 2018-02-08 16:23:10 -05:00
mmcwilliams 0cb9f79756 Fix typo in reset 2018-02-08 16:16:44 -05:00
mmcwilliams c5c1f649a3 Log reset requests as well (to differentiate intentional resets, restarts and updates in the logs) 2018-02-08 16:02:18 -05:00
mmcwilliams aa82973598 Log update and restart requests 2018-02-08 16:01:22 -05:00
mmcwilliams 9c0ca37481 End response and call next() before restarting process. 2018-02-08 15:50:21 -05:00
mmcwilliams 64343bfc0b Execute functions after response. 2018-02-08 15:46:51 -05:00
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