Commit Graph

196 Commits

Author SHA1 Message Date
mmcwilliams 07229c7925 Refactored wifi and ble into typescript and converted logic to async/await for most methods. Compiles without errors ATM. 2019-11-26 22:10:59 -05:00
mmcwilliams de481ee185 Add bleno types. 2019-11-26 21:16:13 -05:00
mmcwilliams 8986014a82 Refactor wifi lib into Typescript. Only used one "any" on a custom module require that I need to revisit. (log). Yeeha! 2019-11-26 11:41:15 -05:00
mmcwilliams 84ee49a71c Compile ble and wifi as is. 2019-11-26 10:44:08 -05:00
mmcwilliams 839ff97f5a Properly escape passwords and ssids 2019-10-31 01:16:01 -04:00
mmcwilliams 5611ea338a Prevent frame from running if _state.frame.active is true. 2019-10-31 00:43:44 -04:00
mmcwilliams 7ac2e7ed67 Complete the frame request 2019-10-31 00:16:25 -04:00
mmcwilliams bdee0c1431 Use correct method name in log statement 2019-10-30 23:58:52 -04:00
mmcwilliams 6ac19c2dd8 Make a new public sequence.stop method to prevent double logging 2019-10-30 23:58:06 -04:00
mmcwilliams 074d70510f No. I was wrong. Too much of a rewrite 2019-10-30 23:53:11 -04:00
mmcwilliams 3667c8dd36 Pull delay setting out of the _state.frame object into the _state object. Ugh this is such a mess. 2019-10-30 23:47:34 -04:00
mmcwilliams d566c2160b Properly use delay from intval object. 2019-10-30 23:36:04 -04:00
mmcwilliams eed8905f29 Need to bind intval this to callback within promise. 2019-10-30 23:29:32 -04:00
mmcwilliams 5b0d120275 Frame must return a promise for sequence to work. For any of it, really. 2019-10-30 23:27:09 -04:00
mmcwilliams 0f57c1c630 When I said I had made the last boneheaded error or the night I was lying. Need to set sequence.active = true at beginning of the sequence 2019-10-30 23:19:50 -04:00
mmcwilliams 92172e19b1 Build logging changes 2019-10-30 23:16:34 -04:00
mmcwilliams 4d41dcb7b5 Did not complete previous commit 2019-10-30 22:50:41 -04:00
mmcwilliams 6ae25134a2 Use correct require method for node-persist (blegh) 2019-10-30 22:43:18 -04:00
mmcwilliams 26116303cc Ready to try re-write in prototype 2019-10-30 22:32:52 -04:00
mmcwilliams 26655ea0a7 re-write progress, changing platforms 2019-10-16 10:58:46 -04:00
mmcwilliams 8974c8ddcc Properly export and require delay module in sequencer 2019-10-11 18:24:41 -04:00
mmcwilliams d90dfc4a6c Sequencer converted into a singleton class. 2019-10-11 18:15:32 -04:00
mmcwilliams f953a79080 Backup intval module, in case this whole thing goes awry. 2019-10-11 17:57:07 -04:00
mmcwilliams 70ca24c62f Intval default should be 530, not 630 as it is right now. 2019-10-11 17:56:10 -04:00
mmcwilliams f99290d6ce Install delay module and compile from Typescript source. 2019-10-11 17:54:29 -04:00
mmcwilliams 591641774a Compile sequence module as is. 2019-10-11 17:53:41 -04:00
mmcwilliams f1ab4ca1af Backup sequence and create typescript source for it 2019-10-11 17:36:49 -04:00
mmcwilliams adfadc8008 Bug in wifiRes was writing to constant variable on error state 2019-03-27 18:36:39 -04:00
mmcwilliams 46c497bd54 Use ip instead of ifconfig, which is deprecated and breaks on the latest stretch, for me 2019-03-27 18:26:33 -04:00
mmcwilliams 52a5038b1a I was wrong. Reinstall sqlite3 and db lib. 2019-03-27 17:08:50 -04:00
mmcwilliams 6976d2089a Remove sqlite3 from dependencies (unused) and remove lib/db (unused). Originally this was intended to be used for analytics, but that isn't on the roadmap right now. 2019-03-27 12:52:43 -04:00
mmcwilliams 3a4c076d82 Limit list to 20 wifi APs, not 5. 2019-03-26 16:08:16 -04:00
mmcw-dev 2ad2aa57ab Gpio must be constructed with new 2019-02-23 20:52:47 -05:00
mmcw-dev 238656a1e1 Uninstall gpio and rpio for now. Just use onoff 2019-02-23 20:08:26 -05:00
mmcwilliams 2be63972b2 winston.Logger was replaced by winston.createLogger 2019-02-23 18:05:48 -05:00
mmcw-dev 4d66c5c07a Placeholder for re-write of intval lib using rpio. Potential speed increase on io functions. 2018-08-09 08:01:04 -04: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 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 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
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 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