1

Horometer and odometer

Тема: Horometer and odometer

How can I get the engine hours or odometer for a date or specific date ranges?

example.

Today my unit has a 1785459 engine_hours but yesterday between 12:00:00 and 12:05:05 my unit had 1625458 How i can get this value for yesterday?

2

Horometer and odometer

Re: Horometer and odometer

What equipment do you use and in what measurement units this numbers?

Хайруллин Шамиль
ООО "Смарт-сервис"
Самарская область
smrservice.ru
3

Horometer and odometer

Re: Horometer and odometer

Poddias пишет:

What equipment do you use and in what measurement units this numbers?

Atrack, teltonika,concox,kingle, galileo, unit measurement is seconds this example is dummy data.

4

Horometer and odometer

Re: Horometer and odometer

cerpas, You can get historical values of counters using unit/get_events request. Example:

var events_config = {
            itemId: <unit_id>,
            eventType: 'counters',
            ivalType: 4,
            ivalFrom: <utc_seconds_time_from>,
            ivalTo: <utc_seconds_time_to>,
        };
wialon.core.Remote.getInstance().remoteCall("unit/get_events", events_config, function(code, events) {
if (code || !events)
       return;
console.log(events);
});
Head of Wialon Local Department
Gurtam
5

Horometer and odometer

Re: Horometer and odometer

deal пишет:

nit/get_events re

Works fine , In what equipment does it work?

6

Horometer and odometer

Re: Horometer and odometer

cerpas пишет:

unit/get_events

It works almost perfect only sometimes gives no values. The units where they do not give value the counters have a atrack ak1-lite but there are other units with that same device and there they give the counter.

Do I have to set something up on the drive so it will absolutely always give me the value of the counters?

7

Horometer and odometer

Re: Horometer and odometer

I am so sorry this method functionally perfect, the units are talk about are offline.

8

Horometer and odometer

Re: Horometer and odometer

cerpas, we are happy to hear that this was helpful to You.

Head of Wialon Local Department
Gurtam
9

Horometer and odometer

Re: Horometer and odometer

Would you please give me link to documents for unit/get_events?

10

Horometer and odometer

Re: Horometer and odometer

hhamedk пишет:

Would you please give me link to documents for unit/get_events?

For this there is no documentation.

11

Horometer and odometer

Re: Horometer and odometer

Gurtam Team, It's strange for me if there is no documents for this really, why?

12

Horometer and odometer

Re: Horometer and odometer

hhamedk, there were some performance and correctness problems with results of this request after it was added.
That's why this feature wasn't documented in time. We'll add this request to docs soon.

Head of Wialon Local Department
Gurtam
13

Horometer and odometer

Re: Horometer and odometer

you should check the events updates section in the API remote documentation https://sdk.wialon.com/wiki/en/kit/remo … ck_updates  sending the following parameter you should get a response from the server tha gives you several information of the events including the changes in the odometer.
svc=events/check_updates&params={"lang":<text>,
                 "measure":<uint>,
                 "detalization":<uint>}