[DEPRECATED THREAD] webCoRE Beta Milestone 1

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

Edit and Save each of your pistons and see if it goes away…

2 Likes

I thought I seen something in the notes of the latest release that you must pause and resume all of your pistons.

1 Like

Edit/Save does what Pause/Resume does but also optimizes space in the piston… two for one special…

2 Likes

I’ve been experiencing a problem saving my Pistons for the past approximately 10 yours. Regardless of whether I make actual changes to a piston, or just clicking save immediately after entering editing mode, it would show the Saving Pistion Chunk 1; Saving Piston Chunk 2; Backup Bin updated. After that, the cubes in the bottom right corner just keep on spinning. If the browser page is refreshed, it goes back to the Status page of the piston. Nothing is saved.
I’m using Chrome and have tried a Forced Refresh of the page. I’ve also tried to edit a piston in Internet Explorer, but the system displays the exact same behaviour.
I’ve even tried switching routers / internet gateways but without any luck.
Any ideas pse?

1 Like

A bit of a basic question here.
I have just discovered the advanced aspects of WebCoRE (expressions, variables, arguments etc.) and am really thrilled about it. However, am a little stuck on this one…

When I encounter capabilities like the ones shown in the below image (with the little house like icon to the left of it), how can I used the values returned by those capabilities to perform mathematical operations or even use them for simple number comparisons?
All I see in the drop down for comparison is are options like ‘Is’, ‘Changes to’ etc. and there is no ‘Is greater than’ or similar options.
Do I need to convert the values into integer or decimal and then use an expression to specify the operation I need? If yes, could anyone please provide an example of how to do that in this case, just for reference?

P.S: If this is way below the average level of discussions here then I apologize for bringing in quite basic queries. I was a just a little lost with the examples I referred to on the Wiki.

1 Like

There was an update yesterday, did you install/publish the third smartapp called webCoRE Storage? After you install that, you need to pause/resume your pistons, or hit Edit/Save.

1 Like

You can use expressions also, an example would be [DeviceName:attribute], attribute in this case would be one of those custom ones with the house.

2 Likes

Yes, thanks, I did. Just checked and I have webCoRE (Published); webCoRE Piston (Published) and webCoRE Storage (Published) installed.

1 Like

I have not seen anything reported like since the update. Any error coming up on live logging in IDE?

1 Like

Thanks again for your help.
Could it be java related? I just updated the Java plugin on my PC and it seems to have resolved the issue?

1 Like

Just updated to webCoRE few days ago, so far it looks amazing. But I stumbled into a little problem.
I used the Wemo insight switch with CoRE, but after updating I cant seem to choose anything else then switch function in webCoRE for Wemo insight switch, but power usage is what im missing.
Is it something I have forgot or missed? Or isnt that function added for webCoRE yet? Thanks…

1 Like