School Day Notification


#1

1) Give a description of the problem
My school only posts a PDF document of the yearly schedule so I made a piston to determine if its a school day.

2) What is the expected behaviour?
If its a school day the global variable should be set true.

3) What is happening/not happening?
Today being 6/4/2019 is not a school day yet the global variable is true. dynamic@isSchoolDaytrue

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
6/4/2019, 5:59:59 AM +101ms
+1ms ╔Received event [Home].time = 1559653200000 with a delay of -900ms
+184ms ║RunTime Analysis CS > 30ms > PS > 66ms > PE > 88ms > CE
+188ms ║Runtime (45924 bytes) successfully initialized in 66ms (v0.3.10c.20190522) (185ms)
+190ms ║╔Execution stage started
+206ms ║║Comparison (time) 21599302 happens_daily_at (time) 21600000 = true (1ms)
+209ms ║║Time restriction check passed
+212ms ║║Cancelling condition #18’s schedules…
+214ms ║║Condition #18 evaluated true (12ms)
+216ms ║║Cancelling statement #18’s schedules…
+223ms ║║Requesting time schedule wake up at Wed, Jun 5 2019 @ 6:00:00 AM PDT
+245ms ║║Comparison (date) 1559631600000 is_not_between (date) 1558940400000 … (date) 1559071813206 = true (12ms)
+247ms ║║Time restriction check passed
+250ms ║║Condition #4 evaluated true (23ms)
+269ms ║║Comparison (date) 1559631600000 is_not_between (date) 1559329871232 … (date) 1565291471236 = false (12ms)
+272ms ║║Condition #2 evaluated false (19ms)
+274ms ║║Condition group #1 evaluated false (state did not change) (73ms)
+279ms ║╚Execution stage complete. (89ms)
+282ms ║Setting up scheduled job for Wed, Jun 5 2019 @ 6:00:00 AM PDT (in 86400.619s)
+291ms ╚Event processed successfully (290ms)


#2

When and where are you setting your variable back to FALSE???


#3

:man_facepalming: I knew it would be something stupid. For some reason I thought false was implied unless true. Added an else false and ran a test and “dynamic@isSchoolDayfalse” Seems fixed. Will know for sure in a few days.

Thanks

Fixed piston below


#4

Yeah we all do that sometimes:)))))
Fresh pair of eyes allways usefull.

I’m glad it seems like working now.