actually run cron

This commit is contained in:
Maxi Quoß
2023-01-28 13:55:15 +01:00
parent abf8b8114f
commit 81a581ff29

View File

@@ -80,7 +80,7 @@ func RunWakeShutdown() {
wake_cron := device.GetString("wake_cron")
wake_cron_enabled := device.GetBool("wake_cron_enabled")
shutdown_cron := device.GetString("shutdown_cron")
shutdown_cron_enabled := device.GetBool("wake_cron_enabled")
shutdown_cron_enabled := device.GetBool("shutdown_cron_enabled")
if wake_cron_enabled && wake_cron != "" {
CronWakeShutdown.AddFunc(wake_cron, func() {
@@ -98,4 +98,5 @@ func RunWakeShutdown() {
})
}
}
CronWakeShutdown.Run()
}