Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

dobesv/redash-scheduled-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redash report emailer

This was created to send a redash report on a weekly basis.

Setup

Make sure you have serverless installed, instructions here:

https://serverless.com/framework/docs/getting-started/

Create env.yaml following this template:

  # e.g. https://redash.vaultdrop.com/api/queries/<number>/results.csv?api_key=<api_key>
  CSV_URL: ....
  # API key from Mandrill dashboard
  MANDRILL_API_KEY: ...
  # Comma-seperated list of email addresses
  EMAIL_RECIPIENTS: ...
  # Sender name
  EMAIL_FROM_NAME: ...
  # Sender email
  EMAIL_FROM_EMAIL: ...
  # Subject
  EMAIL_SUBJECT: ...

To test your settings, run

serverless invoke local -f sendReportByEmail

If you're happy with the email, deploy it:

serverless deploy

And test the deployed version:

serverless invoice -f sendReportByEmail

Multiple reports

You can copy the sendReportByEmail function multiple times with different values / filenames if you need multiple emails to run with different reports or on different schedules.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published