Giter Club home page Giter Club logo

motivation-text's Introduction

Motivation Test

This is made to send you a motivational text in the morning. It uses the affirmations api.

1. Install dependencies by

pip install -r requirements.txt

2. Get credentials.json from Gmail API, and add to folder

Make sure to set the callback uri to: http://localhost:3000/

Example of 'credentials.json':

{"web":{"client_id":"<id>","project_id":"<id>","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"<secret>","redirect_uris":["http://localhost:3000/"]}}

3. Configure your settings in utils.py.

phone_number = '5555555555' # your phone number
scheduled_time = '01:20'  # make sure the hour has 2 digits (24-hour standard).
email = '[email protected]' # your email
carriers = {
    'att': '@txt.att.net',
    'sprint': '@messaging.sprintpcs.com',
    'tmobile': '@tmomail.net',
    'verizon': '@vtext.com'
} # these are the carrier options for SMS
mac = True # set this flag if you want to send the message with iMessage or not. True for iMessage False for SMS
carrier = carriers['att'] # select your carrier

4. Run script

python main.py

motivation-text's People

Contributors

adhikary97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.