How to use the Task Planner to send a report via email

29 Jun 2022

This article describes how to use the Flexy planner to send reports on tags in an email.

 

APPLICABLE PRODUCTS

Ewon Flexy

 

PRE-REQUISITES

Flexy must be setup and connected to the internet.

SMTP Relay needs to be setup. Document for setup can be found here

 

IN THIS ARTICLE

This section lists the specific major sections in this article.

 

 

Planner Time Interval

 
Once logged into the Flexy Web configuration the Planner can be found in Setup>System>Main>General>Planner.
Emails are sent using a time interval which uses Cron format. For example a time interval of 0 4 * * * would trigger the planner every day at 4 AM.

For assistance creating the "time interval" a third party site crontab.guru is a good resource. 

chrome_knZ2WOAxG6.png

 

 

Email setup

 

Click "edit" to open the email configuration page. Check the Enable box in the email upon section. Enter email addresses in the Email to or Email cc sections.  Multiple address are accepted, with each additional email address separated by a comma.  

The Email attachment sections is used to add Export Block descriptors such as tag reports. As an example $dtTL$ftT$fnTagList is used to send a text document called TagList that contains a list of all tags on the Flexy.

 

chrome_5nW8E40j7W.png

 

Add Report using Export Block Descriptor

 

Resources for export Block descriptor can be found here. Once complete, put into the email attachment:
&[ export block descriptor]

Then press "update" at the bottom of the page.

The email can be tested ahead of scheduled time by pressing the “force” button in the main Planner menu.

 


 

 

 

ADDITIONAL INFO 

Document for SMTP setup using Talk2m Relay

3rd party site that helps build a cron Syntax for time interval

Export Block Descriptor Resources

Information on the Export block descriptor

Helper for building and testing descriptor