docs: asset location data extraction script (T8)
+8
@@ -18,6 +18,14 @@ Mobile-first web app for tracking physical assets via barcode scanning, OCR stic
|
||||
- **New table:** `service_entrances` — id, location_id (FK→locations, ON DELETE CASCADE), name (NOT NULL), latitude (NOT NULL), longitude (NOT NULL), notes (DEFAULT ''), created_at, updated_at
|
||||
- **Migration:** `init_db()` auto-adds `disney_park` column to existing DBs. Detects and recreates `service_entrances` if schema was cached without NOT NULL constraints
|
||||
|
||||
### T8 Location Data Extraction from Asset Names — May 2026
|
||||
- **Script:** `scripts/extract_asset_location_data.py`
|
||||
- **What it does:** Connects to assets.db and parses `name` fields to extract floor, building_number, room, trailer_number, and building_name using regex patterns. Also detects and deduplicates repeated name segments (e.g. "X-X" → "X").
|
||||
- **Usage:** `python3 scripts/extract_asset_location_data.py` (dry-run) or `--apply` to write changes.
|
||||
- **Coverage:** 1848 assets + 364 locations processed. Floor: 484, Building#: 258, Room: 16, Trailer: 15, Building name: 1005.
|
||||
- **Patterns handled:** Floors (1ST FL, 2nd Floor, FL02NEWBLD), Buildings (BLDG 215, Building 1180, #6328), Rooms (Room 1290, SUITE 100, Ste 400), Trailers (Trailer 1051, Trailer 1135). Edge cases: ignores 'FL' in Florida/FL4950/FL8108, doesn't overwrite existing data.
|
||||
- Commit: 13bf61d
|
||||
|
||||
### T4 Connect Label Upload — May 2026
|
||||
- **"🏷️ Connect" mode toggle** on Add Asset tab (alongside Barcode/OCR/Manual)
|
||||
- **Camera + Gallery buttons**: `connectFromCamera()` opens device camera, `connectFromGallery()` triggers file picker in connect mode
|
||||
|
||||
Reference in New Issue
Block a user