theangryangel/XI4N

outgauge packets?

Closed this issue · 7 comments

Having the ability to setup a socket to Node with Outgauge data being streamed would be really nice. Especially now that I have a nice pretty iPad, coding a web app gauge thing would be nice.

Two ideas for doing this pop into my head. Either:

  • Different connection types, so an insim connection (tcp or udp), a outgauge connection (that can either be init'ed through InSim or listen via outguage), a relay connection, and you set the connection type in it
  • A plugin for the current InSim connection type that you can turn on that sets up Outgauge through InSim only

Thoughts? I prefer the first idea

The first idea sounds good. What I would be thinking of setting up is a Outgauge -> web socket bridge, that transmit a stream of JSON with the required data to update the gauges.

That's at least the theory behind it... So then I can create a cool little web app to deal with it.

Your thoughts?

Sounds cool :)

Commit dda22e1 adds the outgauge packets - untested of course, and theres no way to consume yet either. I'm prototyping a couple of different ways to add multi-protocol support at the moment :) Thinking it'll go in properly over the long weekend here in the UK :)

That's sweet. I'll maybe spend some time in the next few days and see what I can do. having my shiny iPad now will be awesome.

Commit e243b21 in the gauges branch has outgauge support, as a plugin (so an InSim connection, and then a request to send Outgauge from the InSim connection), I'll be adding standalone support tomorrow as well - the clientmanager and config just needs to be updated for that :) Once that's all done I'll merge it into master, probably tomorrow or Monday, at which point I'd consider it "stable" :)

Forgive me, I got a bit carried away - the gauges plugin in that repo has a barebones example of something that you might want to build on :x Video demo up at http://www.youtube.com/watch?v=lH9P00a4FPs if you're not brave enough to try out the branch yet :)

Lol. It looks great, maybe tomorrow or Monday I'll give it a whirl. iPad should be pretty performant as long as the animation is done in canvas or with CSS transforms.

Merged into master. Can also be run without InSim by setting a protocol key to outgauge in the config.json :) Will add an example for that shortly too.