-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathapi.html
114 lines (97 loc) · 2.52 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MQTTitude: API</title>
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="css/marketing.css">
<link rel="shortcut icon" type="image/x-icon" href="assets/favicon.ico">
</head>
<body>
<div class="content">
<div class="header">
<div class="pure-menu pure-menu-open pure-menu-fixed pure-menu-horizontal">
<a class="pure-menu-heading" href="/">MQTTitude</a>
<ul>
<li class="pure-menu-selected"><a href="/">Home</a></li>
<li><a href="api.html">API</a></li>
<li><a href="http://twitter.com/mqttitude">@mqttitude</a></li>
<li><a href="https://github.com/binarybucks/mqttitude">Github</a></li>
</ul>
</div>
</div>
<div class="splash">
<div class="pure-g-l">
<div class="pure-u-1-1">
<div class="l-box splash-text">
<h1 class="splash-head">
Parlez vs. JSON?
</h1>
<h2 class="splash-subhead">
Your data. With standards.
</h2>
</div>
</div>
</div>
</div>
<div class="content">
<div class="pure-g-r content-ribbon">
<div class="pure-u-2-3">
<div class="l-box">
<h4 class="content-subhead">Location</h4>
<p>
Location updates are transported via MQTT from the
app to your broker.
<pre>
{
"_type": "location",
"lat": "37.522713",
"lon": "-122.355643",
"acc": "5m",
"alt": "0.000000",
"dir": "336.800000",
"tst": "1376975729",
"vac": "-1m",
"vel": "33.460000"
}
</pre>
</p>
<p>
<table class="pure-table pure-table-horizontal">
<thead><tr>
<th>Element</th>
<th>Meaning</th>
<th>Example value</th>
</tr></thead>
<tbody>
<tr class="pure-table-odd">
<td>_type</td>
<td>Type of blob</td>
<td><code>"location"</code></td>
</tr>
<tr>
<td>lat</td>
<td>Latitude</td>
<td><code>"37.522713"</code></td>
</tr>
<tr class="pure-table-odd">
<td>lon</td>
<td>Longitude</td>
<td><code>"-122.355643"</code></td>
</tr>
</tbody>
</table>
</p>
</div>
</div>
</div>
</div>
<div class="l-box ribbon">
</div>
</div>
<div class="footer">
</div>
</div>
</body>
</html>