[DEPRECATED THREAD] webCoRE Beta Milestone 1

With last night’s upgrade and re-do, a simple piston that gets a couple of temperatures and reports them is going crazy. The temps are coming back in the billions (Central Florida is hot, but not quite there yet).

5/10/2017, 8:28:42 AM +278ms +0ms ╔Received event [Home].time = 1494419321580 with a delay of 697ms +103ms ║RunTime Analysis CS > 14ms > PS > 62ms > PE > 26ms > CE +116ms ║Runtime (30053 bytes) successfully initialized in 62ms (v0.1.0a4.20170509) (115ms) +119ms ║╔Execution stage started +204ms ║║Calculating (string) 8:28 + (string) It's >> (string) 8:28 It's +213ms ║║Calculating (string) 8:28 It's + (string) 2147483647 >> (string) 8:28 It's 2147483647 +221ms ║║Calculating (string) 8:28 It's 2147483647 + (string) outside. The pool is >> (string) 8:28 It's 2147483647 outside. The pool is +229ms ║║Calculating (string) 8:28 It's 2147483647 outside. The pool is + (string) 2147483647 >> (string) 8:28 It's 2147483647 outside. The pool is 2147483647 +257ms ║║8:28 It's 2147483647 outside. The pool is 2147483647 +258ms ║║Executed virtual command log (15ms) +267ms ║║Executed virtual command setVariable (2ms) +282ms ║║Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found +283ms ║║Executed virtual command log (2ms) +333ms ║╚Execution stage complete. (215ms) +348ms ║Setting up scheduled job for Wed, May 10 2017 @ 8:29:41 AM EDT (in 58.955s) +375ms ╚Event processed successfully (375ms)

1 Like

Would you mind putting up the actual pistons for some of these so i can see how you’ve populated the dashboard with that data, looks really useful, but need a bit of a guiding hand!

1 Like

I can’t get the dashboard to come up on Windows 10 Chrome. Edge works, also Chromebook works. Getting a blank gray screen.

1 Like

Did you pause/resume? Is it subscribing to all devices used in the piston? i.e. the Iris, the PE653, and the motion sensor?

1 Like

What happens if one didn’t? Do you need a case? I can check my pistons, but I put batteries in my hub… :smile:

1 Like

I posted some of them over in the example piston thread:

Unfortunately the screen shot doesn’t work for me (at least not for those pistons) so you don’t get a code preview unless you import :cry:

1 Like

What would be a reason that a trace option would not show up

1 Like

Only reason I know is if the piston hasn’t fired.

1 Like

When you configure a new piston or amend one, when it is saved, you do not see the trace option.
When somethong happens to any of the subscribing devices etc. then the trace option will appear.

2 Likes

I think this is a bug in the time window. It should happen between 30 minutes past sunset and 10 pm but it’s happening 30 mins past sunset and 30 mins past 10 pm

1 Like

Then why is the end one happening at 10:30 pm instead of 10:00 pm. Shouldn’t the offset just apply to the sunset.

1 Like

Congrats on all the great progress with WebCore! In what ways is this different and better than the original CoRE? It sounds like it has more functionality and or the ability to do more with less, but am wondering what specifically.

Also I am having an issue with an existing original CoRE piston and wondering if there is a better way to handle this in WebCore… I have 3 motion sensors along a long hallway. I have a rule that says if any of the 3 sensors see motion then turn the lights on. That works just fine.

The issue is with another piston that says “if Any of the motion sensors stay inactive for 5 minutes” then turn off the hall lights. The issue is that if you are at one end of the hall and moving around the lights will still turn off on you, since the other motions have not see movement even tho the one motion sensor does see movement within past 5 minutes.

This creates an issue fairly often, where someone is in the hallway by motion 1, and motion 3 has not seen you for 5 minutes and turns the lights off on someone who is then in the dark.

So what is really needed I suppose is a rule like “If ALL of the motion sensors stay inactive for 5 minutes”. However I did not know how to do this with an “all”, only an “any”. Am I missing something obvious here? Is this easier to handle in WebCore? What do you guys recommend for a solution? Thanks!

1 Like

Enhancement - On the front of the instance page you give some information about the instance. Maybe a summary about each piston and, what I would like to see, all the devices and variables that are defined in that instance. I would like to cut down the total number of devices I am using in each instance but without going through each one of those and writing down the info it is kind of time consuming.

