[DEPRECATED] webCoRE Beta Milestone 2

More like a way to batch edit variables value. Sorry if it’s not clear as English is my second language.

Exemple, a text file formatted like this

Variable1;value1
Variable2;value2
Etc.

I came across this use case when coding my scotch inventory manager. It would have been a lot quicker to set everything in Excel, format it do mandated format and then copy/pasta.

I must say tho, that they way you implemented local variables modification in piston view page is already very satisfying and works very well.

I appear to be having trouble accessing the dashboard from my PC… I just updated to 0.2.0e4, and can view the dashboard on my phone, via the Dashboard button in the WebCoRE smartapp… If i try “register a browser” and go to webcore.co/re on the PC, I see the address bar get redirected to https://dashboard.webcore.co/register but am just presented with a blank white screen.

I’ve tried:

  • reloading the page
  • loading the page in an incognito window in Chrome
  • loading the page in Edge

All seem to have the same result…

Any ideas? I was going to work on tweaking some pistons tonight…

Ady,

Here, where you can choose what’s displayed for categories …

I was hoping for an option to display medium (and large) and details. As it stands if you want details you are restricted to the normal sized tiles.

Oh I get it. Can’t do, sorry, denied LOL

Option to change location with $weather variable (Enhancement request).

Would you need to access more than one weather location per installation of webCoRE? Would this have to be a parameter?

Yea, I was looking for a way to have access to more than one location if possible, maybe a zip code parameter. Use case for me at least would be to have a weather report, weather alerts and tiles created for my work’s location that is 1 1/2 hours away. I’ve seen others request for it for other reasons so I’m sure it’ll definitely get utilized by others as well.

Ability to Rename Pistons without editing the piston on the page where logging can be adjusted (Enhancement request).

You can rename pistons by accessing the piston smart app from a device’s SmartApps tab - you can rename it from there, without editing. Do you mean to have an edit button for the name only without having to edit the whole piston?

Yea, just an edit on the name only without having to edit the whole piston. That’s a good point about using the SmartApps section on the ST page.

Ability to edit the values of local variables in the piston detail page. Editing and running the piston just to set the value a variable is sometime tedious. Use case : setting initial value for an item shown in a tile in an inventory manager - see : WebCoRE - Example Pistons. (Enhancement request)

Added in v0.2.0e4

I’m having problems finding how to do this on the Piston Detail Page without having to edit the whole piston.

It’s probably easy but I am not seeing it. How do I add sending a text message as an action to a piston?

I confirmed that today, after I updated a few days ago, the lights were not kicking on since I had them set for Sat, Sun, Mon. Swapped to Fri, Sat, and Sun and they came on as expected. Will continue to watch through the weekend.

2 Likes

Select virtual device then a new list of options will pop up, send sms

They actually show for any selected device, as well as no device selected (aka Location)

Little edit button on the piston details page in the variables section.

Thanks, it’s working now since the last update.

Still having this error. Any thoughts?

Could you please export that piston and give me the code? I cannot replicate it but really want to find that .t of a null object. Have looked into it with no luck…

1 Like

Just checked with my minions - totally denied. Can’t do. Won’t happen.

Watch Dead Meat walking to the plane. Black cat, ladder, mirror, get it? Can’t do.

dixit LOL

1 Like

Any idea why this is returning ‘–’ in the tile? It appears to be finding the average temp, just not reporting it to the tile.

You need to fix the 2nd and 3rd “set piston tile” statements. Maybe they got corrupted or something … they’re all messed up.

Sure…to what? This was a copy, and it’s how it was sent to me…from the author…

Ah, OK. I don’t have access to webCoRE at the moment, but IIRC, the format for those statements (I haven’t used those particular statements in awhile) are:

set piston tile # title to …
set piston tile # text to …
set piston tile # color to …

I don’t have access to the webCoRE wiki, either :frowning:, so I’m not certain if they’re there.

The contents of the 2nd and 3rd piston tile statements should look something like:

set piston tile #1 text to "{format(’%.1f’, averageTemperature)}F"
set piston tile #1 color to “{averageTemperature > 80 ? ‘Orange’ : ‘Green’}” over White

Awesome! That worked…thanks!

1 Like

I am having issues since the latest update with Pistons executing and ignoring restrictions. I’ve isolated the problem to pistons that have a duration trigger (IE: If lights are off for 5 minutes then…) kind of triggers. It’s currently 14:26 and the restrictions on my piston are for the Piston to only fire between 21:00 and 05:00 but it keeps executing.

At 14:17:41, a scheduled job is setup to run but shouldn’t be due to the time restrictions. Once that time hits, the piston runs and the Goodbye! routine is run

+600ms ║Setting up scheduled job for Wed, Aug 16 2017 @ 2:22:49 PM EDT (in 299.939s)

I’ve had this piston running this way without modification for over a month and this issue just started after upgrading webCoRE the other day to the latest version

Here are the logs and the piston itself:

