Pushbullet

Service Description:

Your devices working better together

Nota : to be able to work, this service requires that your host uses HTTPS

modifications of settings.py

  1. INSTALLED_APPS :
INSTALLED_APPS = (
    'th_pushbullet',
)
  1. Cache :

After the default cache add :

CACHES = {
    'default':
    {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': BASE_DIR + '/cache/',
        'TIMEOUT': 600,
        'OPTIONS': {
            'MAX_ENTRIES': 1000
        }
    },
    # Pushbullet Cache
    'th_pushbullet':
    {
        'TIMEOUT': 500,
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379/12",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
        }
    },
  1. TH_SERVICES

add this line to the TH_SERVICES setting

TH_SERVICES = (
    'th_pushbullet.my_pushbullet.ServicePushbullet',
)
  1. The service keys

I strongly recommend that your put the following in a local_settings.py, to avoid to accidentally push this to a public repository

TH_PUSHBULLET = {
    # get your credential by subscribing to
    # https://www.pushbullet.com/#settings/clients
    'client_id': '<your pushbulet id>',
    'client_secret': '<your pushbulet secret>',
}

creation of the table of the services

enter the following command

python manage.py migrate

from the admin panel, activation of the service

from http://yourdomain.com/admin/django_th/servicesactivated/add/

  • Select “Pushbullet”,
  • Set the Status to “Enabled”
  • Check Auth Required: this will permit to redirect to the user (or you) to Pushbullet to ask to confirm the access to his/your Pushbullet account
  • Fill a description