da-sense sachen
This commit is contained in:
parent
cf4922482e
commit
8cb6c356b2
7
ws2012/Hiwi TK/JSON-Format/json_testen.txt
Normal file
7
ws2012/Hiwi TK/JSON-Format/json_testen.txt
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
JSON Format zum ändern der Optionen:
|
||||
|
||||
http://www.da-sense.de/test/api.php?flag=input&source=smartphone&json={\"deviceType\":1, \"deviceID\":123456789, \"deviceManufactor\":\"Scholz\", \"deviceModel\":\"Testdevice\", \"deviceName\":\"ErstesAPITestDevice\", \"sensors\": [ { \"type\":1, \"sensorAttributes\": [ { \"key\":\"testkey1\", \"value\":\"20\" } ] }, {\"type\":2, \"sensorAttributes\": [ { \"key\":\"testkey2\", \"value\":\"30\" } ] } ] }
|
||||
|
||||
|
||||
BIN
ws2012/Hiwi TK/JSON-Format/new json.pdf
Normal file
BIN
ws2012/Hiwi TK/JSON-Format/new json.pdf
Normal file
Binary file not shown.
100
ws2012/Hiwi TK/JSON-Format/new json.txt
Normal file
100
ws2012/Hiwi TK/JSON-Format/new json.txt
Normal file
@ -0,0 +1,100 @@
|
||||
1.) Folgendes wird übermittelt beim Start/Login/Änderungen von Optionen (z.B der Kalibrierung).
|
||||
Dieses Format muss einmalig von jedem Sensor gesendet werden. Ansonsten ist der Sensor nicht in der Datenbank registriert und es werden keine Werte von ihm gespeichert.
|
||||
|
||||
|
||||
HTTP-Post-Parameter:
|
||||
flag=deviceinfo
|
||||
json=JSON-Daten
|
||||
|
||||
Das JSON hat folgendes Format:
|
||||
|
||||
{
|
||||
“deviceType”: INT, //(1: Smartphone | 2: Waspmote)
|
||||
“deviceID”: INT, //(Smartphone: IMEI | Waspmote: MAC-Adresse)
|
||||
“deviceManufactor”: STRING,
|
||||
“deviceModel”: STRING,
|
||||
|
||||
“deviceName”: STRING //(“Benutzerspezifischer Name,
|
||||
//kann selbst vergeben werden, z.B Julien Handy”)
|
||||
|
||||
“sensors”: [
|
||||
“type”: INT, //(1:Audio | 2: CO2 | 3: CO | 4: °C | 5: lx | 6: Humidity)
|
||||
“sensorAttributes”: [ //Sensorattribute als Key-Value-Pair
|
||||
“key”: STRING,
|
||||
“value”: STRING
|
||||
]
|
||||
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2.) Neues JSON-Format für das Senden der Daten.
|
||||
|
||||
HTTP-Post-Parameter (wie gehabt)
|
||||
flag=input
|
||||
source=smartphone bzw. waspmote
|
||||
json=JSON-Daten
|
||||
|
||||
|
||||
{
|
||||
“device”: STRING, //(Smartphone IMEI | Waspmote MAC-Adresse)
|
||||
“measurementType”: INT, //(1:Audio | 2: CO2 | 3: CO | 4: °C | 5: lx | 6: Humidity)
|
||||
// -> waspmotes können den measurementType an dieser Stelle weglassen.
|
||||
“user”: INT, //(dasense User-ID)
|
||||
|
||||
“series”: [
|
||||
“name": STRING,,
|
||||
“visibility”:INT,
|
||||
"timestamp”:LONG,
|
||||
|
||||
|
||||
“values”: [
|
||||
“timestamp”: LONG,
|
||||
“value”: FLOAT,
|
||||
"measurementType": INT //-> nur für Waspmotes interessant. Smartphones lassen den measurementType an dieser Stelle bitte weg
|
||||
// (1:Audio | 2: CO2 | 3: CO | 4: °C | 5: lx | 6: Humidity)
|
||||
“latitude”: FLOAT,
|
||||
“longitude”: FLOAT,
|
||||
“altitude”: FLOAT,
|
||||
“accuracy”: FLOAT,
|
||||
"speed": FLOAT bzw. NULL,
|
||||
“provider”: STRING,
|
||||
|
||||
“tags”: [
|
||||
“key”: STRING,
|
||||
“value”: STRING,
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Bitte folgende Klammerung einhalten:
|
||||
|
||||
zu 2.) ein Beispiel:
|
||||
|
||||
{ "device":"APITEST,
|
||||
"measurementType":1,
|
||||
"user":20,
|
||||
"series": [ { "name":"testseries",
|
||||
"visibility":0,
|
||||
"timestamp":1 ,
|
||||
"values": [ { "timestamp":1,
|
||||
"value":52.25234634,
|
||||
"longitude":0,
|
||||
"latitude":0,
|
||||
"altitude":0,
|
||||
"accuracy":0,
|
||||
"speed":null,
|
||||
"provider":"GPS",
|
||||
"tags": [ { "key": 1,
|
||||
"value":35 } ]
|
||||
} ]
|
||||
} ]
|
||||
}
|
||||
|
||||
|
||||
BIN
ws2012/Hiwi TK/Noisemap 2x API Calls.pdf
Normal file
BIN
ws2012/Hiwi TK/Noisemap 2x API Calls.pdf
Normal file
Binary file not shown.
8
ws2012/Hiwi TK/Notizen Treffen Immanuel/2012_10_01.rtf
Normal file
8
ws2012/Hiwi TK/Notizen Treffen Immanuel/2012_10_01.rtf
Normal file
@ -0,0 +1,8 @@
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
|
||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
|
||||
|
||||
\f0\fs24 \cf0 \
|
||||
}
|
||||
14
ws2012/Hiwi TK/Notizen Treffen Immanuel/2012_10_15.rtf
Normal file
14
ws2012/Hiwi TK/Notizen Treffen Immanuel/2012_10_15.rtf
Normal file
@ -0,0 +1,14 @@
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\paperw11900\paperh16840\margl1440\margr1440\vieww12680\viewh10460\viewkind0
|
||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
|
||||
|
||||
\f0\fs24 \cf0 - API komplett anpassen\
|
||||
- Propel vollst\'e4ndig entfernen\
|
||||
- Preprocessing:\
|
||||
- Sounddaten: Alle Messreihen die deren Geschwindigkeitsmedian \'fcber einer Schranke liegen fallen raus. Somit fliegen Werte, die im Auto oder aufm Red gemessen wurden raus. (-> visibility = 0 stellen)\
|
||||
- "Sensoren anzeigen" ausgrauen wenn sowieso keine Sensoren mehr angezeigt werden.\
|
||||
\
|
||||
\
|
||||
}
|
||||
BIN
ws2012/Hiwi TK/dankeskarteChef1.jpg
Normal file
BIN
ws2012/Hiwi TK/dankeskarteChef1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
BIN
ws2012/Hiwi TK/dankeskarteChef2.jpg
Normal file
BIN
ws2012/Hiwi TK/dankeskarteChef2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1017 KiB |
Loading…
x
Reference in New Issue
Block a user