13. Small start Go big
Google App Engine
Datastore
4
32
= 128
•
• GAE
...
13
14. less than 90% of the upper limit
less than 95% of the upper limit
more than 95% of the upper limit
Offline
HTML5
14
15. REST API
path
method
description
/update
POST
/latest
GET
1
/latest,N
GET
N
/summary.s/YYYYmmDDHHMMSS,N
GET
N
/summary.m/YYYYmmDDHHMM,N
GET
N
/summary.h/YYYYmmDDHH,N
GET
N
/summary.d/YYYYmmDD,N
GET
N
/query.s/LOC/YYYYmmDDHHMMSS,N
GET
LOC N
/query.m/LOC/YYYYmmDDHHMM,N
GET
/unit-config/UNIT_ID
GET
/unit-config/UNIT_ID
PUT
15
16. 20 GAE
xxx.appspot.com/update
GAE
POST JSON
{
"id": ”UNIT_ID"
"time": "1319837460” /* elapsed seconds from the UNIX epoch time */
"power": { /* data for the last 20 seconds per measurement point */
"sensor0.0": [VAL0, VAL1, VAL2, VA3, ..., VAL19],
"sensor0.1": [VAL0, VAL1, VAL2, VA3, ..., VAL19],
"sensor1.0": [VAL0, VAL1, VAL2, VA3, ..., VAL19],
....
}
}
16
17. 1 GAE
xxx.appspot.com/latest,N
GAE
GET JSON
{
"time": “1319837460” /* epoch time */
"timeStr": “201110290631” /* human readable
time in JST */
"power": {
"LOCATION0": [1234]
"LOCATION1": [1234]
"LOCATION2": [1234]
"LOCATION3": [1234]
"LOCATION4": [1234]
...
} Viewer application
}
17