Another thing we're gonna use heavily in the upcoming lessons is getting the data from
the dataview we have created. Okay so if you recall we've already created some data views,
so if I'm gonna go to the data view section so that's the main dataview which was created
before the class which is wind turbine data solution and we have other you might you might
see other data views which are created by other students attending this course.
So in our in our case we're just gonna call this one for this test using the API console,
so what we're gonna do remember the dataview is in preview so the version has to include version
1 preview, then again after that we're gonna go to the namespace and this time we're going to go
to data views and it's gonna find all the data views available, so if you've created your own
data view you can select that or you can select the pre-built data view created for this course.
Okay and we also need to pass other parameters over here now to check exactly what we need to
pass you can check the documentation and on the data views preview there's data API and here you
can check preview of how to build that URL so in this case we already got to this place so
we're already here on their data views then we have data view name then we need to pass data.
And then I'm just gonna copy this so we're gonna pass interpolated and then a start index.
So we are basically getting the interpolated data from that data view between a start index and an
end index so in this case the start index is the start time and we're also gonna pass the end index
and we're gonna pass the interval just for this test. So we're gonna pass the start index of,
so the third of, so this is year, month and date so sorry the 24th of March at 8:00 am and then an
end index of the same date at 9:00 a.m. and we are also gonna pass the interval. So the
interval is a time period in this case this is the interpolation period, so we want to get data
for from 8 a.m. till 9 a.m. and this specifies the sampling interval basically so we're gonna choose
just for this example a few minutes. So let's say 10 minutes, 0 hours, 10 minutes and 0 seconds.
Then we're gonna click get. So you can see the data being returned here by the data view;
again this is just the test of how you can call the data view so now you can get the full URL
you can use in your script to call that data view and you can see some sample results over
here again you're gonna see the results every 10 minutes so this is in 8:00 a.m. this is at
8:10 and 8:20 and so on. So it already returned interpolated data. So again this API console
you don't use it to build scripts you just use it to help you figure out which URLs and which
queries you need to how to build them and how do you build that URL which you'll use later on in
your script. So make sure you use that to test the results, to test your URLs and make sure use the
API documentation as well, because this helps out a lot and reduces the time to build your scripts.
So this is it for this lesson, in the next lessons we're gonna check how we can start
building a script using Jupyter notebook to get the data, get the wind turbine
data from the data views and start doing some data science analysis on that data.