SAIL Platform
Structural Asset Integrity & Lifetime platform.
Structural Asset Integrity & Lifetime platform.
Query time series and metadata, and run AI inference.
WFA02 · 1 May 2020 · First six readings.
| Time (UTC) | DEM5 Mtl (Nm) | Wall temperature (°C) |
|---|---|---|
| 16:00 | 1,382,483.253165 | 14.125235 |
| 16:10 | 1,642,016.022893 | 14.141142 |
| 16:20 | 1,423,836.508276 | 14.141142 |
| 16:30 | 1,649,434.751265 | 14.149095 |
| 16:40 | 1,488,804.280118 | 14.157048 |
| 16:50 | 1,664,278.718665 | 14.165002 |
Connect scripts using your 24SEA account. Basic and JWT authentication use your existing project permissions.
Send your username and password over HTTPS to check the datasignals available to your account.
curl --user 'USERNAME:PASSWORD' \
--header 'Accept: application/json' \
'https://api.24sea.dev/routes/v1/datasignals/profile/'
Request an access token and refresh token with your 24SEA credentials.
curl --request POST \
--header 'Content-Type: application/json' \
--data '{"username":"USERNAME","password":"PASSWORD"}' \
'https://api.24sea.dev/routes/v1/auth/token/'
Send the access token with requests.
curl --header 'Authorization: Bearer ACCESS_TOKEN' \
--header 'Accept: application/json' \
'https://api.24sea.dev/routes/v1/datasignals/profile/'
Refresh an expired access token. If the refresh token has expired, request a new pair.
curl --request POST \
--header 'Content-Type: application/json' \
--data '{"refresh":"REFRESH_TOKEN"}' \
'https://api.24sea.dev/routes/v1/auth/token/refresh/'
Keep tokens out of URLs and logs. Store refresh tokens as credentials.
Use the demo account to try the available data. For project access, contact your 24SEA administrator.
Sample.UserCheckOutSomeData!Fetch wind speed for one turbine as a pandas DataFrame. The SDK indexes readings by timestamp so you can plot or resample them in your notebook.
Run pip install api_24sea, then set API_24SEA_USERNAME and API_24SEA_PASSWORD to use your account’s project permissions.
from api_24sea.datasignals.core import API
readings = API().get_data(
sites="wf", locations="a02",
metrics="mean windspeed",
start_timestamp="2020-05-01T16:00:00Z",
end_timestamp="2020-05-01T17:00:00Z",
)
print(readings.head())