Commit Graph

22 Commits

Author SHA1 Message Date
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 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 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 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 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 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 3a7bb60360 Test out admin mode commands; it looks like the basic idea works for now at least 2023-05-15 16:44:53 -04:00
Kelvin Ly 9692132e75 Add model for humidity, fix bug in Status logic 2023-05-15 14:30:56 -04:00
Kelvin Ly 008cde9d5e Add status, adjust updater logic, add seconds/ API, fix time formatting to be more human readable 2023-05-15 12:19:40 -04:00
Kelvin Ly 0ca4da4b6c Modify the API format a bit and fix bug with the packet parsing logic 2023-05-15 10:22:45 -04:00
Kelvin Ly 25d3788478 Lots of small modifications and refactors 2023-05-14 15:23:47 -04:00
Kelvin Ly 3d9f9eceed Working queries/data ingestion TODO outputting status, admin commands, UI 2023-05-14 08:01:08 -04:00