Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for EV charger schedules #2

Open
springfall2008 opened this issue Jul 21, 2024 · 0 comments
Open

Add support for EV charger schedules #2

springfall2008 opened this issue Jul 21, 2024 · 0 comments

Comments

@springfall2008
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant