Is it Possible to initiate a scene from a windows 10 desktop Icon?

Hi,
I’m looking for a method of initiating a VeraPlus Scene by clicking a windows 10 desktop icon.

Is it possible using either a browser or Putty / WinSCP with a command line to accomplish this?

I’ve searched the forum and the closest I found was to run ImperiHome / bluestack / Window 10 which I think is too convoluted to be a reliable solution.

Any ideas?

Thanks

JohnRob

[quote=“JohnRob, post:1, topic:194053”]Hi,
I’m looking for a method of initiating a VeraPlus Scene by clicking a windows 10 desktop icon.

Is it possible using either a browser or Putty / WinSCP with a command line to accomplish this?

I’ve searched the forum and the closest I found was to run ImperiHome / bluestack / Window 10 which I think is too convoluted to be a reliable solution.

Any ideas?

Thanks

JohnRob[/quote]

Check here, there’s probably more commands available as well:

http://wiki.micasaverde.com/index.php/Luup_Requests#scene

I’m sure an icon can just call a web address for example.

Or run grasshopper

Thank you both.

I think the Luup_Request is just what I’m looking for.

I looked at Grasshopper as well. Seems interesting but I tend to shy away from apps that request a lot of permissions. Perhaps they are needed but there seems to be a lot of them.

JohnRob

tomtcom pointed you to the right page, but the wrong section. Rather than the scene section that he linked to, you need the action section.

Simply create a desktop shortcut to the URL pointing to the desired scene number.

http://VeraIPAddress:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=999Of course, this will cause your browser to open. If that is intolerable then I’d suggest wrapping the URL call in a batch file or PowerShell script that uses something besides your browser to make the call or immediately closes the browser after opening.

# RunScene_999.PS1
#PowerShell to call URL
Powershell.exe -command "& Invoke-WebRequest -Uri 'http://VeraIPAddress:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=999'"
exit

Desktop shortcut

powershell.exe -command "& 'C:\Users\JonRob\RunScene_999.PS1'"

You might be able to stuff it all into a single shortcut. Something like this:
Desktop shortcut

Powershell.exe -command "& Invoke-WebRequest -Uri 'http://VeraIPAddress:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=999'"

But, I haven’t tested it and wouldn’t be surprised if this threw parsing errors.

You beat me to it. :slight_smile: Gotta love PS. Alternatively WGET would also do it. But it’d pop up a DOS window for a couple of seconds.

Thanks z-waver, I may now use this myself too…lol!

You should be able to run it in a batch file with echo off so you don’t see the DOS window.

cmd.exe will pop-up a window no matter what. echo off will only make it so that no text is printed in the black box.

Try this.

[code]rem test.cmd
@echo off

rem pause for 5 seconds. Redirect timeout command screen output to nul.
timeout /t 5 /nobreak > nul

exit
[/code]