Hello everyone,
as the title suggests, I am trying to use OpenHybrid for displaying machine-specific data (for example temperatures or whatever) . This data should afterwards be displayed in the RealityEditor as some kind of augmented reality GUI. My concept for this would be to create individual IO Points for every attribute I want to display (e.g. temperature, humidity…), dynamically create AR objects in the index.html and write the corresponding value from the database into that IO Point.
In the first step, I managed to connect the Arduino Yun, containing the OpenHybrid image, to a MongoDB Database and extract information out of it, using a Python Script which is called through another node.js script. Here I’ve encountered some issues as well, for example I tried to install different packets with the npm install command, but it failed with the error that I should call it with administrator privileges. I’ve SSHed into the Yun with the root account and even installed the sudo package with opkg to use the sudo command. Maybe there is a reason for this?
Furthermore, If I understood correctly here, the OpenHybrid image is blocking the Bridge function of the Arduino Yun, because it needs this communication path itself to exchange information beween the OpenHybrid server and the Sketch running on the 32U4.
I therefore wanted to ask if there is any way to pass the collected Information from the Database (lying around on the AR9331) and pass it on to the 32U4 to create the IO Points and to write the values in them. I am also not completely sure where the communication between the 2 processors is happening, but if I had to guess I’d say it is somewhere inside the server.js file.
I am quite new to node.js, that’s why I probably could not figure that out just by looking at your code.
I hope this is even possible at all!
Best regards!