Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Add Pushbullet notifications to your Yield Generator

Damian Mee edited this page Dec 26, 2016 · 1 revision

NOTE: This guide, just like Telegram notifications one, is for advanced users who are comfortable editing Python code (and can tell spaces from tabs apart ;)).

NOTE 2: Pushbullet doesn't offer encryption/authentication for messages published to channels, but given the level of sensitivity of this data, hiding it behind a hard to guess tag should be sufficient for most cases.

Step_0: Before you start

  1. Download and install Pushbullet,
  2. Create account and/or login.

Step_1: Create channel

  1. Being logged-in, navigate here,
  2. Create a hard to guess and long tag,
  3. Optionally, fill-in name, description and image,
  4. Press Create channel.

Example tag (don't use this one):

joinmarket-J332jEBgAsFUzicLYddP-ZtMz9vxbfiIAqAT0rM27

Step_2: Get your access token

  1. Being logged in, navigate here,
  2. Scroll down and press Create access token,
  3. Copy the token.

Step_3: Get the helper script

  1. Navigate here,
  2. Download that file and save it in joinmarket repo root.
# tl;dr:
$ cd PATH/TO/JOINMARKET/ && wget https://raw.githubusercontent.com/meeDamian/pushmarket/master/pushbullet.py

Step_4: Integrate

  1. Open ./joinmarket/maker.py
  2. Paste the code below to be just below line: log.info('earned = ' + str(self.real_cjfee - self.txfee))
        ### PUSHBULLET STUFF
        from pushbullet import notify_pushbullet
        notify_pushbullet(self.real_cjfee, self.txfee)
        ### PUSHBULLET END

So it looks something like (mind the indentation!):

Step_5: Configure

  1. Open ./pushbullet.py,
  2. Set CHANNEL to your tag from Step_1,
  3. Set TOKEN to your token from Step_2,
  4. Set CURRENCY to either USD, EUR or GBP,
  5. Change SATOSHI to False if you prefer getting notifications with BTC as a unit.

Step_6: Restart

Restart your yield generator script and you should be done.