This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
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.
- Download and install Pushbullet,
- Create account and/or login.
- Being logged-in, navigate here,
- Create a hard to guess and long
tag
, - Optionally, fill-in
name
,description
andimage
, - Press
Create channel
.
Example
tag
(don't use this one):
joinmarket-J332jEBgAsFUzicLYddP-ZtMz9vxbfiIAqAT0rM27
- Being logged in, navigate here,
- Scroll down and press
Create access token
, - Copy the
token
.
- Navigate here,
- 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
- Open
./joinmarket/maker.py
- 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!):
- Open
./pushbullet.py
, - Set
CHANNEL
to yourtag
from Step_1, - Set
TOKEN
to yourtoken
from Step_2, - Set
CURRENCY
to eitherUSD
,EUR
orGBP
, - Change
SATOSHI
toFalse
if you prefer getting notifications with BTC as a unit.
Restart your yield generator script and you should be done.