[DEPRECATED] webCoRE Beta Milestone 2

Hi,

Now I am able to see the response to local web requests, I can see the error I am getting back from my TV. Below is my piston:

And the response I get is [error:[5, Illegal JSON]]

I am supposed to send the JSON in the body of the POST request, but there doesn’t seem to be a Body attribute in the webrequest config, so I am using the Send variables (optional) section to send a string variable I configured with the JSON string. I think this may be the problem though as it doesn’t feel like the right way to do it.

I must admit when sending a POST request, I was expecting to be able to set the Headers, Body etc… but these don’t seem to be options. I am missing something again?

Thanks

Is https://dashboard.webcore.co/ currently down?

Hhmmm. Blank screen for me too.
@ady624???

EDIT: I just did an update to the latest version on webCoRE.
Not sure if this is related.
Hard refresh of Chrome for PC does not help.

Blank for me also. It was blank, so I updated to new version, but still blank.

I have not updated to the latest yet

Blank dashboard here too, updated to v0.2.0da.20170716

Happened to me yesterday as I was saving a piston so thought I had done something stupid.

Got it back in the end by going into the webCoRE Smartapp in Smartthings then into Settings and then Clean up and rebuild Data Cache.

Could be the same problem you are having maybe.

oh oops - javascript minification errors :smiley: fixed, sorry

I develop on a different non-minified version of the site - then when I publish it, the whole javascript gets minified - if it fails, it stops - didn’t see that, sorry. Should be fine now.

3 Likes

Thanks Adrian.
Just for info for others, I had to hard reload my browser.

1 Like

@jasonrwise77 @Nezmo

Could you guys post a fixed piston for motion and contacts tile as suggested by @ady624 ? (Or point me in a general direction that would help me understand what’s going on and fix it myself by trial and error :slight_smile: )

I’ve imported those posted above but they logs an error everytime they run :slight_smile:

Thanks a lot for what you’re all doing for our community!!

Error executing virtual command [].setTileColor: (9ms) groovy.lang.MissingMethodException: No signature of method: static physicalgraph.developer.ColorUtilities.findByName() is applicable for argument types: (java.lang.Boolean) values: [false] Possible solutions: findByName(java.lang.String)


Here is one I jacked from Adrian himself

2 Likes

Here is my latest version:

4 Likes

Thanks, I made it work with some adjustment :slight_smile:

Stupid question… is there a maximum number of piston we can create? Ain’t I gonna use to much ressources of the ST cloud at some point? I assumed it’s run in the cloud not locally…

I’ve been rethinking all my pistons recently to try to optimize them as much as possible :relieved:

Not sure if this is a bug, I deleted 5 Tiles (tile numbers 8 to 12) after moving them to their own Piston yet the deleted tiles will not go away on the Dashboard (so those tiles are being duplicated). They go away just fine if I pause the piston but they come back when I resume. I cleared/rebuilt cache on the SmartApp and cleared my browser cache and tried another browser but getting same results.

When I created a new piston and duplicated this piston with the issue, the issue went away so I was able to fix it with that method.

Thank you!

Hi @ady624, I have got the following error when sending lifx pulse and breathe API in the latest version of webcore. Any idea? Thanks in advance.

+1ms ╔Received event [Home].execute = 49.2.143.197 with a delay of 74ms
+220ms ║RunTime Analysis CS > 18ms > PS > 51ms > PE > 150ms > CE
+228ms ║Runtime (40119 bytes) successfully initialized in 51ms (v0.2.0da.20170716) (226ms)
+229ms ║╔Execution stage started
+251ms ║║Condition #7 evaluated false (12ms)
+252ms ║║Condition group #1 evaluated false (state did not change) (14ms)
+257ms ║║Cancelling statement #2’s schedules…
+310ms ║║Executed virtual command sendNotificationToContacts (45ms)
+361ms ║║Error executing virtual command [].lifxPulse: (32ms) org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘null’ with class ‘null’ to class ‘double’. Try ‘java.lang.Double’ instead
+385ms ║║Error executing virtual command [].lifxPulse: (8ms) org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘null’ with class ‘null’ to class ‘double’. Try 'java.la

Apologies, forgot the piston snapshot

Sorry it took me so long to get this out. Here Is my logging data

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎48‎ ‎PM: debug Back Door (Lock) was locked with description: Back Door (Lock) was manually locked

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎48‎ ‎PM: debug Lock event name lock, value locked, device Back Door (Lock), description Back Door (Lock) was manually locked, data {“type”:“manual”}

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎40‎ ‎PM: debug Lock Back Door (Lock) unlocked by Paul, notify false, notify modes null, notify NOT present null, Source type: via keypad

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎40‎ ‎PM: trace Event name lock, value unlocked, device Back Door (Lock)

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎40‎ ‎PM: debug Lock event name lock, value unlocked, device Back Door (Lock), description Back Door (Lock) was unlocked with code 1, data {“usedCode”:1,“type”:“keypad”}

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎34‎ ‎PM: trace No generic routine configured to run when locked via keypad for Back Door (Lock)

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎34‎ ‎PM: trace Lock Back Door (Lock) locked by Master Code, user notify true, user notify modes null, notify NOT present null, external notify false, external notify modes null, user override action null, Source type: via keypad

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎34‎ ‎PM: debug Back Door (Lock) was locked with description: Back Door (Lock) was locked with code 0

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎34‎ ‎PM: debug Lock event name lock, value locked, device Back Door (Lock), description Back Door (Lock) was locked with code 0, data {“usedCode”:0,“type”:“keypad”}

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎21‎ ‎PM: debug Back Door (Lock) was unlocked manually. Source type: manually

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎21‎ ‎PM: trace Event name lock, value unlocked, device Back Door (Lock)

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎21‎ ‎PM: debug Lock event name lock, value unlocked, device Back Door (Lock), description Back Door (Lock) was manually unlocked, data {“type”:“manual”}

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎10‎ ‎PM: debug Back Door (Lock) was locked with description: Back Door (Lock) lock is locked

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎10‎ ‎PM: debug Lock event name lock, value locked, device Back Door (Lock), description Back Door (Lock) lock is locked, data null

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎07‎ ‎PM: debug Back Door (Lock) was locked with description: Back Door (Lock) lock is locked

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎26‎:‎07‎ ‎PM: debug Lock event name lock, value locked, device Back Door (Lock), description Back Door (Lock) lock is locked, data null

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎25‎:‎48‎ ‎PM: debug Back Door (Lock) was unlocked manually. Source type: electronically

cf08fe2c-3813-4dcb-a439-0950a50998a9 ‎12‎:‎25‎:‎48‎ ‎PM: trace Event name lock, value unlocked, device Back Door (Lock)

Main thing I noticed when I locked and unlocked via app Source type was “Electronically”, when I locked via keypad, Source type was “via Keypad”

At this time I only get notifications when the door is locked or unlocked via the app or via routines, aka “electronically”

Have you tried checking $args.type for ‘manual’?