+20
Planned

Send URL shortcut command without opening a new page?

Isaac Bergman 12 months ago in Panels (dashboards) • updated by MaxVonEvil 5 days ago 16 1 duplicate

Can you add an option to Shortcut Tiles Settings, so you can execute a URL command in the background without opening a new window?


For example, I have created station preset buttons and volume controls in ActionTiles, but when the URL is sent, the server returns a device/command status response message which I don't care to view, and is annoying since I have to navigate back to the panel via the Android back button.


Perhaps a "Don't open a window" option would do the trick?

Windows Mac iOS Fire Android

Answers

PINNED
Workaround... 

I made it so if you append &close=true to the end of your bookmark URL, the page will auto-close as soon as it opens. The Fully Kiosk browser honors the javascript close() command without prompting you.


Like this:
https://www.triggercmd.com/trigger/bookmark?token=BLAHtokenBLAH&close=true

PINNED
Planned

Unfortunately, this feature completion was pushed back due to other priorities, but it's still in the pipeline although we don't have an ETA at this time.

PINNED

Thank you for the update.


The workaround method mentioned doesn't work for me (with a registered Fully Kiosk Browser)

Duplicates 1

PINNED
Workaround... 

I made it so if you append &close=true to the end of your bookmark URL, the page will auto-close as soon as it opens. The Fully Kiosk browser honors the javascript close() command without prompting you.


Like this:
https://www.triggercmd.com/trigger/bookmark?token=BLAHtokenBLAH&close=true

Implemented: Please Test

Great work discovering and sharing this "workaround" option, Russell - thank-you!!!


Let's see what creative uses we all come up with.

+1

Hi Russell,


Is it the POST that you need, or is GET sufficient?

+1

A GET would be simple and sufficient for TRIGGERcmd or IFTTT, but a POST would let users do more because many API calls require POST.  

This doesn't actually work.  It still tries to open a new window for me.  And to use popups, you have to pay for Fully Kiosk browser.  So, now I'm stuck opening the Url in the same window and then back-buttoning back to action tiles.  Would be nice if there was an option for these to work like normal Momentary buttons.

+2

This feature has never been completed, yet. This is now back on the drawing board and we will update the status of the ticket once it's implemented.

PINNED

Thank you for the update.


The workaround method mentioned doesn't work for me (with a registered Fully Kiosk Browser)

Tried using the work-around and the window opened and the url did not fire at the remote end.

Thanks for looking ot implement this :)

+1

Hi there. Relatively new to AT so if this is somehow possible already I rest my case, yet here's my suggestion: A fourth mode for shortcut tiles, allowing execution of scripts, but showing no feedback other than button pressed and released.

Background: I've been playing around with a D-Link DCS5222L camera which supports pan/tilt and other commands. One can control the camera using different URL's such as the one below, which would allow me to point the camera to a preconfigured position:

<camerausername>:<camerapassword>@<public.dns.hostnamename>:<extenalfirewallport>/cgi/ptdc.cgi?command=goto_preset_position&index=<preset number minus 1>

(I found this by poking around the D-Link camera Smartthings Device Handlers by Ben Lebson)

Anyway, creating an AT shortcut only works halfway. We currently have 3 options for shortcuts; same window, new window and dialog within the panel. It works half way as you can configure a tile to open the url in a new window and it will run the command, but then you have to switch back to AT in order to see the effect.

I would like to suggest a 4th shortcut mode as described above, giving the panel user the ability to switch between camera presets and other commands. I could imagine this would be useful in all sorts of other scenarios where you just want a cgi script or similar to run, but do not want to open a web page.

Thanks,

Max

PINNED
Planned

Unfortunately, this feature completion was pushed back due to other priorities, but it's still in the pipeline although we don't have an ETA at this time.

+1

Hi thanks for your consideration. Having the ability to execute an URL quite figuratively has hundreds of  uses, i.e. I hoped it had a bit more generic appeal in terms of priority. In the interim I'll upvote it and try the &close workaround mentioned above and see if it works for me.


/Max