@Robin @ipaterson @ady624 @???
Are any changes being made to WebCoRE these days?
I would like to be able to return a small JSON formatted text string. This could be used with shields.io I think to show data from WebCoRE on ActionTiles. See https://shields.io/endpoint
{
“label”: “Kevin”,
“message”: “At Work”,
“color”:“yellow”,
}
Maybe in the future this would open up easier integration with ActionTiles/SharpTools/etc dashboards. We could create a piston to generate data for a given tile by calling WebCoRE External URL :
https://graph.api.smartthings.com/api/token/x/execute/MyPresenceTile?person=Kevin
which would return required data. Maybe we could have a writable WebCore variable similar to $args, Rough example…
Set variable $return = "{
“title”: “$args.person”,
“data”: “[$args.person: arrivingAtPlace]”,
“icon”: “http://example.com/office.png”,
“footer”: “Arrived at 0800”
“bg-color”:“yellow”,
“text-color”:“black
}”
Thanks!