Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

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

Open
ceefour opened this issue Dec 15, 2016 · 0 comments
Assignees
Milestone

Comments

@ceefour
Copy link
Member

ceefour commented Dec 15, 2016

  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

@ceefour ceefour added this to the Jan 2017 milestone Dec 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants