mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
Scheduler #701
This commit is contained in:
@@ -16,7 +16,9 @@ import {
|
||||
WriteValue,
|
||||
WriteSensor,
|
||||
WriteAnalog,
|
||||
SensorData
|
||||
SensorData,
|
||||
ScheduleItem,
|
||||
Schedule
|
||||
} from './types';
|
||||
|
||||
export function restart(): AxiosPromise<void> {
|
||||
@@ -94,3 +96,11 @@ export function getSettings(): AxiosPromise<void> {
|
||||
export function getCustomizations(): AxiosPromise<void> {
|
||||
return AXIOS.get('/getCustomizations');
|
||||
}
|
||||
|
||||
export function readSchedule(): AxiosPromise<ScheduleItem[]> {
|
||||
return AXIOS.get('/getSchedule');
|
||||
}
|
||||
|
||||
export function writeSchedule(schedule: Schedule): AxiosPromise<void> {
|
||||
return AXIOS.post('/writeSchedule', schedule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user