------------------------------------------------------------------------ A poll associated with this post was created, to vote and see the results, please visit http://forums.slimdevices.com/showthread.php?t=79524 ------------------------------------------------------------------------ Question: Are you interested in IR-over-IP? - Yes, I'd like to have IRoIP. - No, I don't care. ------------------------------------------------------------------------
indifference_engine;575020 Wrote: > OK, I think this will be relatively straightforward (in principle). My > idea would be to create a new SqueezeIR protocol (called eg tcp). The > ip and port could be placed in <parameters> (along with any constant > command pre/suf-fixes) and the remote's protocol set as "tcp". I think > it would be easiest to have each command in a separate file and put the > filename into the existing SqueezeIR.xml file as <command><value> > values, otherwise SqueezeIR would have to parse the xml and extract > each command which would be tough. So far so good. There would need > to be a tcpToNative() function called from ProtocolToNative() that would > read the file into SqueezeIR. Problem here is that this would be > asynchronous so might need callbacks :(. Another (maybe easier) option > would be to embed the commands into SqueezeIR.xml as CDATA structures > thus completely avoiding the need to make asynchonous http requests to > the server. I know that getting lirc to work was a royal pain once I > had moved the lirc files onto the server! The next step would be for > StartTimer() and TimerCallback() to run your code to send the http > request instead of ir (using os.execute) depending on the protocol > name. > > The bad news is that currently SqueezeIR doesn't keep the protocol name > once it has converted everything to the Native format so some work would > be needed there. A better option would be to have an ir/tcp flag for > each protocol to avoid having the protocol name hard-coded. Again some > work would be needed there. I don't think it will be beyond the realm > of the possible to implement your code but you'll have to wait until > I've got my system working again (waiting for some bits from eBay). Well, I have to say this sounds more than great. I was thinking about some sort of tcp flag/protocol in SqueezeIR.xml with parameters IP and PORT. CDATA is also a good idea, but would the xml.lua parse it correctly? Also if we went the seperate files way why not put them on the controller itself? I guess there is some kind of obstacle, I just don't know where. Why did you actually move the lirc files to the server? -- Dextrosan ------------------------------------------------------------------------ Dextrosan's Profile: http://forums.slimdevices.com/member.php?userid=39296 View this thread: http://forums.slimdevices.com/showthread.php?t=79524 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
