Set global var with expression: Evaluation in edit mode different than global var reporting


#1

First-time poster, huge fan of the platform.

Can anyone enlighten me as to why my calculation, when evaluated in the Edit window, gives a different value than when the piston runs?

Here is the code and the evaluated value:


As you can see, it evaluates to 19.36…

But when looking at the global variable that gets set with this method, it’s way off:
32 AM

Is it something I’m doing with the calculation, or is this a bug? Thank you in advance for your help. Much appreciated.

Full log for one test run:
11/28/2017, 11:42:46 AM +971ms +5ms ╔Received event [Home].test = 1511887366965 with a delay of 6ms +159ms ║RunTime Analysis CS > 23ms > PS > 110ms > PE > 22ms > CE +173ms ║Runtime (39727 bytes) successfully initialized in 110ms (v0.2.0fe.20171109) (167ms) +177ms ║╔Execution stage started +195ms ║╚Execution stage complete. (21ms) +203ms ║Setting up scheduled job for Tue, Nov 28 2017 @ 11:47:53 AM EST (in 306.711s) +288ms ╚Event processed successfully (287ms)


#2

Oh man, dewPoint() is actually a function in WebCore!!!
This seems to work better: