All URIs are relative to https://insight.api.wdtinc.com
Method | HTTP request | Description |
---|---|---|
hourlyWindDirectionByAsset | GET /hourly-wind-direction/{asset-uuid} | Hourly Wind Direction by asset |
hourlyWindDirectionByLocation | GET /hourly-wind-direction/{latitude}/{longitude} | Hourly Wind Direction by location |
\Swagger\Client\Model\HourlyWindDirectionByAssetData hourlyWindDirectionByAsset($asset_uuid, $start, $end)
Hourly Wind Direction by asset
Provides an hourly time series for wind direction within a user-defined timespan at the centroid of an asset. Time series values are for the centroid of the asset. The default response contains results for the next 24 hours in degrees clockwise from north.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\HourlyWindDirectionApi();
$asset_uuid = 1.2; // double | Unique asset id.
$start = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Start time. June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ)
$end = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | End time (inclusive). June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ)
try {
$result = $api_instance->hourlyWindDirectionByAsset($asset_uuid, $start, $end);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling HourlyWindDirectionApi->hourlyWindDirectionByAsset: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
asset_uuid | double | Unique asset id. | |
start | \DateTime | Start time. June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ) | [optional] |
end | \DateTime | End time (inclusive). June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ) | [optional] |
\Swagger\Client\Model\HourlyWindDirectionByAssetData
- Content-Type: application/json
- Accept: application/vnd.wdt+json; version=1
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\HourlyProductByLocationData hourlyWindDirectionByLocation($latitude, $longitude, $start, $end)
Hourly Wind Direction by location
Provides an hourly time series of wind direction within a user-defined timespan at a specific location. The location is represented by a latitude/longitude pair. The default response contains results for the next 24 hours in degrees clockwise from north.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\HourlyWindDirectionApi();
$latitude = 1.2; // double |
$longitude = 1.2; // double |
$start = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Start time. June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ)
$end = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | End time (inclusive). June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ)
try {
$result = $api_instance->hourlyWindDirectionByLocation($latitude, $longitude, $start, $end);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling HourlyWindDirectionApi->hourlyWindDirectionByLocation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
latitude | double | ||
longitude | double | ||
start | \DateTime | Start time. June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ) | [optional] |
end | \DateTime | End time (inclusive). June 01, 2016 to 7 days in the future. (YYYY-MM-DDTHH:MM:SSZ) | [optional] |
\Swagger\Client\Model\HourlyProductByLocationData
- Content-Type: application/json
- Accept: application/vnd.wdt+json; version=1
[Back to top] [Back to API list] [Back to Model list] [Back to README]