Page MenuHomeDevCentral

No OneTemporary

diff --git a/Wearg/Time.tcl b/Wearg/Time.tcl
index 8294a3b..d447d73 100644
--- a/Wearg/Time.tcl
+++ b/Wearg/Time.tcl
@@ -1,21 +1,27 @@
+utimer 90 onload
#bind cron - "* * * * *" cron:minute
bind cron - "?2 * * * *" cron:often
bind cron - "?7 * * * *" cron:often
#bind cron - "0 * * * *" cron:hourly
#bind cron - "0 4 * * *" cron:daily
+proc onload {} {
+ ::broker::init
+ ::notifications::init
+}
+
#Every 5 minutes
proc cron:often {minute hour day month weekday} {
#Reconnects to broker
if {[mq connected]} {
mq disconnect
}
}
#Every hour
proc cron:hourly {minute hour day month weekday} {
}
#Every day, at 4am
proc cron:daily {minute hour day month weekday} {
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 03:40 (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259464
Default Alt Text
(693 B)

Event Timeline