Correct Filename to load from remote share drive

#1

Hi ,

I'm using motionEye to capture motion events and to store the evidence as jpg and mp4. I'm able to transfer the filename (\\192.168.1.173/share/camera1/LastMotion.mp4) to Node-Red. This filename works when used in any desktop app or browser to open the file.

Unfortunately, the node red file load says that the file does not exist. It only works for local files (/home/pi/shares/video.mp4).

Can anybody help? .. I do need to load the remote file into a node red buffer object.

thx for your help and ideas

0 Likes

#2

What exactly do you put in the browser URL? I do not think it is what you posted.
Also is that running the browser on the pi?

0 Likes

#3

sorry, the double "]" was not showing otherwise the filename as shown above is correct

  • The file share \\192.168.1.173/share/camera1/ is on a raspberry 3 running motionEye
  • Node-Red is running on another RPI (192.168.1.200)
  • the browser URL I have successfully tested on my WIN Chrome browser (same subnet as RPI)
0 Likes

#4

In the browser is it http://192...etc?
If so then it isn't a share and you will have to use an http node to fetch it. However if you have shared the folder using samba then you you should be able to mount the share as a folder on the node red pi and access it as a file. That is the way I would do it.

0 Likes

#5

Is a network share using SMB (Server Message Block - a Microsoft standard). To access that, you need SAMBA installed and configured. However, I've not tried the file node with a network file share - I think it should work.

0 Likes

#6

If this is really a network share then you may need you use \ to escape the \ characters - so \192. will become \\192.

If it's actually a url (you mention in bullet 3) then you may need an http request node instead of a file node.

0 Likes

#7

yes, the motionEye RPi is running Samba and sharing the according images. Unfortunately the file node is not able to access this file share.

I will try to mount the samba share onto NR.

0 Likes

#8

You will doubtless want to mount the share into your Pi's filing system. Then NR should have no issues.

0 Likes

#9

Yes, mounting the remote share to the Node-Red RPi has done the trick and I'm able to load the content.

thx a lot everyone

0 Likes