[DEPRECATED THREAD] webCoRE design process

Changing StartTime to a String Variable didn’t seem to help when testing now, it’s still formatting with AM instead of PM and has the Date still.

The Variable List is showing the $time correctly:

I also noticed the $utc is incorrectly set to local time instead of UTC time and $localNow is incorrect as well for the time (not related to my initial issue).

Nevermind, I fixed it by deleting the StartTime Variable and created a new String Variable.

It’s showing correct now:
Piston state: Morning Mode Started at 3:55 P.M. and Lights are set to 99%

I can’t even get off the ground… trying to add the webCoRE repository to my Smartthings IDE I get: “You don’t have access to ady624/webCoRE” - the exact same problem I had installing CoRE, only I had better luck finding manual installation instructions for CoRE.

For someone who almost never uses GitHub, what the heck am I doing wrong? :frowning:

Did you follow these instructions?

https://wiki.webcore.co/GitHub_Install

Forgot about that or failed to dig a little deeper… thanks! Let’s see. – Still getting “You don’t have access to ady624/webCoRE.”

Could this be because I am already connected to my own repository, with a few published apps? I don’t get it.

Nah, what gives you the error? The IDE?

Yep - drops me back to the My Smartapps page and shows me the error at the top of the screen.

However… now I’m off developing after using the manual instructions. Will see if I can solve my (piston #1 sets global var, then triggers piston #2 which reads global var into local var, then passes to web service POST to announce something via google home) problem where my variable is always null! WebCoRE looks really exciting after building on CoRE!

Thanks!

Looking for some help with playing a track on a Samsung R1. I am getting an error as shown. Text to speech works fine on the R1…

Just had a try with your piston to my Samsung R1 and provided i insert a wait between PlayTrack and SpeakText it works fine for me.

I randomized three soundfiles in the define section just to try them out at random

oh and I use tileSstLevel() for volume before playTrack as it seems to give a more consistent volume level.
(I think the R1 has some issues with volume)

Is it possible to use this to set piston state? For example “X occured Y hours and Z minutes ago”?

Yes you can. Just use Set Piston State instead of Send Push Notification…

https://wiki.webcore.co/Functions#formatDuration

I tried using formatDuration subtracting the time the piston was run (stored as a variable) and $now to show how long ago it ran but the state simply says “now”.


Note: I’ve since fixed my horrible spelling error.

@ady624 @bamarayne

I saw @bamarayne mention Echosistant in a previous post and see that you can add it as a virtual assistant but it needs to be installed? Could anyone explain how to do this?

Also, i get a notification that Flash isnt implemented, any idea when this might be added?

Very cool addition BTW, for someone with no experience with coding, this app is a lot of fun. Can’t wait to see it grow.

Can you post the whole piston? I’ll take a look.

Read all about it here…

What is that third parameter, empty nothing?

Thank you although I am still not hearing any sound before the text. I don’t understand why I would receive the error when I insert the url directly but when using a variable, the error doesn’t show…Maybe ady624 can chime in …

@mbustillos1 you have an empty parameter in your code…

These are your options…

Hey @bamarayne, I have echosistant app already but its not letting me access in WebCoRe. It says i need to open or install it