One other thing I noticed is that if I change a name of a device I have to go back and add it again. Is that something that can automatically
be updated like other apps

1 Like

Strange that it’s applying the offset to both ends :slight_smile:

1 Like

Thanks for looking at this. I must be overlooking something obvious, but I have messed with it for a couple of hours - chalk it up as a learning experience - and am not understanding.

[quote=“ady624, post:687, topic:86153”]
Did you pause/resume?[/quote]What I showed you was a new piston created this morning, so I edited and saved. And, paused/resumed for good measure.

[quote=“ady624, post:687, topic:86153”]Is it subscribing to all devices used in the piston? i.e. the Iris, the PE653, and the motion sensor?
[/quote]I’m guessing not, but I sheepishly admit I’m not sure how to verify this. The two devices are listed in the webCoRE SmartApp and when creating the piston it offers them up as physical device choices (and they responded with the correct numbers from their predecessor piston until this morning).

Trying to simplify it, I modified my test to be:

The piston log:

5/10/2017, 3:10:08 PM +238ms
+1ms 	╔Received event [Home].time = 1494443408132 with a delay of 105ms
+200ms 	║RunTime Analysis CS > 30ms > PS > 84ms > PE > 86ms > CE
+215ms 	║Runtime (29735 bytes) successfully initialized in 84ms (v0.1.0a4.20170509) (212ms)
+216ms 	║╔Execution stage started
+272ms 	║║Calculating (string) BP Iris temp is + (string) Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found >> (string) BP Iris temp is Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found
+291ms 	║║BP Iris temp is Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found
+293ms 	║║Executed virtual command log (12ms)
+308ms 	║║Calculating (string) The pool temp is + (string) Device ':eeafa918b831fb87250be30c7eec74a5:' not found >> (string) The pool temp is Device ':eeafa918b831fb87250be30c7eec74a5:' not found
+318ms 	║║The pool temp is Device ':eeafa918b831fb87250be30c7eec74a5:' not found
+320ms 	║║Executed virtual command log (2ms)
+457ms 	║╚Execution stage complete. (241ms)
+501ms 	║Setting up scheduled job for Wed, May 10 2017 @ 3:11:08 PM EDT (in 59.394s)
+534ms 	╚Event processed successfully (534ms)

ST Live Logging:

3:10:08 PM: info  ╔ Event processed successfully (534ms)
3:10:08 PM: trace ║ Setting up scheduled job for Wed, May 10 2017 @ 3:11:08 PM EDT (in 59.394s)
3:10:08 PM: trace ║║ Executed virtual command log (12ms)
3:10:08 PM: trace ║║ Executed virtual command log (2ms)
3:10:08 PM: debug ║║ Calculating (string) The pool temp is + (string) Device ':eeafa918b831fb87250be30c7eec74a5:' not found >> (string) The pool temp is Device ':eeafa918b831fb87250be30c7eec74a5:' not found
3:10:08 PM: debug ║║ Calculating (string) BP Iris temp is + (string) Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found >> (string) BP Iris temp is Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found
3:10:08 PM: info  ║║ BP Iris temp is Device ':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found
3:10:08 PM: trace ║╚ Execution stage started
3:10:08 PM: trace ║ Runtime (29735 bytes) successfully initialized in 84ms (v0.1.0a4.20170509) (212ms)
3:10:08 PM: info  ╚ Received event [Home].time = 1494443408132 with a delay of 105ms
3:10:08 PM: debug ║ RunTime Analysis CS > 30ms > PS > 84ms > PE > 86ms > CE

I don’t know what this means:3:10:08 PM: info ║║ BP Iris temp is Device':c1e8e90c103c6d63143cf4a71dd6d1e5:' not found

Thanks again.

1 Like

So, where is the donate link. (I get more out of this than I do of ActionTiles, and I paid for that.)

That said. I really appreciate that WebCore is free, From the history I have been able to gather, it started out as a Community Rules Engine. :slight_smile: and the community needed it. Coding in groovy isn’t for most people.

1 Like

Top page, bottom of post… or click me

1 Like

Of course, I don’t always check the first post on an nearly 700 post thread. But when I do, the information I want is there.

3 Likes

@ady624 I started getting NPE on a lot of pistons…

1 Like

I think I’ve found a minor bug. $local now is showing UTC time while $UTCnow is showing local time.

1 Like