-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/OpenEVSE/ESP32_WiFi_V4.x
- Loading branch information
Showing
9 changed files
with
192 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ info: | |
contact: | ||
email: [email protected] | ||
name: Jeremy Poulter | ||
url: https://github.com/jeremypoulter/ | ||
url: 'https://github.com/jeremypoulter/' | ||
license: | ||
name: Apache 2.0 | ||
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' | ||
|
@@ -531,7 +531,7 @@ paths: | |
/limit: | ||
get: | ||
summary: Get charge limit | ||
description: This will return the limit type, value and auto_release (true|false) defined if there's one | ||
description: 'This will return the limit type, value and auto_release (true|false) defined if there''s one' | ||
responses: | ||
'200': | ||
description: Limit properties | ||
|
@@ -554,7 +554,7 @@ paths: | |
- Limit | ||
post: | ||
summary: Set charge limit | ||
description: This will set the limit type, value and auto_release (true|false) | ||
description: 'This will set the limit type, value and auto_release (true|false)' | ||
responses: | ||
'200': | ||
description: Limit set | ||
|
@@ -567,15 +567,15 @@ paths: | |
type: string | ||
description: created | ||
'500': | ||
description: Failed to parse data | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Failed to parse JSON | ||
description: Failed to parse data | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Failed to parse JSON | ||
requestBody: | ||
content: | ||
application/json: | ||
|
@@ -585,42 +585,42 @@ paths: | |
tags: | ||
- Limit | ||
delete: | ||
summary: Get charge limit | ||
description: This will clear current limit | ||
responses: | ||
'200': | ||
description: Clear Limit ok | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Deleted | ||
'404': | ||
description: No limit | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: No limit to clear | ||
'500': | ||
description: Failed to clear limit | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Failed to clear limit | ||
operationId: limit_clear | ||
tags: | ||
- Limit | ||
summary: Get charge limit | ||
description: This will clear current limit | ||
responses: | ||
'200': | ||
description: Clear Limit ok | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Deleted | ||
'404': | ||
description: No limit | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: No limit to clear | ||
'500': | ||
description: Failed to clear limit | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Failed to clear limit | ||
operationId: limit_clear | ||
tags: | ||
- Limit | ||
/emeter: | ||
delete: | ||
summary: Reset Energy Meter | ||
|
@@ -641,13 +641,13 @@ paths: | |
'200': | ||
description: Reset counter ok | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Reset done | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
msg: | ||
type: string | ||
description: Reset done | ||
'500': | ||
description: Failed to reset counter | ||
content: | ||
|
@@ -661,7 +661,6 @@ paths: | |
operationId: energymeter-reset | ||
tags: | ||
- Energy Meter | ||
|
||
/tesla/vehicles: | ||
get: | ||
summary: Get Tesla vehicle list | ||
|
@@ -716,6 +715,75 @@ paths: | |
name: My Tesla | ||
operationId: get-tesla-vehicles | ||
description: Once the Tesla account credentials have been configured via the `/config` API this endpoint will return a list of vehicles associated with the account. The ID of the vehicle to use for SoC/Range can then be set using `tesla_vehicle_id` on the `/config` endpoint. | ||
/time: | ||
get: | ||
summary: Get the time | ||
tags: | ||
- Time | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
time: | ||
type: string | ||
x-stoplight: | ||
id: 6q0laeyxt5u85 | ||
description: The time in UTC according to the OpenEVSE. | ||
format: date-time | ||
offset: | ||
type: string | ||
x-stoplight: | ||
id: u5zngl88caktf | ||
pattern: '^[+-][0-9]{4}$' | ||
local_time: | ||
type: string | ||
x-stoplight: | ||
id: 7h1cpgfjj5j9j | ||
format: date-time | ||
required: | ||
- time | ||
- offset | ||
- local_time | ||
operationId: get-time | ||
description: Gets the time set on the OpenEVSE | ||
post: | ||
summary: Set the time | ||
tags: | ||
- Time | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
x-examples: | ||
Example 1: | ||
sntp_enabled: false | ||
time_zone: 'GMT0BST,M3.5.0/1,M10.5.0' | ||
time: '2018-08-10T14:30:00Z' | ||
properties: | ||
sntp_enabled: | ||
type: boolean | ||
description: | | ||
Set to `true` to enable receiving time updates via NTP, `false` will disable NTP updates. | ||
default: false | ||
time_zone: | ||
type: string | ||
description: The time zone to use on the OpenEVSE. This has the format `<location name>|<POSIX timezone>`. The `location name` is not used by the EVSE and is largely to for the UI to provide a human readable version of the timezone and differentiate between locations that use the same time zone. | ||
default: UTC0 | ||
time: | ||
type: string | ||
description: If `sntp_enabled` is false this is the time to set. Must be in UTC. | ||
format: date-time | ||
'400': | ||
$ref: '#/components/responses/BadRequest' | ||
operationId: post-time | ||
description: Set the time and associated config options. If not setting the time the `/config` endpoint can be used. | ||
components: | ||
schemas: | ||
Message: | ||
|
@@ -860,3 +928,4 @@ tags: | |
- name: Tesla | ||
- name: Limit | ||
- name: Energy Meter | ||
- name: Time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.