Skip to content

ERTHIRTEEN/metabase-pulses

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabase Pulses

Send metabase pulses exactly as they're shown! This workaround a current metabase limitation due different render engines in the browser (view engine) and server (pulses engine).

This is a temporary project and should be considered obsolete when the following issue is implemented: Different chart rendered in pulse from question

Getting started

Complete the file config/default.json with your metabase and SMTP information.

{
    "smtp": {
        "host": "smtpHost",
        "user": "smtpUser",
        "password": "smtpPassword"
    },
    "metabase": {
        "url": "metabaseUrl",
        "user": "metabaseUser",
        "password": "metabasePassword"
    }
}

Use pulses.json file as template to define the pulses you want to send and to whom. You can define a list of pulses.

[{
    "mailTo":"[email protected], [email protected]",
    "questionIds" : [ "17", "21" ],
    "subject": "Pulses: weekly report"
}]

Then you can run it...

npm install
node index.js pulses.json

and set a cron tab using "crontab -e" command

SHELL=/bin/bash
HOME=/home/ubuntu/pulses
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

0 11 * * * node index.js pulses.json  > /homedir/pulses.log 2>&1

About

Metabase pulses notification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%