Last active
April 28, 2023 13:44
-
-
Save tcha-tcho/bf5d5927459b496a3af38176a0711fc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shorten_names = { | |
"deviceId": "did" | |
,"tid": "id" | |
,"in1": "in1" | |
,"in2": "in2" | |
,"in3": "in3" | |
,"out1": "out1" | |
,"blocked": "out1" // realocation | |
,"out2": "out2" | |
,"out3": "out3" | |
,"odometer": "odo" // meters | |
,"power": "pwr" // vols –> use getPower | |
,"sat": "sat" // in use | |
,"distance": "dis" // meters | |
,"totalDistance": "tdis" // meters | |
,"type": "tp" | |
,"versionFw": "vf" | |
,"versionHw": "vh" | |
,"latitude": "lat" | |
,"longitude": "lng" | |
,"protocol": "prot" | |
,"speed": "spd" // -> use getSpeed | |
,"valid": "ok" | |
,"deviceTime": "dtime" | |
,"serverTime": "stime" | |
,"fixTime": "ftime" | |
,"alarm": "alrm" | |
,"alarm": "alrt" | |
,"angle": "ang" | |
,"sequence": "seq" | |
,"outdated": "old" | |
,"altitude": "alt" | |
,"course": "cs" | |
,"address": "adr" | |
,"accuracy": "accu" | |
,"network": "net" | |
,"uniqueId": "uid" | |
,"raw": "raw" | |
,"index": "idx" | |
,"hdop": "hdop" | |
,"vdop": "vdop" | |
,"pdop": "pdop" | |
,"satVisible": "satv" | |
,"rssi": "rssi" | |
,"gps": "gps" | |
,"roaming": "roam" | |
,"event": "evt" | |
,"status": "stat" | |
,"serviceOdometer": "srvodo" // meters | |
,"tripOdometer": "tripodo" // meters | |
,"hours": "hs" | |
,"steps": "steps" | |
,"heartRate": "heart" | |
,"input": "inpt" | |
,"output": "outpt" | |
,"image": "img" | |
,"video": "vid" | |
,"audio": "aud" | |
// The units for the below four KEYs currently vary. | |
// The preferred units of measure are specified in the comment for each. | |
,"battery": "batt" // volts | |
,"batteryLevel": "battlvl" // percentage | |
,"fuel": "fuel" // liters | |
,"fuelUsed": "fuelu" // liters | |
,"fuelConsumption": "fuelc" // liters/hour | |
,"ignition": "ign" | |
,"flags": "flags" | |
,"antenna": "ant" | |
,"charge": "chg" | |
,"ip": "ip" | |
,"archive": "arch" | |
,"rpm": "rpm" | |
,"vin": "vin" | |
,"approximate": "approx" | |
,"throttle": "throttle" | |
,"motion": "mot" | |
,"armed": "armed" | |
,"geofence": "geofc" | |
,"acceleration": "acc" | |
,"deviceTemp": "devtmp" // celsius | |
,"coolantTemp": "cooltmp" // celsius | |
,"engineLoad": "engload" | |
,"operator": "op" | |
,"command": "comm" | |
,"blocked": "blkd" | |
,"door": "door" | |
,"axleWeight": "axlwt" | |
,"gSensor": "gsnsr" | |
,"iccid": "iccid" | |
,"phone": "phone" | |
,"speedLimit": "spdlmt" | |
,"dtcs": "dtcs" | |
,"obdSpeed": "obdspd" // knots | |
,"obdOdometer": "obdodo" // meters | |
,"result": "res" | |
,"driverUniqueId": "drvuid" | |
// Start with 1 not 0 | |
,"temp": "temp" | |
,"adc": "adc" | |
,"io": "io" | |
,"count": "cnt" | |
,"in": "in" | |
,"out": "out" | |
,"general": "gen" | |
,"sos": "sos" | |
,"vibration": "vib" | |
,"movement": "mov" | |
,"lowspeed": "lspd" | |
,"overspeed": "ospd" | |
,"fallDown": "fdwn" | |
,"lowPower": "lpwr" | |
,"lowBattery": "lbatt" | |
,"fault": "flt" | |
,"powerOff": "poff" | |
,"powerOn": "pon" | |
,"lock": "lck" | |
,"unlock": "ulck" | |
,"geofenceEnter": "geoin" | |
,"geofenceExit": "geoout" | |
,"gpsAntennaCut": "antcut" | |
,"accident": "accdnt" | |
,"tow": "tow" | |
,"idle": "idle" | |
,"highRpm": "hrpm" | |
,"hardAcceleration": "hrdacc" | |
,"hardBraking": "hrdbrk" | |
,"hardCornering": "hrdcorn" | |
,"laneChange": "lanec" | |
,"fatigueDriving": "ftgue" | |
,"powerCut": "pcut" | |
,"powerRestored": "pres" | |
,"jamming": "jamm" | |
,"temperature": "temp" | |
,"parking": "park" | |
,"bonnet": "bonn" | |
,"footBrake": "brake" | |
,"fuelLeak": "fleak" | |
,"tampering": "tamp" | |
,"removing": "rem" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment