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

brononius

  • Guru
  • ****
  • Posts: 423
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
[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 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 459
    • 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: 423
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
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 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE