FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-10-2023 08:42 AM
Hello community,
Does anybody have experiences with downloading files directly through Node-RED? Maybe also a whole folder.
I can read,create and write files but im failing to access the File System with a http node.
Or is it better to save the log data on an SD-Card anyways?
Thanks and Regards
Solved! Go to Solution.
07-10-2023 11:20 AM
I've stored files using both SMB and the FTP on remote PC:s.
And its also possible to store files on the core and upload via WebDAV or via the rest api of the core.
What are you trying to accomplish?
07-10-2023 01:35 PM
My goal is to select files and folders via the Dashboard and download them to the Host PC.
The Dashboard so far works. Its possible there to select, visualise and delete files but im struggling at the download part because i cant access my files.
I used webdav to get the files and folders "manually" for now but im looking for an automated solution.
How did you use SMB or FTP in Nodered?
07-10-2023 02:08 PM
You need to put the files in the "App Data Folders" to be able to download them, you can then trigger a download by doing a http request to this url (See how it's done in the "Manage App Data" view in the core's web interface):
Node that you'll need to do an auth request first with the username and password of the core (or even better, a new user that only can download theese files).
For SMB:
https://flows.nodered.org/node/node-red-contrib-smb
and FTP:
https://flows.nodered.org/node/node-red-contrib-ftp
07-10-2023 02:45 PM
My files are stored all in the "Manage app Data" directory of NodeRED.
How can i do the auth request and is there an specific example for the smb Node because I never worked with this protocol?
Did not find any ongoing topics for that.
07-10-2023 04:15 PM
See this post on working with the REST API of the ctrlX CORE. It discusses authorization in step 2.
07-19-2023 09:02 AM
See also the get token example on github. It is also part of the examples inside of Node-RED see "How to import examples".
08-29-2023 04:26 PM
Try to see https://developer.community.boschrexroth.com/t5/ctrlX-IOT/ctrl-x-core-Dateien-schreiben/m-p/79706#M3... .
There are some Examples that can be good for you 🙂 if not then i will do something that fits more!
11-14-2023 05:02 PM
@huhnalex Are there any news? Is this still an issue? Or can this topic be closed?
11-15-2023 09:54 AM