mysterious events

Hello. I'm working directly on the API.
I activated forward to send events to my ERP.
I'm getting an event that I didn't schedule.
i created alarm alert "powerCut,powerRestored but i am getting event of "vibration..
I have not created any alerts with this parameter.
what could be happening?
v4.xx

"event": {
  "id": 39032,
  "attributes": {
    "alarm": "vibration"
  },
  "deviceId": 69,
  "type": "alarm",
  "eventTime": "2022-12-27T19:14:18.000+00:00",
  "positionId": 262537,
  "geofenceId": 0,
  "maintenanceId": 0
},
[
    {
        "id": 18,
        "attributes": {
            "titulo_notificacao": "AFASTAMENTO DE ROTA"
        },
        "calendarId": 0,
        "always": false,
        "type": "geofenceExit",
        "notificators": "web"
    },
    {
        "id": 20,
        "attributes": {
            "alarms": "sos,accident,hardAcceleration",
            "titulo_notificacao": "PEDIDO DE SOCORRO"
        },
        "calendarId": 0,
        "always": false,
        "type": "alarm",
        "notificators": "sms,web"
    },
    {
        "id": 5,
        "attributes": {
            "titulo_notificacao": "RESULTADO DE COMANDOS"
        },
        "calendarId": 0,
        "always": true,
        "type": "commandResult",
        "notificators": "sms,web"
    },
    {
        "id": 21,
        "attributes": {
            "alarms": "powerCut,powerRestored",
            "titulo_notificacao": "ALARME DE ALIMENTAÇÃO"
        },
        "calendarId": 0,
        "always": true,
        "type": "alarm",
        "notificators": "sms,web"
    },
    {
        "id": 15,
        "attributes": {
            "titulo_notificacao": "DISPOSITIVO ONLINE"
        },
        "calendarId": 0,
        "always": true,
        "type": "deviceOnline",
        "notificators": "sms,web"
    }
]
Anton Tananaev2 years ago

I think you're confusing events with notifications. Event forwarding will forward ALL events. Notifications is something you can set up to notify you about events.

i got it. thanks.
Is it possible to send notifications in the same way as events?
in JSON..

Anton Tananaev2 years ago

Not exactly the same, but you can use WebSocket connection to receive event notifications and the format will be the same.

I use socket.
but the goal is to send notifications through other channels, like whatsapp... so I use webhook.
anyway I understood and will make my adaptations

just one more doubt to solve.
does forward only send events?
does it send the positions?

Anton Tananaev2 years ago

We have both.