LinuxMCE Forums
May 22, 2013, 03:07:23 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Trigger script with respond to events  (Read 309 times)
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« on: November 30, 2012, 01:57:03 pm »

What's the best way to start a homemade script with respond to events?
I couldn't figure out what kind of event command i need to use.
Is this #28 PK_CommandGroup (int)

fe when you push a light switch, it should trigger '/scripts/startprinting.sh'
« Last Edit: December 01, 2012, 08:47:55 am by brononius » Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
sambuca
Guru
****
Posts: 420


View Profile
« Reply #1 on: November 30, 2012, 08:55:41 pm »

You will find all commands available to you in Advanced -> DCE -> Commands in the web admin. In that list is also the device that implements it (the device the command must be sent to).

In your case you might find what you are looking for with "Spawn Application" in the App_Server device (note that there is one App_Server per computer).

br,
sambuca
Logged
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #2 on: December 01, 2012, 08:47:40 am »

Perfect!!!!
This opens a whole new box of oppurtunities to play around with...  Roll Eyes

Didn't understand the term 'spawn'. But now i do... Wink
Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!