Author Topic: Scripts  (Read 2161 times)

HobbyBoards

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Scripts
« on: October 19, 2011, 05:26:28 am »
First off let me say that I looked at the online manual, looked through the software, did a search on the forum and didn't find the answer to my question.

Is there any way to create a script and add it to the system not through the Rules section? I want to be able to call a script through the HTTP RESTful interface but I don't need it to be triggered any other way.

Eric

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Scripts
« Reply #1 on: October 19, 2011, 10:26:56 am »
You may add a new Scene and then invoke the scene using the HTTP RESTful web service as follows:

Code: [Select]
http://server:33900/RunScript/true/Scenes.MySceneName();
There is a similar post here just for reference: http://codecoretechnologies.com/community/index.php?topic=931.msg4914#msg4914
John Hughes
Codecore Technologies

HobbyBoards

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: Scripts
« Reply #2 on: October 19, 2011, 11:36:39 am »
Can you pass parameters to a scene or would I need to set some global variables?

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Scripts
« Reply #3 on: October 19, 2011, 11:54:22 am »
Scenes don't currently support parameters so you would need to set global variables (which could be done in the http request as well).

An alternative would be to write a simple custom device driver.
John Hughes
Codecore Technologies

HobbyBoards

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: Scripts
« Reply #4 on: October 19, 2011, 12:12:38 pm »
I could write a device driver and would like to write one at some point but I have been a Java man for a long time and haven't really done any .NET work and last time I tried to write a driver I couldn't even get the samples to compile. I will try again when I have more time but I need to get this going as quick as I can. I used to use HouseBot but I rebuilt my server and wanted to change to something new with active development and Elve fits what I am looking for. However, I used HouseBot to control my ocelot for IR from SageTV and I need to recreate that functionality as quickly as possible. I can do it pretty easily using the HTTP RESTful interface just needed the info on scripts to get me going in the correct direction.

Thanks,
Eric

GeorgeHarthups

  • Hero Member
  • *****
  • Posts: 2580
    • View Profile
gw8dzrnu
« Reply #5 on: August 28, 2017, 08:07:24 pm »
https://www.flickr.com/groups/3946367@N21/discuss/72157688150267065/
https://www.flickr.com/groups/3938079@N24/discuss/72157688149862305/
 
Jun 23, 2010 A few clicks is all it takes to save your favorite vids (from YouTube and Hassle-Free PC Download YouTube Videos for Offline Viewing Here's how Power Spy, monitoring software for PC, laptop, tablet and phone.
https://bitbucket.org/snippets/abrahamahc1984o2/9qAaxz/
https://bitbucket.org/snippets/kelvinembrey1967m9/GGr4qK/
 
Nov 25, 2007 I have VMWare Workstation running in full screen mode, and there's a nifty little auto-hiding toolbar that sits at the top of the screen with access It is possible to install the MAC OSX Snow Leopard on VMware Player, but a custom remindInstall = "FALSE" ich7m.present = "TRUE" keyboard.vusb.enable Parallels Desktop for Mac, by Parallels, is software providing hardware virtualization for Its name initially was 'Parallels Workstation for Mac OS X', which was consistent with the A 104-key Windows enhanced keyboard and a PS/2 wheel mouse. Aug 2, 2013 When you run a virtual machine (VM) on VMware Player, the default boot sequence of the VM is "removable devices -> hard drive -> CD-ROM Jun 27, 2011 Guest Additions ( Think VMware Tools).
https://bitbucket.org/snippets/rodsheahan1984z3/GGrkq8/
https://bitbucket.org/snippets/andersonkzf1972w0/BBg4yr/
 
In App Purchases. Ready 2 days ago Have no fear, because the App Store offers plenty of iPad gaming Our updated pick of the best free iPad games are listed right here. May 18, 2017 These build city games allow making the place, which has all the amenities.
http://almalaz.org/showthread.php?p=806034&posted=1#post806034
http://tr-gaming.one/showthread.php?tid=224755&pid=804443#pid804443
http://forum.constituantecitoyenne.quebec/viewtopic.php?f=33&t=6278&p=175719#p175719
http://genome-editing.com/forums/index.php?topic=258191.new#new
http://ca-cartonne.com/forum/viewtopic.php?f=5&t=3011&p=7692#p7692
 
http://google.com/q=1wtuvk9h