How to make a button to export directly in the dashboard


#1

Hi !,

I need the node button in the dashboard for export a “data table log” of my device,
this is a raspberry pi 3 b and I’m programming it with python to communicate it with Losant.

I’m tried with next configuration of node’s :

Captura%20de%20pantalla%20de%202018-10-01%2013-53-46


#2

Hi Pedro,

There are several different ways of achieving this goal, but I think this is the simplest way.
First, create a workflow that uses a button as you have, and then use the Losant API Node to call data table rows export, which given an email address and a query will send an email with an attachment of the resulting data. After that add an Input Controls Block, add a control of type “Button Trigger”. Set the button trigger to trigger a “Workflow”, specify the name of the workflow you just created and the button to trigger the export.

Hope this helps,
Erin