SmartOffice_V2 / seed.json
SuriRaja's picture
Create seed.json
9d0d23e verified
{
"sites": {
"hq": { "name": "Headquarters", "address": "MG Road, Hyderabad" }
},
"floors": {
"hq-L2": { "siteId": "hq", "label": "Level 2", "zones": ["Desk","Corridor","Lobby","Common"] }
},
"cameras": {
"cam-1": { "siteId": "hq", "floorId": "hq-L2", "name": "Lobby Cam", "zone": "Lobby", "online": true, "latencyMs": 120, "fps": 15 },
"cam-2": { "siteId": "hq", "floorId": "hq-L2", "name": "West Corridor", "zone": "Corridor", "online": true, "latencyMs": 95, "fps": 22 },
"cam-3": { "siteId": "hq", "floorId": "hq-L2", "name": "Open Desk A", "zone": "Desk", "online": true, "latencyMs": 135, "fps": 18 },
"cam-4": { "siteId": "hq", "floorId": "hq-L2", "name": "Open Desk B", "zone": "Desk", "online": true, "latencyMs": 110, "fps": 20 },
"cam-5": { "siteId": "hq", "floorId": "hq-L2", "name": "Cafeteria", "zone": "Common", "online": true, "latencyMs": 150, "fps": 12 },
"cam-6": { "siteId": "hq", "floorId": "hq-L2", "name": "Server Room", "zone": "Restricted", "online": true, "latencyMs": 80, "fps": 25 }
},
"employees": {
"e1": { "name": "Aparna Rao", "title": "Project Manager", "deskId": "D-14", "avatarUrl": "https://placehold.co/64", "status": "At Desk", "team": "Ops" },
"e2": { "name": "Karthik S", "title": "ML Engineer", "deskId": "D-27", "avatarUrl": "https://placehold.co/64", "status": "Away", "team": "Eng" },
"e3": { "name": "Nisha M", "title": "Ops Lead", "deskId": "C-05", "avatarUrl": "https://placehold.co/64", "status": "At Desk", "team": "Ops" }
},
"trainingImages": {
"t1": { "employeeId": "e1", "url": "https://placehold.co/160x120?text=Face+1", "approved": false, "uploadedAt": "2025-10-24T09:00:00.000Z" },
"t2": { "employeeId": "e1", "url": "https://placehold.co/160x120?text=Face+2", "approved": false, "uploadedAt": "2025-10-24T09:05:00.000Z" },
"t3": { "employeeId": "e2", "url": "https://placehold.co/160x120?text=Face+3", "approved": true, "uploadedAt": "2025-10-24T10:00:00.000Z" }
},
"detections": {
"evt-1": { "ts": "2025-10-24T09:15:00.000Z", "cameraId": "cam-1", "employeeId": "e1", "label": "Aparna Rao", "activity": "Working", "zone": "Lobby", "confidence": 93, "meta": {"bbox":[100,120,220,260]} },
"evt-2": { "ts": "2025-10-24T09:16:00.000Z", "cameraId": "cam-2", "employeeId": null, "label": "Unknown #42", "activity": "On Phone", "zone": "Corridor", "confidence": 81, "meta": {"bbox":[80,90,180,210]} },
"evt-3": { "ts": "2025-10-24T09:18:00.000Z", "cameraId": "cam-3", "employeeId": "e2", "label": "Karthik S", "activity": "Idle", "zone": "Desk", "confidence": 77, "meta": {"bbox":[60,100,200,240]} },
"evt-4": { "ts": "2025-10-24T09:21:00.000Z", "cameraId": "cam-4", "employeeId": "e3", "label": "Nisha M", "activity": "Working", "zone": "Desk", "confidence": 88, "meta": {"bbox":[90,110,210,250]} }
},
"sessions": {
"e1-2025-10-24": {
"employeeId": "e1",
"date": "2025-10-24",
"segments": [
{"start":"09:00","end":"11:00","type":"Working"},
{"start":"11:00","end":"11:18","type":"On Phone"},
{"start":"11:18","end":"12:00","type":"Working"},
{"start":"12:00","end":"12:30","type":"Corridor"},
{"start":"12:30","end":"13:30","type":"Working"},
{"start":"13:30","end":"14:00","type":"Idle"},
{"start":"14:00","end":"17:30","type":"Working"}
],
"totals": {"workingMin":382,"idleMin":46,"onPhoneMin":18,"corridorMin":21}
}
},
"alerts": {
"a1": { "severity": "high", "text": "Tailgating detected at West Door", "when": "2025-10-24T10:01:00.000Z", "ack": false, "snoozeUntil": null }
},
"appSettings": {
"default": { "onPhoneSec": 60, "idleMin": 10, "blurFaces": false, "retentionDays": 30 }
}
}