16/08/2017, 14:22:48 +258ms
+1ms ╔Received event [Homelands].time = 1502907769040 with a delay of -783ms
+560ms ║RunTime Analysis CS > 145ms > PS > 98ms > PE > 317ms > CE
+579ms ║Runtime (39477 bytes) successfully initialized in 98ms (v0.2.0e5.20170812) (577ms)
+582ms ║╔Execution stage started
+614ms ║║Cancelling condition #11’s schedules…
+620ms ║║Condition #11 evaluated true (8ms)
+692ms ║║Comparison (enum) off is (string) off = true (5ms)
+701ms ║║Comparison (enum) off is (string) off = true (6ms)
+710ms ║║Comparison (enum) off is (string) off = true (5ms)
+717ms ║║Comparison (enum) off is (string) off = true (4ms)
+722ms ║║Comparison (enum) off is (string) off = true (3ms)
+728ms ║║Condition #15 evaluated true (106ms)
+730ms ║║Cancelling condition #4’s schedules…
+732ms ║║Condition group #4 evaluated true (state changed) (121ms)
+739ms ║║Cancelling statement #12’s schedules…
+794ms ║║Executed virtual command sendPushNotification (42ms)
+10236ms ║║Executed virtual command executeRoutine (9433ms)
+10241ms ║╚Execution stage complete. (9659ms)
+10250ms ╚Event processed successfully (10250ms)

16/08/2017, 14:17:48 +502ms
+1ms ╔Received event [Theatre Mood Light].switch = off with a delay of 259ms
+403ms ║RunTime Analysis CS > 88ms > PS > 78ms > PE > 237ms > CE
+413ms ║Runtime (39476 bytes) successfully initialized in 78ms (v0.2.0e5.20170812) (410ms)
+414ms ║╔Execution stage started
+431ms ║║Comparison (string) :e329209b02524180269aeacb19563898: is_any_of (string) :beaf06d1244cff657bfc5a964ce25c62:,:e329209b02524180269aeacb19563898: = true (4ms)
+433ms ║║Condition #1 evaluated true (11ms)
+450ms ║║Comparison (time) 51468937 is_between (time) 75600000 … (time) 18060000 = false (10ms)
+452ms ║║Condition #2 evaluated false (18ms)
+454ms ║║Condition group #null evaluated false (state did not change) (33ms)
+455ms ║║Piston execution aborted due to restrictions in effect
+473ms ║║Comparison (time) 51468962 is_between (time) 75600000 … (time) 18000000 = false (10ms)
+516ms ║║Comparison (enum) off stays (string) off = true (4ms)
+520ms ║║Comparison (enum) off stays (string) off = true (3ms)
+525ms ║║Comparison (enum) off stays (string) off = true (3ms)
+529ms ║║Comparison (enum) off stays (string) off = true (2ms)
+533ms ║║Comparison (enum) off stays (string) off = true (3ms)
+538ms ║║Adding a timed trigger schedule for condition 11
+570ms ║║Comparison (enum) off is (string) off = true (3ms)
+573ms ║║Comparison (enum) off is (string) off = true (2ms)
+577ms ║║Comparison (enum) off is (string) off = true (3ms)
+581ms ║║Comparison (enum) off is (string) off = true (3ms)
+585ms ║║Comparison (enum) off is (string) off = true (2ms)
+588ms ║║Cancelling condition #15’s schedules…
+597ms ║╚Execution stage complete. (184ms)
+600ms ║Setting up scheduled job for Wed, Aug 16 2017 @ 2:22:49 PM EDT (in 299.939s)
+619ms ╚Event processed successfully (620ms)

16/08/2017, 14:17:41 +176ms
+2ms ╔Received event [Theatre Mood Light].switch = on with a delay of 188ms
+699ms ║RunTime Analysis CS > 140ms > PS > 323ms > PE > 236ms > CE
+709ms ║Runtime (39477 bytes) successfully initialized in 323ms (v0.2.0e5.20170812) (706ms)
+710ms ║╔Execution stage started
+728ms ║║Comparison (string) :e329209b02524180269aeacb19563898: is_any_of (string) :beaf06d1244cff657bfc5a964ce25c62:,:e329209b02524180269aeacb19563898: = true (5ms)
+731ms ║║Cancelling condition #1’s schedules…
+732ms ║║Condition #1 evaluated true (12ms)
+748ms ║║Comparison (time) 51461909 is_between (time) 75600000 … (time) 18060000 = false (10ms)
+751ms ║║Condition #2 evaluated false (17ms)
+752ms ║║Condition group #null evaluated false (state did not change) (34ms)
+753ms ║║Piston execution aborted due to restrictions in effect
+772ms ║║Comparison (time) 51461934 is_between (time) 75600000 … (time) 18000000 = false (10ms)
+775ms ║║Cancelling condition #4’s schedules…
+822ms ║║Comparison (enum) off stays (string) off = true (3ms)
+826ms ║║Comparison (enum) off stays (string) off = true (3ms)
+831ms ║║Comparison (enum) off stays (string) off = true (2ms)
+835ms ║║Comparison (enum) on stays (string) off = false (2ms)
+839ms ║║Comparison (enum) off stays (string) off = true (3ms)
+844ms ║║Cancelling any timed trigger schedules for condition 11
+845ms ║║Cancelling statement #11’s schedules…
+846ms ║║Cancelling condition #11’s schedules…
+881ms ║║Comparison (enum) off is (string) off = true (3ms)
+885ms ║║Comparison (enum) off is (string) off = true (3ms)
+889ms ║║Comparison (enum) off is (string) off = true (3ms)
+893ms ║║Comparison (enum) on is (string) off = false (3ms)
+897ms ║║Cancelling condition #15’s schedules…
+906ms ║╚Execution stage complete. (196ms)
+914ms ╚Event processed successfully (914ms)