Open dtex opened 9 years ago
A Possible HTTP Server Option:
I have a Linux based hosting account that could work for us. I tested communication with mySQL* and PHP\ using polling. The response time seems instantaneous using a short script (like ours). This method is easier to implement than opening a port on a network, and it would allow our robot to run on any wireless network that we have access to. I can look further into this for our next meeting if you like.
Note: I could provide FTP access to a folder where we could upload scripts. We could also install and configure that folder as we like, and the group could access database via PHP scripts, etc. The only requirement is that main hosting account configuration remain unchanged.
*MySQL is code used to access the server side database.
**PHP is code that runs on the hosting server. It can perform programmed functions on the server, and it allows connectivity (login and control) of a database. The script then returns HTML, Javascript, etc. values to the end user’s web browser so it looks like a regular webpage.
From: Donovan Buck [mailto:notifications@github.com] Sent: Saturday, June 27, 2015 6:09 PM To: Houston-Robotics-Club/ariel Subject: [ariel] Add HTTP Server to index.js (#2)
We need an HTTP server that will deliver all the assets (HTML, CSS, JS and any images) to the remote user. I propose that we use hapi.js http://hapijs.com/ . It's overkill, but I think it's a good thing for everyone to be exposed to.
— Reply to this email directly or view it on GitHub https://github.com/Houston-Robotics-Club/ariel/issues/2 . https://github.com/notifications/beacon/AH3em4Zrgh_49_8d4IzMmFGvBCI8EXBXks5oXyRxgaJpZM4FNaoA.gif
I like not opening a port but needing an extra server is a big trade off... I wonder if there is some whacky, mad scientist way we could establish communications between client and server without needing an open port or a relay server.
Cool, I will demo this at our next meeting.
From: Donovan Buck [mailto:notifications@github.com] Sent: Monday, June 29, 2015 8:43 AM To: Houston-Robotics-Club/ariel Cc: egrliz Subject: Re: [ariel] Add HTTP Server to index.js (#2)
I like not opening a port but needing an extra server is a big trade off... I wonder if there is some whacky, mad scientist way we could establish communications between client and server without needing an open port or a relay server.
— Reply to this email directly or view it on GitHub https://github.com/Houston-Robotics-Club/ariel/issues/2#issuecomment-116663786 . https://github.com/notifications/beacon/AH3em5j9YZgGBGc3QsHHGKxyQ9vg4nbVks5oYULegaJpZM4FNaoA.gif
@egrliz I've set it up with peer to peer communication, but I've done it in way that we can inject a cloud based relay server if we need to. We won't have to rely on polling since both client and server can be connected to relay server via web sockets. I expect it will add a 1/2 second of latency. Are their web socket modules/plug-ins/libraries for PHP? I'm using socket.io in node.
Today Abhinav and I discovered that if we just get up and walk out of the conference room, internet connectivity improves a bajillion percent (give or take).
We need an HTTP server that will deliver all the assets (HTML, CSS, JS and any images) to the remote user. I propose that we use hapi.js. It's overkill, but I think it's a good thing for everyone to be exposed to.