-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Example schedule data:
{'schedules': [{'id': 4480, 'name': 'every day', 'is_active': False, 'periods': [{'start_time': '08:26', 'end_time': '09:26', 'limit': 32, 'duration': '01h 00m', 'days': [0, 1, 2, 3, 4, 5, 6]}]}, {'id': 4481, 'name': 'every monday', 'is_active': False, 'periods': [{'start_time': '14:27', 'end_time': '17:42', 'limit': 32, 'duration': '03h 15m', 'days': [0, 1, 2, 3, 4, 5, 6]}]}, {'id': 4482, 'name': 'Tuesday', 'is_active': False, 'periods': [{'start_time': '17:30', 'end_time': '18:00', 'limit': 32, 'duration': '00h 30m', 'days': [1]}]}, {'id': 4483, 'name': 'wed &thurs', 'is_active': True, 'periods': [{'start_time': '00:30', 'end_time': '05:30', 'limit': 32, 'duration': '05h 00m', 'days': [2, 3]}]}]}
set-schedule
Create a new schedule. The newly created schedule is not yet active on the charger
Request Data
schedule_id string optional
name string
Must not be greater than 30 characters.
periods string[]
periods[].start_time string
Must be a valid date in the format H:i.
periods[].end_time string
Must be a valid date in the format H:i.
periods[].limit number
Must be between 6 and 32.
periods[].days integer[]
Must be at least 0. Must not be greater than 6.