
0
Answered
How to host openice (https://github.com/jeffplourde/openice) locally on Win-7
Hi,
I have cloned the OpenICU (master) branch on my Win-7 and hosted it on IIS7.5. When I visit the OpenICU Webdemo page of hosted website (http://localhost/openice/demo.html), the 'Connecting..' status never changes.
Upon debugging, figured out that the generated 'openice.info.js' file is needed under the build folder. Downloaded the same from the OpenICE website (https://www.openice.info/demo.html) and then I started getting the following 404 error trace
http://localhost/socket.io/?EIO=3&transport=polling&t=1427954861373-0
I don't have NodeJs server running on my machine as I presently don't have any insights on how to use it for OpenICE locally.
Any help is highly appreciated.
Thanks.
I have cloned the OpenICU (master) branch on my Win-7 and hosted it on IIS7.5. When I visit the OpenICU Webdemo page of hosted website (http://localhost/openice/demo.html), the 'Connecting..' status never changes.
Upon debugging, figured out that the generated 'openice.info.js' file is needed under the build folder. Downloaded the same from the OpenICE website (https://www.openice.info/demo.html) and then I started getting the following 404 error trace
http://localhost/socket.io/?EIO=3&transport=polling&t=1427954861373-0
I don't have NodeJs server running on my machine as I presently don't have any insights on how to use it for OpenICE locally.
Any help is highly appreciated.
Thanks.
Customer support service by UserEcho
The file 'build/openice.info.js' is generated from src/openice.info.js with browserify. This is a tool that allows us to use node.js style dependency management in the browser. Further we typically invoke this tool through a task runner called grunt.
So after checking out the code, from the root of the repository, 'grunt' must be invoked. And you should see a result like:
This will populate the required javascript files in the build/ folder. After any subsequent changes to files in the src/ folder grunt must be invoked again. Alternatively a call to 'grunt watch' will detect changes in files and automatically run the required tasks. This is useful during development.
Opening demo.html from your own filesystem should now succeed in retrieving data (though not video) from our development environment (https://dev.openice.info) by virtue of this line in src/openice.info.js:
Support for our extensive java code base (http://mdpnp.sourceforge.net) in addition to these HTML5 artifacts is just fraction of the responsibilities of our small grant-funded team. As a result we are not 'supporting' the rather complex and experimental server-side components that feed this data to javascript clients from DDS. If you have a particular interest in helping to test and further develop those components please let me know. I'm receptive to the help; I'm only trying to prevent more people suffering lengthy delays in hearing from one of us.
Please let me know if this information was helpful to you.
Thank you
Jeff Plourde
Thanks for the instructions. I followed the instructions and setup the code as mentioned. I started a static http-server installed through npm and hosted the code. I am able to browse through the page but getting errors with Socket.IO.
[Thu, 14 May 2015 04:49:42 GMT] "GET /socket.io/?EIO=3&transport=polling&t=1431578982613-358" Error (404): "Not found"
If my understanding is fair, then the code is running as a socket client. In that case, which of the component acts as a socket server.
Could you please help?
Thank you
Jegan Kunniya
If you are running an http-server to serve content to your local openice webpage, the site will try to establish socket.io connections to that server, which will fail. When openice.info is typically loaded via the browser on the internet, the socket server runs on a machine in our lab that is also a DDS participant that connects to the lab network and serves the device data. If you load the local page into your browser from the file system, your local machine will connect to our lab's server and show the same content that https://OpenICE.info/diagnostics.html displays.
What is your research project? With more information about what you are trying to achieve we can help you better. Depending on your intended use, you may be better off using OpenICE project (not the website).
Thanks,
Jeff
I am trying to come up with a web-page that reads data from my locally hosted DDS? Is there any sample code available for that?
Thanks
Jegan Kunniya
To interface DDS with the web, we suggest either building your own integration using whichever DDS distribution license you already have or checking out a DDS vendor's product for this purpose. One such product is PrismTech Vortex Web (http://www.prismtech.com/vortex/vortex-web). Let me know if you have any additional questions.
Thanks,
Jeff
I've been able to connect with your socket.io server at openice site with my own nodejs primitive code. Could you provide more information about your server? Is there any protocol for receiving data? Which messages should I send to your server or listen to in order to start getting data from openice?
Thanks,