Author Topic: [SOLVED] Trigger script with respond to events  (Read 544 times)

brononius

  • Guru
  • ****
  • Posts: 379
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog (runs on ... linuxmce server)
[SOLVED] Trigger script with respond to events
« 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 »
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: 447
    • View Profile
Re: Trigger script with respond to events
« 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

brononius

  • Guru
  • ****
  • Posts: 379
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog (runs on ... linuxmce server)
Trigger script with respond to events
« Reply #2 on: December 01, 2012, 08:47:40 am »
Perfect!!!!
This opens a whole new box of oppurtunities to play around with...  ::)

Didn't understand the term 'spawn'. But now i do... ;)
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