35 Commits

Author SHA1 Message Date
anekdotin f1e311a0b1 feat: add /main/verify endpoint and fix estimation column precision
- Added GET /main/verify?count=N to spot-check auto estimations against
  temp history — recomputes expected gallons from HDD since last fill and
  reports drift per customer; warnings flagged when drift > 15 gal
- estimated_gallons_left and estimated_gallons_left_prev_day altered from
  INTEGER to NUMERIC(6,2) in both dev and prod DBs to eliminate ~0.3 gal/day
  rounding drift that accumulated from integer truncation on each daily update

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 15:05:31 -04:00
anekdotin c134c05947 feat: rewrite K-factor engine with history tracking and outlier detection
Replace simple exponential smoothing with a rolling-average K-factor
system backed by a new auto_kfactor_history table. Budget fills are
detected and excluded from calculations, outliers beyond 2-sigma are
flagged, and confidence scores track data quality per customer.
Adds backfill endpoint, auto-create for missing estimation records,
and manual house_factor PUT endpoints for both auto and regular customers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:54:27 -05:00
anekdotin 764c094eed Updated claude big changes 2026-01-29 08:43:45 -05:00
anekdotin ac4354716b major claude changes 2026-01-28 21:54:58 -05:00
anekdotin c2d9dd5408 Working site 2026-01-05 08:43:40 -05:00
anekdotin b8bb71900d added script for calculating auto useage 2025-11-04 22:45:12 -05:00
anekdotin 45a27b01f3 Fixed commit bug in auto 2025-10-21 22:07:32 -04:00
anekdotin 5b1932f819 fixed auto delivery 2025-10-20 12:01:31 -04:00
anekdotin 1411eb06f7 bug auto finalize 2025-10-13 11:10:04 -04:00
anekdotin ed2e6f96b6 Updated auto code and change weather api 2025-10-12 16:09:45 -04:00
anekdotin c69d48dd74 updated auto 2025-10-12 12:11:32 -04:00
anekdotin e6e13b7559 added limit to auto ticket 2025-10-06 20:01:28 -04:00
anekdotin 671c40adca working auto 2025-09-26 20:30:51 -04:00
anekdotin e873e73d6c Working flow authorize 2025-09-16 12:44:59 -04:00
anekdotin 02dfd593b9 Updated auto desc 2025-08-25 18:29:06 -04:00
anekdotin c1ff0b3d2b Added calender 2025-08-21 17:53:12 -04:00
anekdotin 5483e8ac96 website online working 2025-08-16 21:51:26 -04:00
anekdotin bc9e6ab096 Removed try block due to error 2025-05-09 14:49:28 -04:00
anekdotin 8ad7329f78 bug fixes. added auto table 2024-12-28 15:53:59 -05:00
anekdotin 4a2ec2418c small fixes 2024-12-23 18:10:43 -05:00
anekdotin 8569430468 autos working! 2024-11-20 18:00:33 -05:00
anekdotin a8c12f6edf dynamic database 2024-10-07 22:58:06 -04:00
anekdotin 47475c4f34 fixed small bug 2024-10-07 17:34:55 -04:00
anekdotin bcd2ab6113 fixed bugs 2024-09-27 14:13:23 -04:00
anekdotin 4640b9cb29 added description 2024-09-18 12:48:20 -04:00
anekdotin aa584375e6 stats working 2024-08-06 11:09:11 -04:00
anekdotin de57725a45 asdsaasd 2024-07-30 12:00:41 -04:00
anekdotin 677865ebf5 fixed bug 2024-07-30 10:12:38 -04:00
anekdotin d8da74c75b Small bug fixers 2024-07-29 13:44:09 -04:00
anekdotin 6e93343dae all pyc files removed 2024-07-24 17:27:11 -04:00
anekdotin 8273f063ed Updated auto pre testing 2024-07-24 17:22:14 -04:00
anekdotin f63da6eb0b auto working almost 2024-07-17 18:03:58 -04:00
anekdotin 44eeba0841 start of deliver 2024-07-17 10:34:36 -04:00
anekdotin 007dca7bfb Updated 2024-07-16 10:30:09 -04:00
anekdotin 853529b871 first commit 2024-07-15 17:55:45 -04:00