Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00

416 Commits

Author SHA1 Message Date
mmcwilliams a8a0cad6d6 Style the message which accompanies the spinner for cases where the message is set. 2018-02-12 17:48:56 -05:00
mmcwilliams 9cdf497518 Uncheck direction checkbox when setting state 2018-02-12 17:48:38 -05:00
mmcwilliams d32cb83261 Use navigator.notification alerts, confirms and prompts from cordova-dialogs in the mobile app. 2018-02-12 17:48:13 -05:00
mmcwilliams 3331dc20ec Show text in spinner if defined in argument. 2018-02-12 15:42:48 -05:00
mmcwilliams e200b6bf0c remove npm install because it takes 100+ seconds 2018-02-12 15:18:45 -05:00
mmcwilliams 10e7b13707 Update the language on the webapp to use confirms to prevent errant clicks 2018-02-12 15:05:50 -05:00
mmcwilliams 45e427caf9 Reset state and then set newly reset state to web UI 2018-02-12 14:57:06 -05:00
mmcwilliams ec2215ec76 Dont hide camera icon 2018-02-12 14:54:19 -05:00
mmcwilliams 331dae4934 Fixed typo in css 2018-02-12 14:49:18 -05:00
mmcwilliams fde7a608fb SHow footer and screens when logged in. 2018-02-12 14:45:37 -05:00
mmcwilliams 6accb1ba83 Add logging statements for ble endpoints for reset, restart and update 2018-02-12 14:38:27 -05:00
mmcwilliams 1c14520c6a Add reset, update and restart actions to the web UI 2018-02-12 14:26:44 -05:00
mmcwilliams c8991324c4 Add npm install to update script 2018-02-12 14:26:27 -05:00
mmcwilliams a8907a059d Re-order timeout for update and restart BLE endpoints 2018-02-12 14:22:31 -05:00
mmcwilliams 44d2ba7a50 Add a message element for brief displays 2018-02-12 14:21:49 -05:00
mmcwilliams f233efd4a2 Hide spinner unless explicitly shown 2018-02-12 13:59:54 -05:00
mmcwilliams 480d9dd41d Ignore .DS_Store 2018-02-12 13:59:32 -05:00
mmcwilliams 7a98dc11ea Add new UI.spinner and UI.overlay usage in intval.mobile.js.
Fix reset, restart and update process over BLE.
Hide disconnection errors and instead automatically reset BLE UI when disconnect occurs.
2018-02-12 13:59:21 -05:00
mmcwilliams fd0ad6f063 Add global placeholders for reset, restart and update. 2018-02-12 13:58:00 -05:00
mmcwilliams b657367ba4 Create unit tests for QUnit 2018-02-10 16:34:56 -05:00
mmcwilliams d36148000a move "tests" to "test" for QUnit 2018-02-10 12:09:58 -05:00
mmcwilliams 2217f709da Moved curl script to experiments 2018-02-10 12:09:19 -05:00
mmcwilliams d17e46ebfb Moved loosely defined tests and tinkering scripts to a directory called "experiments" 2018-02-10 12:08:17 -05:00
mmcwilliams 0ede651791 Install QUnit for testing 2018-02-10 12:07:24 -05:00
mmcwilliams 65cdf44105 Hide BLE functions but don't hide footer on web 2018-02-09 12:25:22 -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 b56afa3ba7 Add language "and clear counter" to reset confirmation dialog. 2018-02-08 11:51:43 -05:00
mmcwilliams a37c58d791 Add a reset feature to mobile app which allows the device to be reset to the default settings (direction forward, exposure 630 and delay 0). 2018-02-07 19:07:38 -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 eae8e50cf8 Use INTVAL3 not INTVAL in usage descriptions. Working on submitting this to both app stores. 2018-02-07 18:23:07 -05:00
mmcwilliams e8eec95107 Create both readme files, one at the project level and another just for the mobile app. More work needed on the project one. 2018-02-07 18:22:28 -05:00
mmcwilliams 8ec1694b02 Add a "sequence stop" endpoint 2018-02-06 17:42:50 -05:00
mmcwilliams 9a698f6bd6 Hide footer menu unless inside mobile app, ignore on web. 2018-02-06 17:37:49 -05:00
mmcwilliams 4e69871d38 Pull default mobile styles. 2018-02-06 17:34:58 -05:00
mmcwilliams b5189a53eb Pull amazon links 2018-02-06 17:34:04 -05:00
mmcwilliams df578bb678 Make mobile.fnumber a global helper function fnumber() 2018-02-04 18:17:36 -05:00
mmcwilliams 85a529c705 Increment build number in package.json 2018-02-03 17:49:58 -05:00
mmcwilliams 2240a432f6 Increment build number 2018-02-03 17:49:41 -05:00
mmcwilliams f2ca374e78 Display readonly camera values for the camera exposure screen. 2018-02-03 16:52:59 -05:00
mmcwilliams 29485137ca Store iso and fstop as they are set. 2018-02-03 16:50:14 -05:00
mmcwilliams 4b72c9eeed Camera exposure logic is in place. Will take a photo with the device camera and use the exif data to determine the correct exposure for the bolex.
- Determines # of stops between fstop of phone and set fstop of bolex
- Determines # of stops between iso of phone and set iso of bolex
- Compensates for the 0.8 prism constant
2018-02-03 16:49:37 -05:00
mmcwilliams 7a392aba0e Bold title on main screen 2018-02-03 16:46:32 -05:00
mmcwilliams 3abd68f5f3 Dump exif data after taking picture 2018-02-02 15:36:50 -05:00
mmcwilliams 4760c1e491 Sync camera settings between multiple inputs and write to settings 2018-02-02 15:36:28 -05:00
mmcwilliams 286c0eec4c Pull mscript features for now 2018-02-02 13:02:15 -05:00
mmcwilliams fc4b180aa8 Fix logging in delayed state retreival for ble connections. 2018-01-17 17:20:48 -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 66b3711118 Retry update.sh 2018-01-12 17:46:54 -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
mmcwilliams ca4282c02f Change was causing double frames. Remove for now. 2018-01-09 15:09:39 -05:00
mmcwilliams 757e3dd86d Only list top 5 wifi hotspots 2018-01-09 13:39:43 -05:00
mmcwilliams 71cfaff6c8 Install camera with exif plugin 2018-01-09 00:15:30 -05:00
mmcwilliams 62769db3bf Add a state for the mobile app to trigger the camera and set Bolex camera values. 2018-01-09 00:06:17 -05:00
mmcwilliams e55154e46e Install "camera with exif" for capturing exif data with the mobile camera. This will eventually allow the user to take a photograph with their mobile camera and the Exposure time, ISO and f-stop can be used to establish an exposure value, that can be used to automatically set an exposure time for the Bolex to match the mobile camera's exposure setting. 2018-01-09 00:03:20 -05:00
mmcwilliams a9414c6212 Prevent motor from stopping before 100ms. Took out the logging in watchMicro, due to the fact that the problem with backwards frames was likely a bad connection. 2018-01-08 22:08:41 -05:00
mmcwilliams b114ef8b0e Hide spinner after 5 seconds, show message if not connected. 2018-01-08 20:14:08 -05:00
mmcwilliams fb54403891 Pause before setting direction of frame. 2018-01-08 20:06:02 -05:00
mmcwilliams b01a9e4483 Potential fix, which prevents priming from happening after a determined interval 2018-01-08 19:29:14 -05:00
mmcwilliams 01f17830f8 Restore logging for microswitch state 2018-01-07 18:05:24 -05:00
mmcw-dev 30e8636ea8 FUCK! The problem is that the script must run as root. Was looking in the wrong dir. 2018-01-06 10:55:52 -05:00
mmcw-dev 74af6218e0 Put db in config file (WHY IS THIS NOT WORKING) 2018-01-06 10:54:00 -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 6c28e729e1 Only add padding to top of app if in mobile version 2018-01-04 16:32:59 -05:00
mmcw-dev 34eefbd067 Hide and show IP address based on availability 2018-01-04 16:25:22 -05:00
mmcw-dev df1c39604a Referenced the filtered array, not the first element, like a jackass. 2018-01-04 16:14:12 -05:00
mmcw-dev 980f1f56c5 Log the local ip so info is readable server-side as well. 2018-01-04 16:12:32 -05:00
mmcw-dev 3af05e442d Track the local ip address of the wlan0 interface and report information to the BLE service. 2018-01-04 16:10:38 -05:00
mmcwilliams 7d5f6c6601 Mobile app now allows user to interact with wifi settings. Also (mostly) properly displays the state of a sequence. 2018-01-02 00:35:20 -05:00
mmcwilliams 6b59b15d62 Improve parts list with links 2018-01-02 00:34:03 -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
mmcwilliams 0b5e4c47d3 parseConfig rejoins the class as _parseConfig 2018-01-01 00:38:08 -05:00
mmcwilliams 40a306c9e1 Callback reads _ssid not ssid 2018-01-01 00:37:00 -05:00
mmcwilliams 83ed21441c Bind functions to this 2018-01-01 00:34:24 -05:00
mmcwilliams 4ce4ac2735 Restore wifi functionality for writing full config file. 2018-01-01 00:28:11 -05:00
mmcwilliams 5496881616 Improve parser to ignore stanzas that are commented out or not formatted by this program. 2018-01-01 00:19:07 -05:00
mmcwilliams bcc29424da Caught mixed usage, use .find() not .filter() to locate a single entry. Test exising methods now. 2018-01-01 00:10:50 -05:00
mmcwilliams 7e58ac40aa If entry is for an SSID that exists, replace old with new. If entry is for SSID that doesn't exist, add to file. 2018-01-01 00:04:49 -05:00
mmcwilliams 781f6046e5 parseConfig moved out of class 2017-12-31 23:52:00 -05:00
mmcwilliams 15ded20735 Parse wpa_supplicant file 2017-12-31 23:45:40 -05:00
mmcwilliams 2c3b4408fb Log excessively and use info to build parseConfig function 2017-12-31 23:16:01 -05:00
mmcwilliams 9896bf1ad5 Array output must be let, not const, to filter before sending to device. 2017-12-31 22:27:02 -05:00
mmcwilliams 89199a5095 Remove blank responses in wifi access point listing 2017-12-31 22:03:42 -05:00
mmcwilliams 0064f75e3b List wifi APs and log when process is starting 2017-12-31 21:41:18 -05:00
mmcwilliams 5b3d1ff2b3 Update write characteristic to use hash function, making createPSK public function 2017-12-31 21:32:09 -05:00
mmcwilliams 43f62e4885 wifi read characteristic in bleno and get network SSID on startup 2017-12-31 21:23:31 -05:00
mmcwilliams 488b614e16 Parse out hash and passphrase, mask passphrase when creating a record 2017-12-31 21:06:42 -05:00
mmcwilliams d3a7a97c78 Wifi module test. Use wpa_passphrase to generate a safe password hash 2017-12-31 20:55:54 -05:00
mmcwilliams a1ced19b42 Move all config files into ./conf 2017-12-31 01:26:29 -05:00
mmcwilliams d62a83e4ff Add beginnings of parts list and project description 2017-12-30 00:49:31 -05:00
mmcwilliams 60cdbcdf25 Carriage belonged to the mcopy project, was misplaced here 2017-12-30 00:00:55 -05:00
mmcwilliams 17ad081607 Use an anyany screen for all ios devices 2017-12-29 23:59:27 -05:00
mmcwilliams 635f6aee0b ignore problem files 2017-12-29 23:43:12 -05:00
mmcwilliams 9d3a4dd22d Update readme language 2017-12-29 23:42:05 -05:00
mmcwilliams c324910a1d Consistent naming, new icon, building for more testers 2017-12-29 23:42:05 -05:00
mmcw-dev 16c8c3461b Snafuu with the icons script, fixed the path names to deploy new icons on command 2017-12-29 23:21:00 -05:00
mmcw-dev 2398285006 Re-created and optimized all images. 2017-12-29 23:09:07 -05:00
mmcw-dev c599e3480b optimize images after resizing 2017-12-29 23:08:39 -05:00
mmcwilliams a26d73bece Fix intval button text changes 2017-12-29 22:42:49 -05:00
mmcw-dev b02035ea16 Add a universal splash screen for ios 2017-12-29 22:41:28 -05:00
mmcwilliams f9f98ebc02 Fix direction label in mobile app (light up selected) 2017-12-29 22:05:00 -05:00
mmcwilliams e6ce3cd977 Script the creation of icons and splash screens from a single source. Splash screens still not working 2017-12-29 21:44:31 -05:00
mmcwilliams 01a4f17bf6 Fix build and add splash screen.
Use a build.json file to manage certs in ios
2017-12-29 21:43:54 -05:00
mmcwilliams f899c2e120 Add alpha icons to build 2017-12-29 20:08:15 -05:00
mmcw-dev 727ec7cae0 Set innerHTML of non-input elements, not value. This is why labels are not changing. 2017-12-23 22:30:17 -05:00
mmcw-dev f044c0eee3 Highlight camera directon when selected 2017-12-23 22:23:09 -05:00
mmcw-dev 7ac6f89af9 Only set ble active flag if on ble 2017-12-23 22:22:36 -05:00
mmcw-dev 72b127f134 Change innerHTML, not innerText 2017-12-22 16:34:06 -05:00
mmcw-dev bb41526516 Intval.reset() instead of intval._setState() 2017-12-22 15:28:47 -05:00
mmcw-dev 58c01c4108 Change message on sequence button if running 2017-12-22 15:28:09 -05:00
mmcw-dev 532ec2e679 Install rpio 2017-12-22 15:27:21 -05:00
mmcw-dev 9fe6bec132 Install rpio 2017-12-22 15:26:55 -05:00
mmcw-dev 30e1c52ab0 Remove extraneous DOM manipulation from the sequenceSuccess function 2017-12-21 00:17:19 -05:00
mmcw-dev fdc43fdc37 Get state after finishing sequence, to update UI 2017-12-21 00:15:55 -05:00
mmcw-dev 9e13e0fb96 Log state to see why there are false positives 2017-12-21 00:03:32 -05:00
mmcw-dev 782bf04714 Start and stop worked in web lib, but GUI didn't. This is a fix that shuts off the "sequence" button when sequence is stopped. 2017-12-20 23:59:36 -05:00
mmcw-dev 360998e9a0 Using periods instead of commas. Starting to get tired. 2017-12-20 23:52:58 -05:00
mmcw-dev 2545df2c38 Add events to the html and respective libraries, web, mobile and core 2017-12-20 23:49:51 -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 e1a54c10e0 Prevent sequence from starting if already started. Add an id to the sequence, for logging (though the doubling up should discontinue). 2017-12-20 23:29:08 -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 0b48dc87b4 use the microdelay to prevent multiple frames 2017-12-20 22:30:48 -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 19815dbb4d Log step sequence to keep track during tests. OFF BY ONE! OFF BY ONE! 2017-12-20 21:59:30 -05:00
mmcw-dev 11bf8b95f8 flag the start of a sequence and stop it. 2017-12-20 21:49:26 -05:00
mmcw-dev b1085cb77c Need to declare pins even during state restore failure. 2017-12-20 21:41:41 -05:00
mmcw-dev 64440f7c1c Set state if invalid. Hopefully it overwrites? 2017-12-20 21:39:17 -05:00
mmcw-dev ec156fc8b6 Log output of removing state directory 2017-12-20 21:34:00 -05:00
mmcw-dev b605f875bc Declare intval object variables before init function 2017-12-20 21:32:07 -05:00
mmcw-dev a039e8f616 Do NOT use maximum loop logic when steppign throuhg a sequence without a max loop 2017-12-20 21:26:59 -05:00
mmcw-dev 64b0244972 Store callback to invoke at the end of a sequence 2017-12-20 21:24:51 -05:00
mmcw-dev c7ed8bed3b Was returning sequence start, now calling and then returning 2017-12-20 21:12:40 -05:00
mmcw-dev 66ac78fee0 If state is malformed, quit and restart app 2017-12-20 21:03:57 -05:00
mmcw-dev dbf641ef69 See how sequence.stop is being called, using console.trace 2017-12-20 20:59:52 -05:00
mmcw-dev 0668d856be Errored out trying a stop function 2017-12-20 20:57:02 -05:00
mmcw-dev 573287384d Actually call next step when running a loop 2017-12-20 20:53:21 -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 0a3add86cb Only log stop function 2017-12-20 20:46:53 -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
mmcw-dev 2a2d71ec73 Begin designing a carriage and stand for the intval. 2017-12-15 09:01:46 -05:00
mmcwilliams 22d497b464 BLE features are working, minus the wifi feature. Good work today. 2017-12-13 18:40:14 -05:00
mmcwilliams 57efee6d7f os module needs to be required first 2017-12-13 18:35:59 -05:00
mmcwilliams 35feed7775 Require bleno AFTER unique name is applied (this was messing up) 2017-12-13 18:34:00 -05:00
mmcwilliams 6cabd0e926 Use a better device id 2017-12-13 18:31:59 -05:00
mmcwilliams 567b1bb55d Advertisement length error, try with char_id, not both ids 2017-12-13 18:25:02 -05:00
mmcwilliams 47c75f5ba9 Name and advertise properly 2017-12-13 18:22:32 -05:00
mmcwilliams e5207a8474 App supports controlling intval with bluetooth 2017-12-13 17:52:25 -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 601d0cf581 Send a buffer of a string, not the entire string. 2017-12-12 13:24:26 -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 f74465cbbc utf8 not uft8. I am a freaking dumbass. 2017-12-12 11:57:04 -05:00
mmcwilliams 05a69e5512 Do not log getState data, but do log utf8 string and parsed object onWrite 2017-12-12 11:54:43 -05:00
mmcwilliams 5f61865366 No need to log state 2017-12-12 11:38:48 -05:00
mmcwilliams 3e9f560db0 intval.status() not intval.state. 2017-12-11 14:57:01 -05:00
mmcwilliams 76fcc95327 See what state is before sending 2017-12-11 14:47:05 -05:00
mmcwilliams 5f97c7a4de Pass back actual state object. 2017-12-11 14:44:27 -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
mmcw-dev 395c60b8a2 Key_cap sizing improved 2017-12-06 23:13:49 -05:00
mmcw-dev 58f2ec885a Enlarge the panel mount column 2017-11-28 15:21:52 -05:00
mmcw-dev fb1273614c Example sequencer control with a bash script. 2017-11-28 15:20:56 -05:00
mmcwilliams 292dc2913c Do not watch locally 2017-11-23 09:53:04 -05:00
mmcwilliams a71deca9e3 INTBAL?????? 2017-11-23 09:52:49 -05:00
mmcwilliams 6ce6af3abe Log whether or not frame is part of a sequence. 2017-11-23 09:46:18 -05:00
mmcwilliams 6ee022a2a4 Had not declared query const properly. Fixed. 2017-11-23 09:35:47 -05:00
mmcwilliams 64389ab954 Add feature to list all frames and another to find others with a WHERE statement. 2017-11-23 09:34:24 -05:00
mmcwilliams cd3f79a3a0 Use an integer to track direction, boolean is not an sqlite3 datatype. 2017-11-23 09:29:44 -05:00
mmcwilliams e558b0387d State.frame.current, not state.current. 2017-11-23 09:23:05 -05:00
mmcwilliams 320d3fe02f Spell exposure right, ya dingus. 2017-11-23 09:21:56 -05:00
mmcwilliams bdac1aa50c Need node-gyp to build sqlite3. 2017-11-23 09:21:43 -05:00
mmcwilliams 73a65d9021 Add sqlite3 and table logging functionality. Track all frames all the time. 2017-11-23 09:19:43 -05:00
mmcwilliams 37326534ed Accidentally broke web while testing, add back. 2017-11-23 08:59:49 -05:00
mmcwilliams 9c5d429051 Use sequence module and begin fashioning requests around it. 2017-11-22 20:26:34 -05:00
mmcwilliams a79d13d382 Add sequence module and db module placeholder 2017-11-22 20:26:10 -05:00
mmcwilliams f428c72bdb Remove sequencer feature, too similar to the mcopy feature and not needed in a standalone intervalometer. 2017-11-22 20:05:19 -05:00
mmcwilliams e6b0329aa1 Add codemirror dependencies. 2017-11-22 19:49:06 -05:00
mmcwilliams 3aae58c5d9 Add mscript GUI. 2017-11-22 19:48:45 -05:00
mmcwilliams e1e272b92c Sorted out web/mobile startup. Working on ble features. 2017-11-22 14:32:13 -05:00
mmcwilliams 57aa86d419 Install sqlite and squel for storing data embedded. 2017-11-22 14:31:03 -05:00
mmcwilliams a7411644c6 Move svg icons into css file. 2017-11-22 14:26:43 -05:00
mmcwilliams 0c267fa9fb Attach functions to the window option so that cordova does not break. 2017-11-22 12:45:52 -05:00
mmcwilliams 87473cd403 Install cordova plugins 2017-11-22 12:45:13 -05:00
mmcwilliams f2b2291825 Use version 3.0.0 for starting point of hardware project. 2017-11-22 12:44:25 -05:00
mmcwilliams 4ccab7e933 Establish cordova app in /app directory. Will do development with testflight and using an adhoc profile for beta testers. 2017-11-22 12:25:06 -05:00
mmcwilliams e7c3cb6d47 Web and mobile have their own files now. Determine presence of cordova when in mobile app. 2017-11-22 12:10:33 -05:00
mmcwilliams 176fd37995 /app/www not /www 2017-11-22 12:05:02 -05:00
mmcwilliams 26ea43cc79 Separate intval.web.js into its own file. 2017-11-22 12:04:45 -05:00
mmcwilliams 2593d803ef Use a static file server config that will work on web and mobile. 2017-11-22 11:58:02 -05:00
mmcwilliams 6ce4241346 Update scripts to match recent tests. 2017-11-22 11:57:40 -05:00
mmcwilliams 86930bb9c2 Use static files but dont use gzip (for now). 2017-11-22 11:50:51 -05:00
mmcwilliams f82c487416 Use nginx as the web server, frontending node. 2017-11-22 11:45:27 -05:00
mmcwilliams 3d9985a372 Set counter UI element. Make re-usable for app. 2017-11-22 11:38:05 -05:00
mmcwilliams fe492eca6f Fetch uses body, not data. 2017-11-22 11:34:51 -05:00
mmcwilliams fdc0f41725 Fetch body is empty, see why. 2017-11-22 11:33:20 -05:00
mmcwilliams dd74ba7218 Res.send not req.send you absolute knucklehead. 2017-11-22 11:31:08 -05:00
mmcwilliams cc509a7b57 Opts, not "opt". 2017-11-22 11:26:25 -05:00
mmcwilliams d19caed973 Use classes over ids. Only allow promp value to change counter. 2017-11-22 11:25:04 -05:00
mmcw-dev c827f64510 Update intval module documentation 2017-11-22 09:58:57 -05:00
mmcw-dev 7109e6c52e Add general purpose characteristic for intval3 2017-11-22 09:58:45 -05:00
mmcw-dev e2b3d86f31 Run node index.js, not the deleted bluetooth service. 2017-11-22 09:31:03 -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 b9ceb506c7 Motor cap to print. 2017-11-21 19:36:39 -05:00
mmcwilliams 0cde3b7864 Log completed frame with direction and timing. 2017-11-21 18:15:46 -05:00
mmcwilliams 2543a24b32 Exposure, not "eposure" you jackass. 2017-11-21 18:12:21 -05:00
mmcwilliams f706926f26 Set counter, exposure and delay all with fetch() and vanilla js dom manipulation. 2017-11-21 18:09:59 -05:00
mmcwilliams ab609c4f31 Remove post body from frame, reverse frames are not happening. 2017-11-21 17:54:56 -05:00
mmcwilliams a1d193fc56 Fix typo within setExposureScale 2017-11-21 17:52:26 -05:00
mmcwilliams 01dddcbb4b Remove all jquery from getState roundtrip. 2017-11-21 17:48:30 -05:00
mmcwilliams ae9fd34445 Provide options for fetch to get state. 2017-11-21 17:15:13 -05:00
mmcwilliams 134afb8e05 Log all json responses. 2017-11-21 17:13:07 -05:00
mmcwilliams cf3e4ca69b Trigger a frame and increment the counter. 2017-11-21 17:08:54 -05:00
mmcwilliams a99f364fb9 Set a content-type header for json posts 2017-11-21 16:59:22 -05:00
mmcwilliams 5ea31a7050 FormData is choking the server 2017-11-21 16:55:44 -05:00
mmcwilliams 58d173da75 Use form data constructor 2017-11-21 16:52:59 -05:00
mmcwilliams 550dad4c91 Parse response with .json() within fetch callback. 2017-11-21 16:49:02 -05:00
mmcwilliams c402e6e87d Remove jquery from setDirLabel. 2017-11-21 16:43:56 -05:00
mmcwilliams 722d3701ac POST not /POST and invert checkbox state before submitting. 2017-11-21 16:38:11 -05:00
mmcwilliams 42aa573698 Begin removing jquery, use vanilla js 2017-11-21 16:34:07 -05:00
mmcwilliams 4e76274e83 Turn off wireless power management 2017-11-21 16:33:51 -05:00
mmcwilliams 31ee3e1ca1 Update app to not use text blobs 2017-11-21 13:50:13 -05:00
mmcwilliams ed3e9c13c5 Configuration file used to enable wlan0 in network interfaces 2017-11-21 13:50:13 -05:00
mmcwilliams 5a94f52b79 Update to larger dc jack for intval case. 2017-11-20 17:16:00 -05:00
M McWilliams c7bbe4a592 Merge branch 'dev' of https://github.com/sixteenmillimeter/intval3 into dev 2017-11-10 04:58:17 -05:00
M McWilliams d17e871ba9 Add pads file for creating a compact board 2017-11-09 09:41:19 -05:00
mmcwilliams d939eeb847 flipped text 2017-11-08 12:45:35 -05:00
M McWilliams 8fd1ae63ec V4 prototype of the board. This one goes to production. 2017-11-08 07:47:04 -05:00
mmcw-dev 2d0c8f0755 Update PCB design to use raspberry pi 3 headers. Use 5mm terminal blocks. 2017-11-03 14:29:50 -04:00
M McWilliams 2fbabbdd3e Third revision of the intval3 prototype board. Lookin good. 2017-10-30 18:02:14 -04:00
M McWilliams 14b36f76bf Tighten up board design 2017-10-27 18:56:45 -04:00
M McWilliams 05cdda615b Adjust length of panel connection 2017-10-27 17:40:32 -04:00
mmcw-dev 0e4314818e Extend the panel attachment tube to reach the top of the panel 2017-10-27 14:53:26 -04:00
mmcw-dev 2f547e773c Use local stash 2017-10-27 14:42:27 -04:00
M McWilliams 2fe218b3ef electronics_mount doesnt exist, just use l289N_mount 2017-10-26 20:28:44 -04:00
mmcwilliams ef9e61b736 Made minor adjustments to case for better fit and for access. 2017-10-25 12:13:03 -04:00
mmcwilliams abbf6500b5 Test case ready to cut 2017-10-25 11:40:54 -04:00
mmcwilliams 461a0a77d9 Position tabs on case side pieces using arguments, not hardcoded values. 2017-10-25 10:42:37 -04:00
mmcwilliams 71610405d2 Start adapting case to new size requirements. 2017-10-24 16:44:06 -04:00
mmcw-dev d841f29006 Restore state gracefully. 2017-10-24 09:56:59 -04:00
mmcw-dev a408414090 Begin re-write of intval hardware files. 2017-10-24 09:56:15 -04:00
mmcw-dev 621464973a Reduce padding top from 20px to 5px 2017-10-23 20:54:03 -04:00
mmcw-dev 39e89b4b33 setCounter not defined. 2017-10-23 20:44:35 -04:00
mmcw-dev 2ea975e480 counter not count. 2017-10-23 20:43:16 -04:00
mmcw-dev 05da1f280f Add setCounter feature. 2017-10-23 20:41:28 -04:00
mmcw-dev 8eccf05a68 storage.getItem, not getItem, you scrub. 2017-10-23 20:31:24 -04: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 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
mmcw-dev 5079adf04f Paused logging 2017-10-20 21:01:58 -04:00
mmcw-dev cc6311a01a Add logging to backwards from forwards logic 2017-10-20 20:58:55 -04:00
mmcw-dev 3266a4ca14 Test backwards timed frames. 2017-10-20 20:55:09 -04:00
mmcw-dev e09f1adbcd Ok backwards frames are apparently doing fine. This commit uses a better organized object structure for release variables. 2017-10-20 20:54:35 -04:00
mmcw-dev 190732de13 Whoops, referenced "dir" not "val" 2017-10-20 20:45:21 -04:00
mmcw-dev 4e1a3783f0 Test backwards frames 2017-10-20 20:43:54 -04:00
mmcw-dev f74fa2798e Reduce "closed" time by 50ms. Is still too long when frame fires. Logging might be the culprit 2017-10-20 20:42:11 -04:00
mmcw-dev 6882c37cf0 Using a "closed" variable. That's the ticket. 2017-10-20 20:39:07 -04:00
mmcw-dev 9ceb17c03b Forget pad, just use open 2017-10-20 20:36:27 -04:00
mmcw-dev 4908ccabca Use a padding value, instead of subtracting the open variable from the desired exposure. 2017-10-20 20:35:00 -04:00
mmcw-dev c95af1693f Reduce open state variable by 50 ms, from 300 to 250 2017-10-20 20:31:28 -04:00
mmcw-dev 32e94fadb0 That was the wrong variable as well 2017-10-20 20:29:14 -04:00
mmcw-dev 58267bf71c Set pause flag before frame is actually paused. To prevent stop events when motor slows. 2017-10-20 20:27:43 -04:00
mmcw-dev ca8f6b2be9 Logging when frames restart. I am still screwing up. 2017-10-20 20:25:45 -04:00
mmcw-dev 243f45c836 Harden the logic which allows exposures at arbitrary exposure times. A "pause" variable has been added to the frame state that tracks when the frame is intentionally paused, preventing the premature pausing of a single frame. 2017-10-20 20:19:29 -04:00
mmcw-dev ef77ecce83 Log microswitch watch function because frames are being stopped prematurely 2017-10-20 20:10:38 -04:00
mmcw-dev 4d16ab8921 Confarnit! Caught the same error in another place, was referencing a variable to an undefined variable. 2017-10-20 20:08:43 -04:00
mmcw-dev 6f73790f5a Was using undefined variable. Silly me. 2017-10-20 20:05:51 -04:00
mmcw-dev 736a0c858b Log variables when pausing frames. 2017-10-20 19:58:16 -04:00
mmcw-dev d511ecdfbe If statements were eating the frame continuance step. This has been altered by using 0 as the default value for arbitrary exposure frames. 2017-10-20 19:53:57 -04:00
mmcw-dev 43213cc6ce Match exposure time to intval2 logic. Try a 5 second exposure time. 2017-10-20 19:44:58 -04:00
mmcw-dev 16f8675339 OK backwards microswitch logic is not sound. Please revisit. 2017-10-20 19:38:26 -04:00
mmcw-dev 7e989eeadf Add beginnings of the arbitrary exposure time logic. Test with /tests/index.js file 2017-10-20 19:36:23 -04:00
mmcwilliams 429441137e Remove voltage step-up chips and add a voltage regulator for regulating 5v from a 12v source 2017-10-20 13:59:19 -04:00
mmcwilliams 7d9377e7ea Start fleshing out API for web/mobile 2017-10-20 13:58:01 -04:00
mmcw-dev 2a08c64878 Stop immediately 2017-10-19 22:13:34 -04:00
mmcw-dev b7dd9e4fa1 Was not actually calling intval._stop(). How embarassing? 2017-10-19 22:03:13 -04:00
mmcw-dev 0b47713c58 Stop resetting frame.start to 0 2017-10-19 21:59:38 -04:00
mmcw-dev 6218d8d585 Refactor intval library to use object. The nature of the GPIO module in use breaks references to this 2017-10-19 21:52:13 -04:00
mmcw-dev 15d9225c04 Log error on uncaught exception 2017-10-19 21:42:52 -04:00
mmcw-dev 4818b44abf Test frame (and see why release switch is causing a hard exit) 2017-10-19 21:40:24 -04:00
mmcw-dev 53d50e715c No pins exit message 2017-10-19 21:34:14 -04:00
mmcw-dev e27add8da7 Refactor releaseWatch to use a seperate function to determine close state for the release switch 2017-10-19 21:30:07 -04:00
mmcw-dev 2b06eb3b3c Release pin is crashing lib 2017-10-19 21:24:20 -04:00
mmcw-dev cb407b5057 Switched pins for micro and release in the intval lib 2017-10-19 21:21:41 -04:00
mmcw-dev 9d665437be Motor works! forward and backwards! lib intval does not, however 2017-10-19 21:19:26 -04:00
mmcw-dev 1abc4ec702 run backwards 2017-10-19 20:26:37 -04:00
mmcw-dev 56680db1be Run motor while watching microswitch 2017-10-19 20:21:14 -04:00
mmcw-dev 5097ed87ea Only test microswitch 2017-10-19 19:22:21 -04:00
mmcw-dev 988cf6a786 Test microswitch now too 2017-10-19 19:12:15 -04:00
mmcw-dev 0e4cdb2778 Only test release for now 2017-10-19 19:04:14 -04:00
mmcw-dev b6a29f0e9e Log all variables 2017-10-19 17:57:28 -04:00
Matt 448bbd66eb Merge pull request #1 from sixteenmillimeter/master
Merge latest changes on master branch to dev branch
2017-09-28 13:30:52 -04:00
mmcwilliams 86ef664cd3 Update intval library documentation 2017-09-25 23:27:04 -04:00
mmcwilliams ceb961ebd6 Add unexport function to onoffsim GPIO object 2017-09-25 23:26:47 -04:00
mmcwilliams 495e59eae2 Use log library in intval module 2017-09-25 23:26:13 -04:00
mmcwilliams 82aa857ffd Use log library instead of ipc log 2017-09-25 23:25:54 -04:00
mmcwilliams 7f48045bbd Log with appropriate tagging 2017-09-25 23:25:34 -04:00
mmcwilliams a5b4ef2149 Import mscript library from mcopy
Refactored into es6 style, intention is to extend it to accept delays
in looping logic
2017-09-25 23:25:15 -04:00
mmcwilliams 4ec3cf422b Document intval lib logic for microswitch watcher 2017-09-24 22:28:46 -04:00
mmcwilliams 50a335af95 Add log library and microswitch logic 2017-09-24 22:28:26 -04:00
mmcwilliams a9f2040f3f Squash errors on connect (for dev) 2017-09-24 22:28:06 -04:00
mmcwilliams 1b51b50185 Add log library 2017-09-24 22:27:53 -04:00
mmcwilliams 50262facc2 Intval 3 board prototype
Design roughed in fritzing, the pdf pulled into photoshop and hand
routed.
2017-09-24 22:20:26 -04:00
mmcwilliams 26f3ed4a11 Set bwd to low 2017-09-24 16:05:35 -04:00
mmcwilliams ef130b3939 Set motor pins to low on SIGINT 2017-09-24 15:06:04 -04:00
mmcwilliams 31deef9ada Still reading 1.6V on GPIO pin set high
Possibly damaged pin 18
2017-09-23 19:06:32 -04:00
mmcwilliams 8f8785c4fb No idea why I believed that comment
Trying gpis 18
2017-09-23 19:02:48 -04:00
mmcwilliams d7671b15ab Using pin 33 instead of 13
Per this thread
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=71247
2017-09-23 18:59:24 -04:00
mmcwilliams 68e49e2e22 Test all together, watch and writeSync 2017-09-23 17:59:55 -04:00
mmcwilliams ef1a793a08 WriteSync, not set 2017-09-23 17:58:16 -04:00
mmcwilliams bde21e9ac7 Test setting output pin high 2017-09-23 17:56:13 -04:00
mmcwilliams f419bcd36e Test microswitch on pin 6 2017-09-23 08:56:29 -04:00
mmcwilliams 31a5b315bd Try out microswitch logic 2017-09-23 08:53:48 -04:00
mmcwilliams aaef150f8a Begin microswitch test logic 2017-09-22 00:29:31 -04:00
mmcwilliams bc077a24a1 Document remaining functions in lib/intval 2017-09-19 15:40:42 -04:00
mmcwilliams aadf6aef37 Remove extra function name from docs
jsdoc does this well enough without repeating. Does not actually
improve readability in code
2017-09-19 15:23:48 -04:00
mmcwilliams 52c0c6f352 Add default optional values to documentation 2017-09-19 15:20:58 -04:00
mmcwilliams bfb28a0448 Add documentation to interval 2017-09-19 15:06:52 -04:00
mmcwilliams 32affb1b72 Use PINS configuration object to initialize pins
TODO: Separate into file, automatically switching out for different
models
2017-09-19 15:06:34 -04:00
mmcwilliams 332399cfd7 Document intval lib 2017-09-18 20:46:18 -04:00
mmcwilliams 0fc4200f6d Re-add watch callback console.log 2017-09-17 20:27:51 -04:00
mmcwilliams 78135c4e77 More complex logic to prevent errant closed events from breaking 2017-09-17 20:25:21 -04:00
mmcwilliams 2d0aaaca8c Remove extra log events
Test running test for extended length of time to test whether or not
errant 0 change events trigger frames
2017-09-17 20:00:26 -04:00
mmcwilliams f13d609fce Fixed over 1000ms sequence logic 2017-09-17 19:57:38 -04:00
mmcwilliams 4cb28c024d Caught major oversight. 1 = open
Therefore frame event needs to be determined on open, after started
when closed
2017-09-17 19:55:35 -04:00
mmcwilliams 418d33c8f7 Updated default behavior of frame
Also added a parallel example of the logic to gpio.js
2017-09-17 19:51:33 -04:00
mmcwilliams c49c6a5b8d Documentation for blootstrap 2017-09-17 17:54:07 -04:00
mmcwilliams b60334d4b7 Add documentation to wifi library 2017-09-17 15:50:14 -04:00
mmcwilliams e3393e6e7d Add documentation to onoffsim 2017-09-17 15:20:38 -04:00
mmcwilliams 9f308f035f Install jsdoc-to-markdown for documentation
For adding documentation to libraries
2017-09-17 15:13:40 -04:00
mmcwilliams d2e5c0f998 GPIO 05 works with pulldown resistor
Now try with built in watch command
2017-09-16 15:09:29 -04:00
mmcwilliams 28810e761d Try gpio05 2017-09-16 15:07:34 -04:00
mmcwilliams 47abb3b8e5 Watch not responding to shorts, use set interval with a readSync() 2017-09-16 14:54:40 -04:00
mmcwilliams c8f9236a9d Pin 12 not GPIO 18? 2017-09-16 14:51:37 -04:00
mmcwilliams 996e0ca81a Add gpio.js test file 2017-09-16 14:47:33 -04:00
mmcwilliams 32625bbbde Unexport buttons on uncaught exception 2017-09-16 13:35:39 -04:00
mmcwilliams a0729ff9d9 Write using template string, not object 2017-08-30 08:59:27 -04:00
mmcwilliams c87d425c57 Add better state object structure
And use in preliminary logic
2017-08-29 22:27:56 -04:00
mmcwilliams cf537af849 Add intval3 index to process file, for pm2 2017-08-29 22:27:37 -04:00
mmcwilliams ddf89cf6aa Start intval logic in module 2017-08-29 08:23:52 -04:00
mmcwilliams e264dc8343 Ignore generated .sh 2017-08-29 08:23:32 -04:00
mmcwilliams acabe0e80a Add dev script for incorporating process env variables 2017-08-29 08:23:18 -04:00
mmcwilliams ef514f7b0a Install jq as a dep for json manipulation in bash 2017-08-29 08:17:29 -04:00
mmcwilliams 9eac1e0193 Install with latest node.js and latest npm
Create a sim library as a fallback for the on off module, for
development
2017-08-28 08:49:47 -04:00
mmcwilliams 40cfda8d90 Remove logging. 2017-08-26 19:26:30 -04:00
mmcwilliams 760c6c72ab Require specifically the Gpio function 2017-08-26 19:08:39 -04:00
mmcwilliams 90210e02f3 Dump contents of the onoff to console 2017-08-26 19:06:43 -04:00
mmcwilliams 524aba90d8 Install onoff for better button watching 2017-08-22 01:31:27 -04:00
mmcwilliams 77a10fa80a Add stubb functionality for starting and stopping motor via hbridge 2017-08-22 00:49:08 -04:00
mmcwilliams 9902702f84 Caught misnamed files from original project 2017-08-22 00:38:53 -04:00
mmcwilliams 0d05b18682 Add startFrame variable for tracking length of frames 2017-08-22 00:30:17 -04:00