Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Commit c52bee8

Browse files
authored
Update README.md
1 parent e527aa6 commit c52bee8

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ Set the peak / off peak charging schedule.
691691

692692
* `serviceType=CHARGING_CONTROL`
693693
* Additional data needs to be sent as parameter `data` in JSON format. The data itself is the same as returned by [Get Charging Times](#get-charging-times).
694-
* Instead of `weeklyPlanner` `twoTimesTimer` can be used. Format of data currently unknown.
695694
```
696695
# Notes:
697696
# - Linebreaks for "data" have been added for readability only.
@@ -729,6 +728,35 @@ curl -i \
729728
https://b2vapi.bmwgroup.com/webapi/v1/user/vehicles/:VIN/executeService
730729
```
731730

731+
* Instead of `weeklyPlanner` `twoTimesTimer` can be used.
732+
```
733+
# Notes:
734+
# - Linebreaks for "data" have been added for readability only.
735+
curl -i \
736+
-X POST \
737+
-H "Content-Type: application/x-www-form-urlencode" \
738+
--data-urlencode 'serviceType=CHARGING_CONTROL' \
739+
--data-urlencode 'data={
740+
"twoTimesTimer":
741+
{
742+
"climatizationEnabled": true,
743+
"chargingMode": "DELAYED_CHARGING",
744+
"chargingPreferences": "CHARGING_WINDOW",
745+
"timer1":{
746+
"departureTime": "12:30",
747+
"timerEnabled": true,
748+
},
749+
"timer2":{
750+
"departureTime": "13:30",
751+
"timerEnabled": false,
752+
},
753+
"preferredChargingWindow": {
754+
"startTime": "00:00",
755+
"endTime": "00:00"
756+
}}}' \
757+
https://b2vapi.bmwgroup.com/webapi/v1/user/vehicles/:VIN/executeService
758+
```
759+
732760
#### Vehicle Finder
733761
* `serviceType=VEHICLE_FINDER`
734762
* I'm not sure what this does.

0 commit comments

Comments
 (0)