lskk / earthquake-detector

Collection of drafts, technical reports, working papers, in emergency & disaster management. Koleksi draft, laporan teknis, catatan & tulisan, di bidang manajemen kedaruratan & kebencanaan.
http://lskk.org/
Creative Commons Attribution 4.0 International
1 stars 1 forks source link

Tambahkan timestamp + time zone + Buffer/batch pengiriman data ke RabbitMQ #5

Open ceefour opened 7 years ago

ceefour commented 7 years ago
  1. pointTime: Timestamp dalam format ISO 8601, dalam timezone UTC, contoh 2016-12-15T10:04:41Z
  2. timeZone: Time zone, contoh Asia/Jakarta
  3. Buffering: Input data 40 sample/detik. Pengiriman data 200 sampel dalam 5 detik, 1 message dalam 5 detik (idealnya configurable, misal per 1 detik, 2 detik, 10 detik, dsb.).

Contoh message:

{
    "pointTime": "2016-12-15T10:04:41Z",
    "timeZone": "Asia/Jakarta",
    "interval": 25,
    "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
    },
    "accelerations": [
        {
            "x": -0.1243,
            "y": 14.6464725,
            "z": -12.5433
        }
    ]
}

UPDATE Spec ada di https://ceefour.gitbooks.io/semut-doc/content/emergency-management---messaging-api.html