Battery Level for Queclink

Jose Rodriguez6 years ago

Hi Anton.

Before post this message I was looking by forum but did not find something about the battery level notice for Queclink (GL505 and GL530 devices, I'm using the gl200 protocol (there is no other for this brand in Traccar)) and I only found this https://www.traccar.org/forums/topic/notification-batterylevel/ but when I try to test that caculated attribute I get an error (for Teltonika protocol too):

org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,12]: 'batteryLevel < 20? 'lowBattery' : null;' undefined variable batteryLevel - Variable (... < ComputedAttributesHandler:86 < AttributeResource:51 < ...)

https://ibb.co/myFLdd

I made this for booth protocols I use but get the same error.

For Teltonika I can see the voltage of battery at the state pane of the device. For Queclink I can't see this but I contact to the distributor for Europe ant they told me that the devices is able to send the notice (alarm) by GPRS whe the battery is lower that the porcentages I programmed (30% as much).

Is not possible to kmow the battery level for them (I'm more interested for Quecklink because they only work with batteries).

Thanks a lot.