Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspire others #2

Open
akeamc opened this issue Jun 13, 2018 · 9 comments
Open

Inspire others #2

akeamc opened this issue Jun 13, 2018 · 9 comments

Comments

@akeamc
Copy link

akeamc commented Jun 13, 2018

By releasing the source code from this video, before the kit itself is done, other developers might get a better understanding and be able to help.

@andrewhawkes
Copy link
Owner

@ThePicoNerd I'll try my best to get a basic working example of the server and some demo output up in the next couple of weeks (depending on my schedule). I'll do my best to document and break down each bit then hopefully it will be of some use, hopefully.

@akeamc
Copy link
Author

akeamc commented Jun 13, 2018

@andrewhawkes Thanks! I'm really looking forward to the next commit!

@paulolimarb
Copy link

Hi andrewhawkes

Please, would you be able to release what has already been done at least in the software part? Or inform the logic you used to build this prototype?

Could you also release the html with the instruments?

Thank you very much for your work.
Paulo Lima from Brazil

@andrewhawkes
Copy link
Owner

@paulolimarb sorry, I've not been working on it recently due to work commitments but I am debating starting a rewrite it from scratch. There are a few libraries dotted about now which let you use datarefs in X-Plane 11 with node.js so that might be a good start for you.

In terms of the HTML I could probably commit it, but it's in an old build system so I would probably be nicer and easier to rebuild it. If I was to do it again I'd probably do it in React or Vue.

@andrewhawkes
Copy link
Owner

@paulolimarb if you want any help I'd be happy to give you some guidance from what I've found. I'd just need an idea of what you're trying to achieve.

@paulolimarb
Copy link

Hi @andrewhawkes

Thanks for your reply.

I saw some libraries get and define data by udp in x plane 11 and I like it.
I will build a similar tool with golang.

  • I would like show instruments the my airplane in others devices, smartphone, tablet or others display.

My questions is:

How you send data to front-end? What arcteture you use?
Example: X-plane UDP -> Your server in nodeJs -> WebSocket -> Front-End?

I would like to see your html instruments from your video, to see how the pointer scale in the html instrument works.

Example:
X-plane send value 10 on altmeter, to my server and I send data to my front-end, I would like calibrate visualization equal in the airplane.

Thank you for your availability to help me.

@andrewhawkes
Copy link
Owner

@paulolimarb I'll have to see if I can dig them out as they're not on GitHub annoyingly.

But the general gist is:

Server-Side:

  1. X-Plane sends data over UDP
  2. Node.js listens for UDP
  3. Node.js then splits up the data and formats it into a more useful format
  4. Node.js then sends emits the data via socket.io

Client-Side:

  1. Listen for socket.io events
  2. Update CSS values (rotation mainly) of instruments with JS

But one of the things which brought my work to a halt was that there's only a limited amount of data doing it this way. If you use datarefs instead you can access more data as well as send it.

If I do get round to revisiting this project I will likely use datarefs instead. Also, I will likely use Vue.js and use their VUEX state management and make the instruments work off that instead.

@paulolimarb
Copy link

Hi @andrewhawkes

Thank you for this information

I imagined this architecture and I like it.

I read some things about DATAREFS but I didn't understand much, I need to spend a little more time to get more information.

I studied a little bit of vuejs but I didn't adapt to the
frontend in general. I like the backend more.

When you want to get back on this project, please contact me. Because I will start the backend, using golang.

When you find the code you used in your examples, I still want to see the front end.

Thanks

@paulolimarb
Copy link

Hi @andrewhawkes

I found it information about DATAREF and I don't understand all the difference between X-Plane UDP, but I see it on DATAREF you must do pooling with your application to get "datas" and X-plane UDP send dates to your UDP api.

It is correct?

Do you know others differences?

In the documentation doesn't explain the differences and how to work with DATAREF on X-plane

This app: https://github.com/MaxFerretti/XPlaneConnector
it works pooling x-plane with send DATAREF to get datas.

This app: https://github.com/dmolin/flightSimPanels
it works receving datas from udp connection from x-plane.

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants