Commit Graph

470 Commits

Author SHA1 Message Date
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 7ac642ee30 Accidentally commented out gpio from intval module 2017-10-23 13:32:45 -04:00
mmcw-dev b307567a51 Persist device state with node-persist. This allows multiple controllers to share state, and for device to maintain settings between shutdowns. 2017-10-23 12:58:37 -04:00
mmcw-dev d0e1026c7a Don't set expsure to null. 2017-10-23 01:24:22 -04:00
mmcw-dev 0fcd6d0970 use setExposureScale to properly calculate time after autoscaling. 2017-10-23 01:20:20 -04:00
mmcw-dev 6801f30881 Change order again to prevent bad scaling. 2017-10-23 01:17:05 -04:00
mmcw-dev 4e819c84f9 Was accidentally writing object to number input. Was failing. Now writing the STATE.exposure integer and then changing the scale. 2017-10-23 01:13:31 -04:00
mmcw-dev 1689fb510f Events were being triggered in wrong order. 2017-10-23 01:11:46 -04:00
mmcw-dev 7ca9ade4ea Autoscale exposure on getState 2017-10-23 01:08:18 -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 24c5331cf2 Simplify shutter() logic. 2017-10-23 00:33:02 -04:00
mmcw-dev c508c6e693 Caught nagging bug, will calculate timing if default time is set. 2017-10-23 00:30:08 -04:00
mmcw-dev 29800a7b45 What a fatheaded typo. Was checking if exposure was in response, not if it is < BOLEX.expected 2017-10-23 00:26:53 -04:00
mmcw-dev 3bf6939549 Log exposure being set from state 2017-10-23 00:22:27 -04:00
mmcw-dev 325f2bbf84 ScaleAuto, not autoScale 2017-10-23 00:19:48 -04:00
mmcw-dev 796d1604f0 Set exposure and autoscale when restoring state 2017-10-23 00:17:02 -04:00
mmcw-dev 6368ece015 Set exposure, scale and parse time at different scales. 2017-10-23 00:03:12 -04:00
mmcw-dev 4a32fe3d60 Use 0 as default exposure in app. 2017-10-22 20:04:12 -04:00
mmcw-dev c92e4ec3d3 Need to parseInt of counter value to increment properly 2017-10-22 20:01:43 -04:00
mmcw-dev a9e13ac2a6 Restore device state in app, set counter in webapp, 2017-10-22 19:59:38 -04:00
mmcw-dev 253c8c2a54 Get state at startup (to maintain state on the device and report to the client on reload). Also, settings UI in place, need mscript UI as well. 2017-10-22 15:35:56 -04:00
mmcw-dev 99a5cbfc26 Data, not body, you dolt. 2017-10-21 22:53:35 -04:00
mmcw-dev d7a64c07f9 Try without charset 2017-10-21 22:50:56 -04:00
mmcw-dev 7e057bc924 Need to declare content type for app to recognize body as JSON 2017-10-21 22:47:12 -04:00
mmcw-dev d2d5458a70 use dataType json for ajax posts 2017-10-21 22:44:01 -04:00
mmcw-dev a8b62ea392 Styles for setDir ready to test on device. 2017-10-21 22:41:58 -04:00
mmcw-dev 4f19194222 Fix direction selection UI 2017-10-21 22:17:32 -04:00
mmcw-dev 30f32983b9 Add labels to direction UI 2017-10-21 22:13:38 -04:00
mmcw-dev ccdae964ee Style the buttons and inputs to fill width of screen. 2017-10-21 22:01:46 -04:00
mmcw-dev 96bd6050d3 Clean up styles, add labels to existing fields and meta tags for mobile views. 2017-10-21 21:54:17 -04:00
mmcw-dev d396fd2713 Style buttons and input 2017-10-21 21:44:07 -04:00
mmcw-dev 417388eaed Add first buttons 2017-10-21 21:22:02 -04:00
mmcw-dev 83fea51433 Start UI, add jquery and a switch for web and mobile methods 2017-10-21 21:07:45 -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 da3908c2e5 Add logic to prevent frames shorter than 250ms. Might work for now. Seemingly only happening with web requests? 2017-10-21 19:31:52 -04:00
mmcw-dev c2f372c7fe Actually pass the required information into the callback function 2017-10-21 12:23:37 -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 41360405c3 Lol. Was a little overzealous with a replace all. _state.release.time should never have been changed to exposure. 2017-10-21 11:54:45 -04:00
mmcw-dev e2ee307824 Add logging back because release no longer works 2017-10-21 11:52:41 -04:00
mmcw-dev 19e6511559 Update tests to use latest api 2017-10-21 11:49:29 -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
mmcw-dev 58f8d09775 Try catch the connection 2017-10-20 21:45:17 -04:00
mmcw-dev df106e6e90 Remove some logging, clean up others 2017-10-20 21:10:01 -04:00
mmcw-dev 638530d2b2 Try a 400ms backwards open variable 2017-10-20 21:07:43 -04:00
mmcw-dev b22712053c Remove excessive logging 2017-10-20 21:05:00 -04:00
mmcw-dev f4d7d3c593 Wow. Just wow. 2017-10-20 21:03:47 -04:00