Gcal Search device error setting variable from device attribute

variables

#1

1) Give a description of the problem
when trying to pull information from the device for open time, close time, open message time and close message time i am getting an error in webcore. it really doesn’t make sense to me. the information is there in the device via the IDE. but when webcore tries to gather it and set it to a variable it errors out. all others seem to be fine. i am using the device as a contact.

2) What is the expected behavior?
populate the variable with set variable command

3) What is happening/not happening?
getting error reading attributes

4) Post a Green Snapshot of the pistonimage


5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

device attributes in IDE:

logs from piston:
errors

logs from IDE:


#2

Try defining those variables as datetime instead of dynamic.


#3

Tried that. Still same error. Tried again, if you set to time only or date time it won’t let you set the variable using a physical device. It only gives options as preset, value, expression, and argument


#4

Try it in the format : openTime = datetime([deviceName:openTime])


#5

Nope, that gets same exception error I know this one has me confused, since you can clearly see it’s in the device attributes, but for whatever reason webcore is having issues getting it. Like I said all other attributes work except the 4vi listed.


#6

What do you get when you pull it from the console?


#7

Console? Evaluation console?

(expression) [Badgers Game Events: openTime] »»» (string)


#8

I have my variable defined as datetime. Then, I set that variable with the expression

{[deviceName: openTime]}


#9

I don’t know what I just changed but that works. Hiwever why does it have to be expression? Webcore won’t let me pick a physical device and attribute from point and click? Don’t get me wrong I’m t]just happy it works without having to parse through it to get the date time from event summary. Thank you


#10

I don’t know if I have a corrupt version of webcore or what. It will work one time, try again and I get the error again…smh


#11

Don’t know if it HAS to be an expression - I’m just recommending what I know works for me.


#12

It is still not right. I can get it to fill in the variable, but it is pulling the date for now (when I run the piston), and gives me that error again. Grrrr. I wonder if those attributes are being used by webcore somewhere?


#13

Post snapshot of entire piston.


#14


#15

Ok. Try using the eventTime attribute instead of using the openTime (or closeTime) attribute.


#16

OpenTime, closeTime, openMsgTime, and closeMsgTime. All have the same results. There is no eventTime option does not exist. Getting “ Error executing virtual command [].setVariable: (10ms) groovy.lang.MissingPropertyException: No such property: result for class: script_app_webCoRE_Pi_4e6e4c3b_77c4_41dc_95f3_8d73865f4ab3_ver_0_5 Possible solutions: request“

On your end when testing are you using latest webcore version?


#17

Ah. Update gCal event sensor DTH to version 20180312.1 - I updated it to contain new eventTime and location attributes (for use with webCoRE).


#18

I’m guessing that the openTime and closeTime attributes don’t work because they are in diff format.


#19

Hmmm I have that one installed.


#20

I’ll have to look at this later. I have to get off to work