Commit Graph

75 Commits

Author SHA1 Message Date
Kelvin Ly 121d39bfae Improve retry and cleanup logic 2025-03-18 22:36:58 -04:00
Kelvin Ly be008a2876 SSH connection logic seems to be working correctly 2025-03-18 22:28:13 -04:00
Kelvin Ly f0e7bbe358 Switch to using libssh2 from someone who knows how to properly configure it 2025-03-18 22:22:05 -04:00
Kelvin Ly 363ce80f14 Start work on using libssh2 to establish an SSH session 2025-03-18 00:06:45 -04:00
Kelvin Ly 0720606969 Get WiFi connected on ESP32 2025-03-17 15:32:10 -04:00
Kelvin Ly dcfd5ebc79 Implement datalogger 2025-02-16 09:07:45 -05:00
Kelvin Ly ed1d6cb43a Slight ergonomic refactor 2025-02-15 11:17:18 -05:00
Kelvin Ly 7dd74ac36c Implement append-only log store 2025-02-15 08:32:01 -05:00
Kelvin Ly b1bfeab645 Start of ESP32 code TODO setup wifi connection, sync RTC time, then the rest 2025-02-10 23:53:58 -05:00
Kelvin Ly 36a7d28187 Save before switching to new architecture 2025-02-10 23:09:55 -05:00
Kelvin Ly 5dd60e87e4 Ensure the floating point parsing at least kind of works 2024-08-25 13:45:08 -04:00
Kelvin Ly 19483a0f68 Move more logic onto the Arduino, make properties adjustable 2024-08-25 13:44:46 -04:00
Kelvin Ly (from lePotato) 38f26f3e65 Add support for the fan 2024-08-21 12:59:12 -04:00
Kelvin Ly (from lePotato) a65dcb1ee4 Make the piping logic more robust and separate it further from the main process to avoid stalling the controller logic; add in staggered restarts 2024-08-21 11:08:57 -04:00
Kelvin on RPi 3117487346 Feedback the humidifier relay pin state to ensure it gets set 2024-08-11 20:35:01 +01:00
Kelvin on RPi ad2b15d49e Various tweaks 2024-08-09 21:47:08 +01:00
Kelvin on RPi df4d3b130d Fix typo 2024-08-09 21:47:08 +01:00
Kelvin on RPi 2cb6472133 Separate out classes into separate files 2024-08-09 21:47:08 +01:00
Kelvin Ly 476a5cb8d1 Add more entries for different number of hours 2023-09-27 23:31:18 -04:00
Kelvin Ly c38fbc474c Speed up latest entry lookup by using the cache if it's not empty 2023-09-27 23:09:29 -04:00
Kelvin Ly 88136304e4 Fix typos 2023-09-27 07:35:49 -04:00
Kelvin Ly a9abe87413 Fix dumb typo 2023-09-27 05:35:04 -04:00
Kelvin Ly e0cc31794b Fix humidifier status code and adjust rate to 2SPS from 5SPS 2023-09-27 04:48:48 -04:00
Kelvin Ly 85a85f6588 Swap out the SHT20 bare boards for the contained SHT30 boards 2023-09-27 04:45:25 -04:00
Kelvin Ly 93fc82fbd2 Fix humidifier 1 toggle command 2023-09-21 22:20:57 -04:00
Kelvin Ly b4003246a8 Merge branch 'stagger' 2023-09-21 22:08:42 -04:00
Kelvin Ly 4ba46b8331 Stagger humidifier toggles to avoid browning out the USB adapter 2023-09-21 22:08:32 -04:00
Kelvin Ly 4bbf387f4f Switch humidifier 1 to the same wiring as humidifier2 2023-09-21 22:07:23 -04:00
Kelvin Ly f69ae9eed2 Lower I2C speed to reduce errors due to longer cable 2023-09-04 13:56:26 -04:00
Kelvin Ly dcf8069f68 Add support for second voltage column 2023-07-30 23:52:43 -04:00
Kelvin Ly c7ace97ef0 Man I suck at SQL 2023-07-30 23:45:40 -04:00
Kelvin Ly 8f533d191d Fix typo in table creation 2023-07-30 23:43:44 -04:00
Kelvin Ly 1083d56c50 Add support for second humdifier to server 2023-07-30 23:36:20 -04:00
Kelvin Ly 8dae2ce83c Add more missing humidifier2 stuff 2023-07-30 23:27:22 -04:00
Kelvin Ly bd63e4e0fc Fix bugs; set pin 5 to OUPUT to make it usable, fix one bug in contrller code 2023-07-30 23:08:57 -04:00
Kelvin Ly 31859f8a69 Add in second humdifier channel TODO add in code on server side 2023-07-30 22:40:44 -04:00
Kelvin Ly d404651a74 Improve cache testing a bit more 2023-07-03 05:16:23 -04:00
Kelvin Ly e56c4835f1 Add caching to reduce load on sqlite 2023-07-03 05:12:19 -04:00
Kelvin Ly b4b1d2d60b Fix bug with old data deletion 2023-07-02 15:15:37 -04:00
Kelvin Ly 73bd49191b Add working service file 2023-05-17 22:11:42 -04:00
Kelvin Ly 838671781e Lots of small tweaks to get stuff to work; generate hex files for Arduino firmware 2023-05-17 22:09:39 -04:00
Kelvin Ly 91b4dbd0c8 Don't error out on timeout 2023-05-17 07:25:26 -04:00
Kelvin Ly 811ed951e1 Write newlines to trigger read error out on a closed connection 2023-05-17 07:22:44 -04:00
Kelvin Ly 738c52984e Try adding a dummy write so that the TCP read fails correctly 2023-05-17 07:07:28 -04:00
Kelvin Ly 13239a6b91 Change addressing scheme and fix SQL bug 2023-05-16 23:07:25 -04:00
Kelvin Ly ce2cac6602 Add code to remove old data and switch the port to 8085 2023-05-16 20:42:42 -04:00
Kelvin Ly 6287708d8c Move admin to static folder, reduce manual mode timeout to 40 seconds 2023-05-16 16:01:08 -04:00
Kelvin Ly e3cc1cd407 Add 100x decimation 2023-05-16 16:00:29 -04:00
Kelvin Ly 3baa19d145 Implement manual mode controls and thread manual mode status logic from the controller to the front end 2023-05-16 15:42:57 -04:00
Kelvin Ly 251d23446a Parameterize everything 2023-05-16 14:49:25 -04:00