FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
156 stars 35 forks source link

Export from db to CSV and download #1029

Open RyIot3329 opened 5 days ago

RyIot3329 commented 5 days ago

Description

I am not sure if this id possible already but I need to prepare a file for export to the browser using the browser download API. This would be a great feature or if it is already possible would love to see an example on how this could be done.

Have you provided an initial effort estimate for this issue?

This may already exist

joepavitt commented 3 days ago

So, just to check here, you're creating a file in Node-RED, you want to send that to Dashboard for download by a user?

RyIot3329 commented 3 days ago

Yeah, exactly.

Ryan

On Fri, Jun 28, 2024, 6:31 AM Joe Pavitt @.***> wrote:

So, just to check here, you're creating a file in Node-RED, you want to send that to Dashboard for download by a user?

— Reply to this email directly, view it on GitHub https://github.com/FlowFuse/node-red-dashboard/issues/1029#issuecomment-2196694107, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6PVU7HVY4PJTEZBV3YKBTLZJVCSLAVCNFSM6AAAAABJ6D5A4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGY4TIMJQG4 . You are receiving this because you authored the thread.Message ID: @.***>

Steve-Mcl commented 3 days ago

Hi @RyIot3329

This is something you can already do yourself.

Here is a demo of serving files from your Node-RED to a user on a dashboard:

https://flows.nodered.org/flow/db68bd4934cf46f39e6e453a348bc419

IMPORTANT: This is a Dashboard 1.0 example (not Dashboard 2.0) so the ui-template will need re-jigging but the important parts and the concept should set you off in the right direction.