Hello there, and I hope all of you are fine.
I have pixy camera with robot. The software for this camera is on the local disc and it works on ubuntu gnome terminal without any problem. the matter I want to start this software from a button on node red dashboard. I tried many times without success. I have even used exec node with python and sh file in order to launch the pixymon file as command from the dashboard but doesn’t work. Dear colleagues, if any solution is available, please i’m in need in my study. Thank in advance
To save time from people making suggestions that you have already tried, what are the things you have tried?
As to using the exec node, did you get any errors? did you put debug nodes on the outputs of the exec to show what was happening?
what platform are yu running this on?
What version of NR, and Node?
What are you also trying to achieve?
Do you want to “Launch a PixyMon camera in iframe” as you say in the subject of the post
or do you want to “start this software from a button on node red dashboard.” as you say in the text?
Good day zenofmud and ukmoose and all people connecting at this time and thank you both for your responses. I’m working on this subject for long time with node red but I didn’t get the resolve this issue. So I need help:
Well exactly I want to: start the software of pixy camera (PixyMon) with from the dashboard and I would get the live stream of this camera in an iframe on the same dashboard (from where I can configure and set signature for this pixy camera).
I have tried everything I know and surely I have put a debug node to see what happening beside. But, I got many error messages such us the followings:
Using the exec node, big exec, exec function, python function or pythonshell nod getting this mirror message:
“PixyMon: cannot connect to X server ↵”
{ code: 1, message: “Command failed: /home/nasreddi…” }
I’m running this on Ubuntu 16.04 LTS platform.
Node red version : V0.18.5
Node.js version : V8.11.2
Thank you in advance.
Does PixyMon run in a web browser?
Hello Mr zenofmud
No, it doesn’t. It runs separately just like any other software.
Thank you.
How do you expect it to run in an iframe? An iframe imbeds another html document.
I assume pixi cam has an usb interface? If so, connect it to a RPi, install Motion as SW https://motion-project.github.io/
Then you can stream your video feed via a web server hosted by Motion, normally on port 8081 for the first camera and 8082 for the second etc. I do that like in the below html example (copy from my Dashboard template node).
You have to configure the ip and port numbers and number of rows/frames you need. In my case, I have 7 usb cameras presented on two rows in one view, each video stream is within its frame
<html>
<center>
<table>
<!-- put the ip address of your Pi's in this line: -->
<tr><!-- Row 1 -->
<td style="text-align: center"><img src="http://192.168.10.236:8082/" width="460px"/></td>
<td style="text-align: center"><img src="http://192.168.10.238:8081/" width="460px"/></td>
<td style="text-align: center"><img src="http://192.168.10.235:8081/" width="460px"/></td>
<td style="text-align: center"><img src="http://192.168.10.238:8082/" width="460px"/></td>
</tr>
</table>
<table>
<!-- put the ip address of your Pi's in this line: -->
<tr><!-- Row 2 -->
<td style="text-align: center"><img src="http://192.168.10.236:8081/" width="460px"/></td>
<td style="text-align: center"><img src="http://192.168.10.237:8082/" width="460px"/></td>
<td style="text-align: center"><img src="http://192.168.10.237:8081/" width="460px"/></td>
</tr>
</table>
</center>
</html>