This document describes how alarm terminals transmit data to the server using two methods.
Both support sending alarm metadata and a JPEG image.
{
"type": "carehome",
"camIP": "192.168.1.88",
"curTime": "2025-06-18T16:25:00",
"stats": {
"emergency": 1,
"alert": 1
},
"image": "base64-encoded-image-data"
}
| Field | Type | Description |
|---|---|---|
| type | string | Fixed value: "carehome" |
| camIP | string | Camera IP address |
| curTime | string | Alarm trigger time formatted in ISO 8601 standard |
| stats | object | Status indicators, including emergency, alert, notice |
| image | string (Base64) | Encoded JPEG image |
Details of the stats field:
Data format:
#lonrock-carehome#{JSON_CONTENT}$$
#lonrock-carehome#: Start marker$$: End markerExample:
#lonrock-carehome#{
"type": "carehome",
"camIP": "192.168.1.88",
"curTime": "2025-06-18T16:25:00",
"stats": {"emergency":1},
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}$$
Form fields:
| Field | Type | Description |
|---|---|---|
| content | text | JSON alarm info (without image Data) |
| image | file | JPEG image file |
Example of content:
{
"type": "carehome",
"camIP": "192.168.1.88",
"curTime": "2025-06-18T16:25:00",
"stats": {
"alert": 1
}
}
Example of image: Upload a JPEG file, such as alarm.jpg
image from Base64content and image