Lannouncer works in Big Talker but not WebCore


#1

1) Give a description of the problem
WebCore isnt working but Big Talker is. Error with lannouncer set-up

2) What is the expected behavior?
Text commands via Lannouncer.

3) What is happening/not happening?
My piston is not working in Lannouncer via WC.
I do have Lannouncer running.
I have setup the devices
I tested in Big Talker and it works.
It is not working in WebCore with the set-up above.

**4) Post a Green Snapshot of the piston![image|45x37]This is just my test piston

This is the non-working piston


**5) Attach any logs (From [ST IDE](https://graph-na02-

Test
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:50 PM: info ╔ Event processed successfully (198ms)
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:50 PM: error ║ An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:50 PM: error ║ Error executing virtual command [NSTabletLan].setVariable: (1ms) groovy.lang.MissingPropertyException: No such property: result for class: script_app_webCoRE_Pi_f2abbdf1_ba5c_45b2_9542_d52a6c8724d5_ver_6_3
Possible solutions: request
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:49 PM: info ╚ Received event [Virtual Den Netflix].switch = on with a delay of 75ms
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:49 PM: info ╔ Event processed successfully (157ms)
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:52:49 PM: info ╚ Received event [Virtual Den Netflix].switch = off with a delay of 105ms
94ffe3cb-30ff-440f-a678-f4eae471ad17 8:51:42 PM: info ╔ Piston successfully started (1044ms)

Real Piston

4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: info ╔ Event processed successfully (1081ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: info ║ Setting up scheduled job for Sat, Feb 3 2018 @ 9:01:46 PM MST (in 19.969s)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: trace ║╔ Execution stage complete. (909ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: trace ║║ Requesting a wake up for Sat, Feb 3 2018 @ 9:01:46 PM MST (in 20.0s)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: trace ║║ Executed virtual command [NSTabletLan].wait (5ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:26 PM: trace ║║ Executed virtual command [NSTabletLan].executeRoutine (362ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:25 PM: trace ║║ Executed virtual command setVariable (1ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:25 PM: trace ║║ Executed virtual command setVariable (8ms)
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:25 PM: trace ║╚ Execution stage started
4488bd8d-2d3e-47de-bfa6-433b906e9057 9:01:25 PM: trace ║ Runtime (46828 bytes) successfully initialized in 69ms (v0.2.102.20180116) (146ms)


#2

Well, first of all, you don’t have any triggers. You have all conditions. “Is open” should be “Changes to” open. Otherwise what is triggering your piston to happen?

Also, I don’t think the speak text and resume works with Lannouncer. What is Lannouncer going to resume? that only works with Sonos speakers because the same program that is doing the notification is also the one playing the music or whatever you’re doing. Lannouncer isn’t the one playing your game so it can’t “resume” anything.


#3

Wouldnt my condition be when if $device contact is open? line 33 in my larger piston and 23 switch 3s switch is on in my smaller test piston?


#4

Exactly, that’s a condition, not a trigger. A piston has to have a trigger.

See the red lightning bolt in your first example. There is none in your second.

Your statement : “If a variable is false” doesn’t contain a trigger either. Think of it this way…the If statement “If this variable is false” is true until the variable changes, correct? That means the piston would run over and over and over and over and over and over. It has to have some type of even trigger it to occur. That’s just the way it works. On your first piston, your speaker continues to notify you over and over again while the switch is on, almost like it’s stuck in a loop, right?


#5

Ok that does make sense. Let’s stick with my first piston. That still isn’t working (this is a simple Piston). I changed this to when switch physically changes and that got me a different error.

2/3/2018, 10:11:51 PM +523ms
+1ms ╔Received event [Virtual Den Netflix].switch = on with a delay of 74ms
+103ms ║RunTime Analysis CS > 16ms > PS > 70ms > PE > 17ms > CE
+106ms ║Runtime (39260 bytes) successfully initialized in 70ms (v0.2.102.20180116) (103ms)
+107ms ║╔Execution stage started
+116ms ║║Comparison (enum) on changes_to (string) on = true (1ms)
+118ms ║║Cancelling condition #8’s schedules…
+119ms ║║Condition #8 evaluated true (5ms)
+120ms ║║Cancelling condition #7’s schedules…
+120ms ║║Condition group #7 evaluated true (state changed) (8ms)
+123ms ║║Cancelling statement #4’s schedules…
+127ms ║║An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object
+132ms ║╚Execution stage complete. (25ms)
+133ms ╚Event processed successfully (133ms)

I seem to be missing your point i suppose.


#6

Can you get a new snapshot of the piston?


#7

Sure.


#8

You don’t need to have the physically. All mine are set to change by any method.

Also, you set the variable after you speak it. They’re in the wrong order. Plus, you should have your variable set as a time only. Then you won’t have to worry about formating.
You can speak the following expression:
“You’ve fed the dog at " $time”."

Then you can set the variable = to $time and you won’t have to do any formatting. That is of course if you don’t want to track the date too. If you do, just set the variable to $now Make sure you keep the double quotes.


#9

Thanks. I get the variable. Even if I take that to LA isn’t passing to my tablet.

I am still getting the error

|—|---|
|+188ms|║║Error executing virtual command [NSTabletLan].setVariable: (1ms) groovy.lang.MissingPropertyException: No such property: result for class: script_app_webCoRE_Pi_fbc53600_a43a_4a2e_bf93_11a38272a11f_ver_0_9 Possible solutions: request|
|+196ms|║║An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object|
|+200ms|║╚Execution stage complete. (48ms)|

I am going to start from scratch without any extras and add on slowly. Thanks for all your feedback.


#10

Well, what piston are you trying to run now? Did you fix the things I pointed out?


#11

I have a few pistons I am working on.

this is what I have learned.

  1. Lannouncer does not like the speaker devices set in a variable (ex device Speaker = Speaker #1, #2) and called later in the piston - ex. with {Speaker} …
    I was able to have my tablets work when I used the actual devices with Speaker #1, Speaker #Design-help

  2. Lannouncer doesn’t like Speak text and Speak Text and Resume. It works with Speak + the text you want to use.

I was able to get the really simple piston working so I am working on my more complex ones (see below)