Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 1.35 KB

README.md

File metadata and controls

49 lines (46 loc) · 1.35 KB

BikeTracker

A little module for tracking objects(assuming bicycles) and prevent them from been stolen.

Sending format:

  • 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.
  • See examples in common/examples/format

Notes:

  • 緯度是latitude, 經度是longitude