Created
June 28, 2017 09:58
-
-
Save cdupont/769dcad2d0c22a1d75c6cd8086abf7d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl elasticsearch.waziup.io/mvp-agriculture-weather1-2017.06.23/_search | jq "." | |
{ | |
"took": 3, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 1822, | |
"max_score": 1, | |
"hits": [ | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzShqS70FhqudfIMFUc", | |
"_score": 1, | |
"_source": { | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/UI/WEATHER", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:17:38 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "bf01f7fa-57b1-11e7-a4a0-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.012, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"type": "SensingDevice", | |
"HU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 28 | |
}, | |
"WD": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 90 | |
}, | |
"RA": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0.28 | |
}, | |
"PA": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 101.5899 | |
}, | |
"@timestamp": "2017-06-23T01:17:38.355Z", | |
"TI": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 23.8 | |
}, | |
"@version": "1", | |
"id": "WeatherStationV2", | |
"TO": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 22.3 | |
}, | |
"WS": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0 | |
}, | |
"UT": { | |
"metadata": {}, | |
"type": "DateTime", | |
"value": "2017-04-11T14:51:44.00Z" | |
} | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzShqTO0FhqudfIMFUe", | |
"_score": 1, | |
"_source": { | |
"temperature_value": 45.2, | |
"waterTemperature_value": 28.69, | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/FL", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:17:38 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "bf04acf2-57b1-11e7-ab76-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.012, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"waterTemperature": { | |
"metadata": { | |
"unit": { | |
"type": "Text", | |
"value": "celsius" | |
}, | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"DO": { | |
"metadata": { | |
"unit": { | |
"type": "Text", | |
"value": "mg/l" | |
}, | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"type": "SensingDevice", | |
"PH_value": 5.71, | |
"@timestamp": "2017-06-23T01:17:38.375Z", | |
"Battery": { | |
"metadata": { | |
"unit": { | |
"type": "Text", | |
"value": "voltage" | |
}, | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"Humidity": { | |
"metadata": { | |
"unit": { | |
"type": "Text", | |
"value": "percent" | |
}, | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"PH": { | |
"metadata": { | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"temperature": { | |
"metadata": { | |
"unit": { | |
"type": "Text", | |
"value": "celsius" | |
}, | |
"timestamp": { | |
"type": "DateTime", | |
"value": "2017-04-19T11:34:46.00Z" | |
} | |
}, | |
"type": "Number" | |
}, | |
"@version": "1", | |
"DO_value": 5.7, | |
"location": { | |
"metadata": {}, | |
"type": "geo:json", | |
"value": { | |
"coordinates": [ | |
-1.616793, | |
6.665767 | |
], | |
"type": "Point" | |
} | |
}, | |
"id": "Device_6", | |
"Humidity_value": 52.6, | |
"Battery_value": 4.01 | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzShqHK0FhqudfIMFTS", | |
"_score": 1, | |
"_source": { | |
"@timestamp": "2017-06-23T01:17:37.592Z", | |
"DM_value": 322, | |
"@version": "1", | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/IT21/FIZAR", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:17:37 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "be8d5e7c-57b1-11e7-9eed-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.021, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"DM": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"id": "IT21_Sensor103", | |
"type": "SensingDevice", | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 24 | |
} | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzShqHK0FhqudfIMFTW", | |
"_score": 1, | |
"_source": { | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/IT21/FIZAR", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:17:37 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "be8d5e7c-57b1-11e7-9eed-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.021, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"LU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0.07 | |
}, | |
"DO": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"type": "SensingDevice", | |
"WC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 444 | |
}, | |
"HU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 64 | |
}, | |
"WD": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 113 | |
}, | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 30 | |
}, | |
"RC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 3333.52 | |
}, | |
"@timestamp": "2017-06-23T01:17:37.593Z", | |
"AZO": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 3.29 | |
}, | |
"@version": "1", | |
"DO_value": 0, | |
"id": "IT21_Sensor45" | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzShqJj0FhqudfIMFUB", | |
"_score": 1, | |
"_source": { | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/ISPACE/WEATHER", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:17:37 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "bea64cca-57b1-11e7-aa99-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.012, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"LU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 3.28 | |
}, | |
"DO": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"type": "SensingDevice", | |
"WC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 123.6 | |
}, | |
"HU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 998 | |
}, | |
"WD": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 270 | |
}, | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 998 | |
}, | |
"RC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 35.2 | |
}, | |
"@timestamp": "2017-06-23T01:17:37.755Z", | |
"AZO": { | |
"metadata": {}, | |
"type": "Number", | |
"value": -108328 | |
}, | |
"@version": "1", | |
"DO_value": -999, | |
"location": { | |
"metadata": {}, | |
"type": "geo:json", | |
"value": { | |
"coordinates": [ | |
-0.168994, | |
5.569658 | |
], | |
"type": "Point" | |
} | |
}, | |
"id": "Sensor8" | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzSohr00FhqudfIMFYX", | |
"_score": 1, | |
"_source": { | |
"@timestamp": "2017-06-23T01:47:38.076Z", | |
"DM_value": 322, | |
"@version": "1", | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/IT21/FIZAR", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:47:38 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "efb9178a-57b5-11e7-a58e-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.132, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"DM": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"id": "IT21_Sensor103", | |
"type": "SensingDevice", | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 24 | |
} | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzSohr00FhqudfIMFYe", | |
"_score": 1, | |
"_source": { | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/ISPACE/WEATHER", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:47:38 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "efb9176c-57b5-11e7-ad23-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.058, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"LU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0.12 | |
}, | |
"DO": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"type": "SensingDevice", | |
"WC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 85.2 | |
}, | |
"HU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 57 | |
}, | |
"WD": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 225 | |
}, | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 36 | |
}, | |
"RC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0 | |
}, | |
"@timestamp": "2017-06-23T01:47:38.079Z", | |
"AZO": { | |
"metadata": {}, | |
"type": "Number", | |
"value": -624815 | |
}, | |
"@version": "1", | |
"DO_value": 99834.75, | |
"id": "Sensor88" | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzSohr00FhqudfIMFYk", | |
"_score": 1, | |
"_source": { | |
"@timestamp": "2017-06-23T01:47:38.076Z", | |
"LGT": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 4.378 | |
}, | |
"@version": "1", | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/IT21/FIZAR", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 01:47:38 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "efb9178a-57b5-11e7-a58e-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.132, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"id": "IT21_Sensor30", | |
"type": "SensingDevice", | |
"LAT": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 50.841 | |
} | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzSQfb60FhqudfIMFGj", | |
"_score": 1, | |
"_source": { | |
"@timestamp": "2017-06-23T00:02:37.225Z", | |
"DM_value": 420, | |
"@version": "1", | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/IT21/FIZAR", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 00:02:37 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "441fd3cc-57a7-11e7-a13b-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.27, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"DM": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"id": "IT21_Sensor101", | |
"type": "SensingDevice", | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 26 | |
} | |
} | |
}, | |
{ | |
"_index": "mvp-agriculture-weather1-2017.06.23", | |
"_type": "SensingDevice", | |
"_id": "AVzSQfb60FhqudfIMFGq", | |
"_score": 1, | |
"_source": { | |
"http_poller_metadata": { | |
"request": { | |
"headers": { | |
"Accept": "application/json", | |
"Fiware-ServicePath": "/ISPACE/WEATHER", | |
"Fiware-Service": "waziup" | |
}, | |
"method": "get", | |
"url": "http://broker.waziup.io/v2/entities/" | |
}, | |
"response_headers": { | |
"date": "Fri, 23 Jun 2017 00:02:37 GMT", | |
"server": "nginx/1.11.1", | |
"transfer-encoding": "chunked", | |
"fiware-correlator": "441fd53e-57a7-11e7-bbb6-26180a1df9e5", | |
"content-type": "application/json" | |
}, | |
"code": 200, | |
"response_message": "OK", | |
"times_retried": 0, | |
"runtime_seconds": 0.275, | |
"name": "temperature", | |
"host": "logstash-psiqx" | |
}, | |
"LU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0.16 | |
}, | |
"DO": { | |
"metadata": {}, | |
"type": "Number" | |
}, | |
"type": "SensingDevice", | |
"WC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 79.2 | |
}, | |
"HU": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 52 | |
}, | |
"WD": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 135 | |
}, | |
"TC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 37 | |
}, | |
"RC": { | |
"metadata": {}, | |
"type": "Number", | |
"value": 0 | |
}, | |
"@timestamp": "2017-06-23T00:02:37.229Z", | |
"AZO": { | |
"metadata": {}, | |
"type": "Number", | |
"value": -448523 | |
}, | |
"@version": "1", | |
"DO_value": 99840.25, | |
"id": "Sensor56" | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment