add machine replacement detection docs (78f4b74)

2026-05-23 17:43:56 -04:00
parent ebb43cffc4
commit 00c9b24c76
+5
@@ -54,6 +54,11 @@ Staged import pipeline for Cantaloupe machine data:
**Tests:** 10 unit tests (test_cantaloupe_sync.py) + 23 integration tests (test_sync_api.py). All 33 pass.
**Machine replacement detection (78f4b74):** The sync pipeline now detects when a new Asset ID appears at the same customer + address as an existing live asset not in the current import — indicating a potential machine replacement.
- **high** confidence: exact address match
- **medium** confidence: same building_name or same street name
- Results stored in `diff_summary.replacements` array: `{id, new_machine_id, old_machine_id, location_address, customer_name, old_asset_name, new_asset_name, confidence}`
### Cron Job — 6h Auto-Sync (since e9d18cb)
Hermes cron job `5ababff9c6e9` runs every 6 hours, executing `~/.hermes/scripts/cantaloupe-sync.sh`: