Carbon Intensity (Independent Publisher) (Student) (#1173)

* Updates for LMS365 connector (#851)

* add empty schema definition for responses which may contain some data

* Add Admins field to Course details

* Remove ContentType property as it's not needed anymore

* Add Asite (US Gov.) connector  (#1048)

* Add new Asite connector

* Change connector files according to suggession by Microsoft team

* Update indentation as suggested

* Update indentation and remove redirectUrl

Set redirectMode as a global so for that as Micfosoft team suggested to remove redirectUrl property.

* Remove unicode character in readMe file

* fix indentation

* remove x-ms-api-annotation as suggested by Microsoft Team

* update host URL ,OAuth URL and indentation for both swagger files

* change background color as suggested

* edit action's name and description

* rollback icon background change

* rollback changes

* rollback the background color

* Update apiProperties.json

rollback bg color

* Update apiProperties.json

Change bg color

* Changed brand background colour

* Adding sub-folder API

* Change readme file

* add media property

* [ADD] Add new connector for Asite (US Gov.)

* [MOD] modify asite connector name

Co-authored-by: deven_bhatt <dbhatt@asite.com>
Co-authored-by: rachir <rbulsara@asite.com>
Co-authored-by: ShubhamPanchal <shubhampanchal@asite.com>

* Enable certification validation for independent publisher connector (#1169)

* Add Carbon Intensity

* Changed connector folder

* Updated readme.md formatting

* Updated apıProperties.json

* Updated apiDefinition.swagger.json

* Removed other connector files

* Updated swagger_validation.yml

* Removed extra space from swagger_validation.yml

Co-authored-by: Alexei Gus <32488384+elearningforce-ag@users.noreply.github.com>
Co-authored-by: Mahbub Murshed <mamurshe@microsoft.com>
Co-authored-by: asitedeveloper <77782776+asitedeveloper@users.noreply.github.com>
Co-authored-by: deven_bhatt <dbhatt@asite.com>
Co-authored-by: rachir <rbulsara@asite.com>
Co-authored-by: ShubhamPanchal <shubhampanchal@asite.com>
Co-authored-by: Mahbub Murshed <48570820+mamurshe@users.noreply.github.com>
This commit is contained in:
Hasan Ünlü 2021-11-02 04:35:23 +03:00 коммит произвёл GitHub
Родитель 6d1e7af74d
Коммит cad4f623be
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 569 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,513 @@
{
"swagger": "2.0",
"info": {
"title": "Carbon Intensity",
"description": "Uses Carbon Intensity API to provide an indicative trend of the regional carbon intensity of the electricity system in Great Britain",
"version": "1.0",
"contact": {
"name": "Hasan Unlu",
"email": "hu1997tr@gmail.com"
}
},
"host": "api.carbonintensity.org.uk",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/intensity": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "from"
},
"to": {
"type": "string",
"description": "to"
},
"intensity": {
"type": "object",
"properties": {
"forecast": {
"type": "integer",
"format": "int32",
"description": "forecast"
},
"actual": {
"type": "integer",
"format": "int32",
"description": "actual"
},
"index": {
"type": "string",
"description": "index"
}
},
"description": "intensity"
}
}
},
"description": "data"
}
}
}
}
},
"summary": "Get National Carbon Intensity",
"description": "The API returns national carbon intensity data for current half hour. All times provided in UTC (+00:00)",
"operationId": "GetIntensity",
"parameters": []
}
},
"/intensity/factors": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Biomass": {
"type": "integer",
"format": "int32",
"description": "Biomass"
},
"Coal": {
"type": "integer",
"format": "int32",
"description": "Coal"
},
"Dutch Imports": {
"type": "integer",
"format": "int32",
"description": "Dutch Imports"
},
"French Imports": {
"type": "integer",
"format": "int32",
"description": "French Imports"
},
"Gas (Combined Cycle)": {
"type": "integer",
"format": "int32",
"description": "Gas (Combined Cycle)"
},
"Gas (Open Cycle)": {
"type": "integer",
"format": "int32",
"description": "Gas (Open Cycle)"
},
"Hydro": {
"type": "integer",
"format": "int32",
"description": "Hydro"
},
"Irish Imports": {
"type": "integer",
"format": "int32",
"description": "Irish Imports"
},
"Nuclear": {
"type": "integer",
"format": "int32",
"description": "Nuclear"
},
"Oil": {
"type": "integer",
"format": "int32",
"description": "Oil"
},
"Other": {
"type": "integer",
"format": "int32",
"description": "Other"
},
"Pumped Storage": {
"type": "integer",
"format": "int32",
"description": "Pumped Storage"
},
"Solar": {
"type": "integer",
"format": "int32",
"description": "Solar"
},
"Wind": {
"type": "integer",
"format": "int32",
"description": "Wind"
}
}
},
"description": "data"
}
}
}
}
},
"description": "Get National Carbon Intensity factors for each fuel type",
"summary": "Get National Carbon Intensity Factors",
"operationId": "GetIntensityFactors",
"parameters": []
}
},
"/generation": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "from"
},
"to": {
"type": "string",
"description": "to"
},
"generationmix": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fuel": {
"type": "string",
"description": "fuel"
},
"perc": {
"type": "number",
"format": "float",
"description": "perc"
}
}
},
"description": "generationmix"
}
},
"description": "data"
}
}
}
}
},
"operationId": "GetGeneration",
"summary": "Get National Generation Mix",
"description": "Generation Mix for the GB power system. Contains the following fuel types: gas, coal, nuclear, biomass, hydro, imports, solar, wind, other.",
"parameters": []
}
},
"/regional/england": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"regionid": {
"type": "integer",
"format": "int32",
"description": "regionid"
},
"dnoregion": {
"type": "string",
"description": "dnoregion"
},
"shortname": {
"type": "string",
"description": "shortname"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "from"
},
"to": {
"type": "string",
"description": "to"
},
"intensity": {
"type": "object",
"properties": {
"forecast": {
"type": "integer",
"format": "int32",
"description": "forecast"
},
"index": {
"type": "string",
"description": "index"
}
},
"description": "intensity"
},
"generationmix": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fuel": {
"type": "string",
"description": "fuel"
},
"perc": {
"type": "number",
"format": "float",
"description": "perc"
}
}
},
"description": "generationmix"
}
}
},
"description": "data"
}
}
},
"description": "data"
}
}
}
}
},
"summary": "Get Carbon Intensity for England",
"description": "Get Carbon Intensity data for current half hour for England. All times provided in UTC (+00:00).",
"operationId": "GetIntensityEngland",
"parameters": []
}
},
"/regional/scotland": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"regionid": {
"type": "integer",
"format": "int32",
"description": "regionid"
},
"dnoregion": {
"type": "string",
"description": "dnoregion"
},
"shortname": {
"type": "string",
"description": "shortname"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "from"
},
"to": {
"type": "string",
"description": "to"
},
"intensity": {
"type": "object",
"properties": {
"forecast": {
"type": "integer",
"format": "int32",
"description": "forecast"
},
"index": {
"type": "string",
"description": "index"
}
},
"description": "intensity"
},
"generationmix": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fuel": {
"type": "string",
"description": "fuel"
},
"perc": {
"type": "number",
"format": "float",
"description": "perc"
}
}
},
"description": "generationmix"
}
}
},
"description": "data"
}
}
},
"description": "data"
}
}
}
}
},
"summary": "Get Carbon Intensity for Scotland",
"description": "Get Carbon Intensity data for current half hour for Scotland. All times provided in UTC (+00:00).",
"operationId": "GetIntensityScotland",
"parameters": []
}
},
"/regional/wales": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"regionid": {
"type": "integer",
"format": "int32",
"description": "regionid"
},
"dnoregion": {
"type": "string",
"description": "dnoregion"
},
"shortname": {
"type": "string",
"description": "shortname"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "from"
},
"to": {
"type": "string",
"description": "to"
},
"intensity": {
"type": "object",
"properties": {
"forecast": {
"type": "integer",
"format": "int32",
"description": "forecast"
},
"index": {
"type": "string",
"description": "index"
}
},
"description": "intensity"
},
"generationmix": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fuel": {
"type": "string",
"description": "fuel"
},
"perc": {
"type": "number",
"format": "float",
"description": "perc"
}
}
},
"description": "generationmix"
}
}
},
"description": "data"
}
}
},
"description": "data"
}
}
}
}
},
"summary": "Get Carbon Intensity for Wales",
"description": "Get Carbon Intensity data for current half hour for Wales. All times provided in UTC (+00:00).",
"operationId": "GetIntensityWales",
"parameters": []
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://carbonintensity.org.uk/"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://github.com/carbon-intensity/terms/"
},
{
"propertyName": "Categories",
"propertyValue": "Data"
}
]
}

Просмотреть файл

@ -0,0 +1,9 @@
{
"properties": {
"connectionParameters": {},
"iconBrandColor": "#da3b01",
"capabilities": [],
"publisher": "Hasan Unlu",
"stackOwner": "National Grid"
}
}

Просмотреть файл

@ -0,0 +1,47 @@
# Carbon Intensity
This connector uses National Grids Carbon Intensity API to provide an indicative trend of regional carbon intensity of the electricity system in Great Britain (GB).
## Publisher: Hasan Unlu
## Prerequisites
There are no prerequisites to use this connector.
## Supported Operations
### Intensity
Gets Carbon Intensity data for current half hour. All times provided in UTC (+00:00).
### Intensity Factors
Gets Carbon Intensity factors for each fuel type.
### Generation
Gets generation mix for current half hour. All times provided in UTC (+00:00).
### Regional England
Gets Carbon Intensity data for current half hour for England. All times provided in UTC (+00:00).
### Regional Scotland
Gets Carbon Intensity data for current half hour for Scotland. All times provided in UTC (+00:00).
### Regional Wales
Gets Carbon Intensity data for current half hour for Wales. All times provided in UTC (+00:00).
## Obtaining Credentials
No credentials are required.
## Known Issues and Limitations
Not all operations provided by Carbon Intensity API are part of the current connector submission.
## API Documentation
Visit [Carbon Intensity APIs reference](https://api.carbonintensity.org.uk/) page for further details.