Topic: Events
Hi GT
I need to receive events for a past period and call:
svc=events/load¶ms={"itemId":XXX,"ivalType":1,"timeFrom":1626035340,"timeTo":1626381059,"detectors":[{"type":"trips", "filter1":0},{"type":"speedings", "filter1":0},{"type":"fueling", "filter1":0},{"type":"fuel thefts", "filter1":0}]}
And then:
svc=events/get¶ms={"selector":{"type":"trips,speedings,fueling,fuel thefts","timeFrom":1626035340,"timeTo":1626381059,"detalization":7}}
But the problem is that for fuel fillings and fuel thefts we don't receive any data while the Wialon itself shows them in same interval. The response contains the related parts but those are always empty (0):
{
"events": {
"fuel thefts": {
"0": 0
},
"fueling": {
"0": 0
},
"speedings": {
"0": 0
},
"trips": {
"0": 28
}
},
"states": {
"fuel thefts": {
"updateTime": 0
},
"fueling": {
"updateTime": 0
},
"speedings": {
"updateTime": 0
},
"trips": {
"updateTime": 1626035340
}
},
"selector": {}
}
{
"fuel thefts": {
"0": []
},
"fueling": {
"0": []
},
Please let us know what's wrong with our requests.