<span metal:use-macro="container/Zuite_viewWendelinTestMacroLibrary/macros/init_wendelin_test_environment">Init Wendlin Test Environment</span>

# Agenda

- See Data In Wendelin
- Download Data

This tutorial teaches how to verify data arrival on wendelin and how to download the data.

Before doing this tutorial make sure you read and completed the following tutorials

- HowTo Setup Sensor and IOT Gateway
- SlapOS HowTo Use SlapOS Client
- HowTo Supply Fluentd
- Fluentd Configuration File
- HowTo setup Fluentd on IOT Gateway
- HowTo setup Fluentd on Sensor

# Wendelin Dashboard

Open your Wendelin dashboard.

You see that new Data Stream and Data Ingestion were created.

# Data Stream

From your Wendelin dashboard click on Data Stream.

In Data Stream you can see the Total size (bytes) of the ingested data.

If you reload the page the size will change as new data arrives.

openAndWait | ${base_url}/Zuite_waitForActivities |
assertTextPresent | Done. |
openAndWait | ${base_url}/Zuite_callHandleAnalysisAlarm |
assertTextPresent | Alarm Called. |
openAndWait | ${base_url}/Zuite_waitForActivities |
assertTextPresent | Done. |
pause | 20000 |
openAndWait | ${base_url}/Zuite_waitForActivities |
assertTextPresent | Done. |
openAndWait | ${default_front_url} |
waitForElementPresent | //a[text()='sensor_1-sample-environment-raw-data'] |
verifyElementPresent | //a[text()='sensor_1-sample-environment-raw-data'] |
verifyTextPresent | sensor_1-sample-environment-raw-data |
waitForElementPresent | //a[text()='sensor_1'] |
click | //a[text()='sensor_1-sample-environment-raw-data'] |
waitForTextPresent | Total size (bytes) |
verifyTextPresent | Validated |
verifyTextPresent | 26205759 |

# Download Data

You can see and download data using the curl commad:

`curl -k -u [user]:[password] https://[hostname]/erp5/data_stream_module/[id] -r [start]-[end] --output data.txt`

As data can be very big you can define start and stop bytes to download a slice of data.