Commit Graph

63 Commits

Author SHA1 Message Date
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
Kelvin Ly 80916bc3fa Deal with failed parameter queries properly 2023-05-16 14:49:17 -04:00
Kelvin Ly 7ca6f6f192 Start work on admin page; parameter setting works, TODO manual mode 2023-05-16 13:50:33 -04:00
Kelvin Ly e908495c0c Switch to auth_secret file that's compiled in at runtime instead of a hardcoded string 2023-05-16 13:49:55 -04:00
Kelvin Ly 35e7a5641f Rename index.htm to index.html so it's served as '/' as well 2023-05-16 13:16:26 -04:00
Kelvin Ly 762ca60f4c Move dev webpage to static folder TODO figure out why index.htm isn't showing up at the root webpage 2023-05-16 13:13:52 -04:00
Kelvin Ly dcef35b3b2 Minor changes to data ingestion pipeline 2023-05-16 12:22:13 -04:00
Kelvin Ly ea2bc8b96b Implement customizable decimation rate, window size, and update rate 2023-05-16 12:21:49 -04:00
Kelvin Ly e5e4289342 Add support for parameter querying and modification 2023-05-16 11:35:06 -04:00
Kelvin Ly 0934e2df8d Increase TCP buffer size, fix truncation bug; it should truncate before
trying to read
2023-05-16 10:29:07 -04:00
Kelvin Ly af7627a15a Rename ShroomStatus to ShroomState 2023-05-16 10:24:50 -04:00
Kelvin Ly 5bb945e875 Refactor the controller-server format a bit; also add in some protection to prevent overrun issues 2023-05-16 10:19:16 -04:00
Kelvin Ly 09504e9ec5 Have only one version of the controller, TODO add flags to switch from mock and actual version 2023-05-16 09:42:25 -04:00