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.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Downloading Folders saved on ctrlX through Node-RED

Downloading Folders saved on ctrlX through Node-RED

huhnalex
New Poster

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

9 REPLIES 9

AndreasL
New Contributor

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?

 

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?

 

 

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):

AndreasL_0-1688990641367.png

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

 

 

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.

 

Sgilk
Frequent Contributor

See this post on working with the REST API of the ctrlX CORE. It discusses authorization in step 2.

ctrlX CORE REST API 

CodeShepherd
Community Moderator
Community Moderator

See also the get token example on github. It is also part of the examples inside of Node-RED see "How to import examples".

MauroRiboniMX
Contributor

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!

@huhnalex Are there any news? Is this still an issue? Or can this topic be closed?

Topic can be closed
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist