A little module for tracking objects(assuming bicycles) and prevent them from been stolen.
-
Arduino data:
-
{ "device": <Device name>, "time": { "year": <Year>, "month": <Month>, "day": <Day>, "hour": <Hour>, "minute": <Minute>, "second": <Second> }, "position": { "longitude": <Longitude>, "latitude": <Latitude>, "moved": <Moved> } }
Moved
: Whether the device is moved. ("1" for true and "0" for false.)
-
-
Phone request:
-
{ "device": <Device name>, "time": { "year": <Year>, "month": <Month>, "day": <Day>, "hour": <Hour>, "minute": <Minute>, "second": <Second> }, "request": <Request type> }
request
: Type of request. (Options are "GET", "START", "STOP")
-
-
Formats:
- time:
year
is 4 digit.hour
is 24-hour clock.
- time:
-
See examples in
common/examples/format
- 緯度是latitude, 經度是longitude