noob - command line to IR
Posted: Tue Apr 03, 2012 11:52 pm
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!
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!