I try to creating recurring scheduling event for specific time with Sixfab API, and I would like the system to start every day at 6.30 a.m.
My code is :
from power_api import SixfabPower, Definition, Event import time pms = SixfabPower() epoch = time.time() # Remove all events print("Result removing all Scheduled Event: " + str(pms.remove_all_scheduled_events(200))) # Start 6:30AM print("Result creating Scheduled Event: " + str(pms.create_scheduled_event(1,1,2,1593239400,1,Definition.EVERYDAY,1,200)))
param 1, eventID = 1
param 2, scheduleType = 1 -> time
param 3, repeat = 2 -> repeated
param 4, timeOrInterval = 1593239400 -> exact time[epoch] ( Saturday, 27 June 2020 06:30:00 GMT)
param 5, interval_type = 1 -> second
param 6, repeatPeriod = Definition.EVERYDAY
param 7, action = 1 -> start
And yesterday (Saturday, 27 June) my system started well at 6:30 am.
But today (Sunday, 28 June) my system did not start at 6:30 am.
I think the correction is to be do with the parameter number4 of the call to the function
create_scheduled_event, but I do not know how to correct this.