You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
4.5 KiB
161 lines
4.5 KiB
{ |
|
server: { |
|
id: ruptela |
|
listenAddr: ":4000" |
|
acceptTimeout: 10 # timeout (dalam detik) |
|
writeTimeout: 10 # timeout (dalam detik) |
|
maxReceive: 50 |
|
maxSend: 50 |
|
device: RUPTELA |
|
} |
|
|
|
commToDevice: { |
|
message: "http://202.47.70.196/oslog/api/BroadcastPrivate/getbroadcastmessage/" |
|
report: "http://202.47.70.196/oslog/api/BroadcastPrivate/putbroadcastmessage" |
|
appendIMEI: false |
|
serviceTimeout: 10 # REST Service timeout (dalam detik) |
|
setActive: true |
|
} |
|
|
|
gpsdata: { |
|
storage: sql |
|
sql: { |
|
driver: postgres |
|
connection: "user=postgres password=s3mb1l4n dbname=OSLOGREC host=127.0.0.1 port=5432 connect_timeout=30 sslmode=disable" |
|
maxIdle: 10 #Max jumlah koneksi idle |
|
maxOpen: 10 #Max jumlah koneksi open |
|
maxLifetime: 60 #Maximum lifetime (dalam detik) |
|
insertQuery: INSERT INTO "GPS_DATA"("IMEI", "DATA_LOG", "FLAG", "DATE_INS", "DESC", "GPS_CODE", "DATA_LEN") VALUES($1, $2, $3, $4, $5, $6, $7) |
|
} |
|
} |
|
|
|
log: { |
|
#Known types: console, file, sql |
|
type: console, file |
|
console: { |
|
# use default options |
|
} |
|
|
|
|
|
#for file (uncomment type) |
|
# type: file |
|
file: { |
|
name: /Users/baymac/Documents/work/IU/oslog/sourcecode/oslog.id/putu/jyoti_teltonika/server/exe/applog.log |
|
append: true |
|
} |
|
|
|
#for sql (uncomment type) |
|
# SQLite -> driver: sqlite3 |
|
# PostgreSQL -> driver: postgres |
|
# type: sql |
|
sql: { |
|
driver: sqlite3 |
|
connection: ./applog.sqlite |
|
maxIdle: 10 #Max jumlah koneksi idle |
|
maxOpen: 10 #Max jumlah koneksi open |
|
maxLifetime: 60 #Maximum lifetime (dalam detik) |
|
createQuery: CREATE TABLE applog(id INTEGER PRIMARY KEY AUTOINCREMENT, ts DATETIME, app VARCHAR(100), content TEXT) |
|
insertQuery: INSERT INTO applog(ts, app, content) VALUES(?, ?, ?) |
|
} |
|
} |
|
|
|
messagebroker: { |
|
brokerServer: localhost:9092 |
|
brokerTopic: ruptela4000 |
|
} |
|
|
|
iotag: { |
|
tags: [ |
|
{ |
|
tagName: Din1 |
|
tagId: 2 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Din2 |
|
tagId: 3 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Din3 |
|
tagId: 4 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Din4 |
|
tagId: 5 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Ain1 |
|
tagId: 22 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Ain2 |
|
tagId: 23 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Dist |
|
tagId: 77 |
|
tagDataType: float32 |
|
}, |
|
{ |
|
tagName: DistTotal |
|
tagId: 65 |
|
tagDataType: float64 |
|
}, |
|
{ |
|
tagName: GsmSignalSensor |
|
tagId: 27 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: DeepSleepSensor |
|
tagId: 200 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: HarshBreaking |
|
tagId: 135 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: HarshAcceleration |
|
tagId: 136 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: BatteryVolt |
|
tagId: 30 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: PowerVolt |
|
tagId: 29 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Temp |
|
tagId: 78 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Temp1 |
|
tagId: 79 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Temp2 |
|
tagId: 80 |
|
tagDataType: int |
|
}, |
|
{ |
|
tagName: Rfid |
|
tagId: 171 |
|
tagDataType: string |
|
} |
|
] |
|
} |
|
}
|
|
|