Public | Automated Build

Last pushed: a month ago
Short Description
cl-rtm-projects-overview
Full Description

cl-rtm-projects-overview

Use Lisp and RTM Api to get list of stuck projects among other things

Timezone

Relies on /etc/localtime.

Not sure, if env TZ has any affect.

Quick fix inside Lisp

(local-time:define-timezone local-time:*default-timezone* "/usr/share/zoneinfo/Europe/Berlin" :load t)

c9

https://ide.c9.io/kisp/cl-rtm-projects-overview

https://cl-rtm-projects-overview-kisp.c9users.io/projects-report

Docker hub

https://hub.docker.com/r/kisp/cl-rtm-projects-overview/builds/

Generating HTML via Docker

HTML=`docker run -e RTM_API_KEY=$RTM_API_KEY -e RTM_SECRET=$RTM_SECRET -e RTM_TOKEN=$RTM_TOKEN -ti --rm kisp/cl-rtm-projects-overview`

Sending HTML mail via Mailgun

RTM_API_KEY=xxxxxxxxxxxxxxxxxxxxx
RTM_SECRET=xxxxxx
RTM_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx

MAILGUN_API_KEY=key-60xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAILGUN_DOMAIN=sandbox6xxxxxxxxxxxxxxxxxxxxxx.mailgun.org
MAILGUN_TO='Kilian Sprotte <kilian.sprotte@gmail.com>'
curl -s --user "api:$MAILGUN_API_KEY" \
  "https://api.mailgun.net/v3/$MAILGUN_DOMAIN/messages" \
  -F from="Mailgun Sandbox <postmaster@$MAILGUN_DOMAIN>" \
  -F to="$MAILGUN_TO" \
  -F subject='RTM Projects overview' \
  -F text='Congratulations, you just sent an email with Mailgun!  You are truly awesome!' \
  --form-string html="$HTML" >/dev/null
Docker Pull Command
Owner
kisp
Source Repository

Comments (0)