Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

noob - command line to IR

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
patm
Posts: 5
Joined: Tue Apr 03, 2012 10:00 pm

noob - command line to IR

Post by patm »

I've just started with eg and I must say I'm somewhat lost. I've been googling and searching the forums all day but I've barely got past sending an argument and getting the IR to flash. I did manage to parse the event payload I send to eg but now I'm stuck - mostly because I'm not sure how to proceed.

Basically I'm using NextPVR to send a channel command to a USB-UIRT. I have three zones so I need to work each one seperately. The channel change command will be simple:

eventghost.exe channel <zone> <channel>

I thought I could use python to parse the payload. Use the zone number and each digit to come up with the transmission command e.g. 1-5,1-4,1-3 for zone 1 channel 543. I'm assuming the USB-UIRT won't take a zone number as an argument since I've found zero mention of it in all my searching.

I did write a script that parsed the payload and printed the results in the debug window (that was rather easy though I'm not familiar with python yet). I figure I could create macro/events for all 30 possible zone/digit combinations then use TriggerEvent to call them but I thought there has to be a more efficient way. I've been trying to figure out how the folders work , thinking I could stuff the transmission actions in there and call only the ones I wanted, but I'm not seeing anything like that in searches.

I'm not asking anyone to write a config for me but I'd love a quicky idea of what the best approach would be or just someone to say that the 30 macro/event method is the only one.

Thanks!
Post Reply