<gh_stars>0
#!/usr/bin/python2.7

##############################################################################
# Global settings
##############################################################################

# Describes all the garage doors being monitored
GARAGE_DOORS = [
#    {
#        'pin': 16,
#        'name': "Garage Door 1",
#        'alerts': [
#            {
#                'state': 'open',
#                'time': 120,
#                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ]
#            },
#            {
#                'state': 'open',
#                'time': 600,
#                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ]
#            }
#        ]
#    },

    {
        'pin': 15,
        'name': "Example Garage Door",
        'alerts': [
#            {
#                'state': 'open',
#                'time': 120,
#                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ]
#            },
#            {
#                'state': 'open',
#                'time': 600,
#                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ]
#            }
        ]
    }
]

# All messages will be logged to stdout and this file
LOG_FILENAME = "/var/log/pi_garage_alert.log"

##############################################################################
# Email settings
##############################################################################

SMTP_SERVER = 'localhost'
SMTP_PORT = 25
SMTP_USER = ''
SMTP_PASS = ''
EMAIL_FROM = 'Garage Door <<EMAIL>>'
EMAIL_PRIORITY = '1'
# 1 High, 3 Normal, 5 Low

##############################################################################
# Cisco Spark settings
##############################################################################

# Obtain your access token from https://developer.ciscospark.com, click
# on your avatar at the top right corner.

SPARK_ACCESSTOKEN = "" #put your access token here between the quotes.

##############################################################################
# Twitter settings
##############################################################################

# Follow the instructions on http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth/
# to obtain the necessary keys

TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
TWITTER_ACCESS_KEY = ''
TWITTER_ACCESS_SECRET = ''

##############################################################################
# Twilio settings
##############################################################################

# Sign up for a Twilio account at https://www.twilio.com/
# then these will be listed at the top of your Twilio dashboard

TWILIO_ACCOUNT = ''
TWILIO_TOKEN = ''

# SMS will be sent from this phone number
TWILIO_PHONE_NUMBER = '+11234567890'

##############################################################################
# Jabber settings
##############################################################################

# Jabber ID and password that status updates will be sent from
# Leave this blank to disable Jabber support

JABBER_ID = ''
JABBER_PASSWORD = ''

# Uncomment to override the default server specified in DNS SRV records

#JABBER_SERVER = 'talk.google.com'
#JABBER_PORT = 5222

# List of Jabber IDs allowed to perform queries

JABBER_AUTHORIZED_IDS = []

##############################################################################
# Google Cloud Messaging settings
##############################################################################

GCM_KEY = ''
GCM_TOPIC = ''

##############################################################################
# IFTTT Maker Channel settings
# Create an applet using the "Maker" channel, pick a event name,
# and use the event name as a recipient of one of the alerts,
# e.g. 'recipients': [ 'ifft:garage_event' ]
#
# Get the key by going to https://ifttt.com/services/maker/settings.
# The key is the part of the URL after https://maker.ifttt.com/use/.
# Do not include https://maker.ifttt.com/use/ in IFTTT_KEY.
##############################################################################

IFTTT_KEY = ''

##############################################################################
# Slack settings
# Send messages to a team slack channel
# e.g. 'recipients': [ 'slack:<your channel ID>']
#   where <your channel ID> is the name or ID of the slack channel you want to
#   send to
#
# To use this functionality you will need to create a bot user to do the posting
# For information on how to create the bot user and get your API token go to:
#   https://api.slack.com/bot-users
#
# Note that the bot user must be added to the channel you want to post
# notifications in
##############################################################################
SLACK_BOT_TOKEN = ''

##############################################################################
# Hue settings
# Control a Philips Hue light for alerts and activating lights
# e.g. 'recipients': [ 'hue_on:<your light>' ] or [ 'hue_off:<your light>' ]
# where <your light> is the name of an individual light or group of lights such
# as a room that you wish to turn on using hue_on or turn off using hue_off
# 
# HUE_BRIDGE_ADDRESS is the IP of your Hue Bridge
# HUE_USER_ID is the ID assigned to you by the Hue Bridge. See developers.meethue.com
# for further details on how to obtain this.
# HUE_LIGHT_NAME is the name of an individual light or group as configured in
# Philips Hue that you want to use for the alert
# HUE_LIGHT_HUE is the value of the colour hue setting you want for the alert,
# with valid values from 0 to 65535
# HUE_LIGHT_SAT is the value of the saturation you want for the alert, with valid
# values from 0 to 254
# HUE_LIGHT_BRI is the value of the brightness you want for the alert, with valid
# values from 0 to 254
##############################################################################
HUE_BRIDGE_ADDRESS = '192.168.0.27'
HUE_USER_ID = ''
HUE_LIGHT_NAME = '<NAME>'
HUE_LIGHT_HUE = 65524
HUE_LIGHT_SAT = 254
HUE_LIGHT_BRI = 254

#!/usr/bin/python2.7

##############################################################################
# Global settings
##############################################################################

# Describes all the garage doors being monitored
GARAGE_DOORS = [
#    {
#        'pin': 16,
#        'name': "Garage Door 1",
#        'alerts': [
#            {
#                'state': 'open',
#                'time': 120,
#                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ]
#            },
#            {
#                'state': 'open',
#                'time': 600,
#                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ]
#            }
#        ]
#    },

    {
        'pin': 15,
        'name': "Example Garage Door",
        'alerts': [
#            {
#                'state': 'open',
#                'time': 120,
#                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ]
#            },
#            {
#                'state': 'open',
#                'time': 600,
#                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ]
#            }
        ]
    }
]

# All messages will be logged to stdout and this file
LOG_FILENAME = "/var/log/pi_garage_alert.log"

##############################################################################
# Email settings
##############################################################################

SMTP_SERVER = 'localhost'
SMTP_PORT = 25
SMTP_USER = ''
SMTP_PASS = ''
EMAIL_FROM = 'Garage Door <<EMAIL>>'
EMAIL_PRIORITY = '1'
# 1 High, 3 Normal, 5 Low

##############################################################################
# Cisco Spark settings
##############################################################################

# Obtain your access token from https://developer.ciscospark.com, click
# on your avatar at the top right corner.

SPARK_ACCESSTOKEN = "" #put your access token here between the quotes.

##############################################################################
# Twitter settings
##############################################################################

# Follow the instructions on http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth/
# to obtain the necessary keys

TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
TWITTER_ACCESS_KEY = ''
TWITTER_ACCESS_SECRET = ''

##############################################################################
# Twilio settings
##############################################################################

# Sign up for a Twilio account at https://www.twilio.com/
# then these will be listed at the top of your Twilio dashboard

TWILIO_ACCOUNT = ''
TWILIO_TOKEN = ''

# SMS will be sent from this phone number
TWILIO_PHONE_NUMBER = '+11234567890'

##############################################################################
# Jabber settings
##############################################################################

# Jabber ID and password that status updates will be sent from
# Leave this blank to disable Jabber support

JABBER_ID = ''
JABBER_PASSWORD = ''

# Uncomment to override the default server specified in DNS SRV records

#JABBER_SERVER = 'talk.google.com'
#JABBER_PORT = 5222

# List of Jabber IDs allowed to perform queries

JABBER_AUTHORIZED_IDS = []

##############################################################################
# Google Cloud Messaging settings
##############################################################################

GCM_KEY = ''
GCM_TOPIC = ''

##############################################################################
# IFTTT Maker Channel settings
# Create an applet using the "Maker" channel, pick a event name,
# and use the event name as a recipient of one of the alerts,
# e.g. 'recipients': [ 'ifft:garage_event' ]
#
# Get the key by going to https://ifttt.com/services/maker/settings.
# The key is the part of the URL after https://maker.ifttt.com/use/.
# Do not include https://maker.ifttt.com/use/ in IFTTT_KEY.
##############################################################################

IFTTT_KEY = ''

##############################################################################
# Slack settings
# Send messages to a team slack channel
# e.g. 'recipients': [ 'slack:<your channel ID>']
#   where <your channel ID> is the name or ID of the slack channel you want to
#   send to
#
# To use this functionality you will need to create a bot user to do the posting
# For information on how to create the bot user and get your API token go to:
#   https://api.slack.com/bot-users
#
# Note that the bot user must be added to the channel you want to post
# notifications in
##############################################################################
SLACK_BOT_TOKEN = ''

##############################################################################
# Hue settings
# Control a Philips Hue light for alerts and activating lights
# e.g. 'recipients': [ 'hue_on:<your light>' ] or [ 'hue_off:<your light>' ]
# where <your light> is the name of an individual light or group of lights such
# as a room that you wish to turn on using hue_on or turn off using hue_off
# 
# HUE_BRIDGE_ADDRESS is the IP of your Hue Bridge
# HUE_USER_ID is the ID assigned to you by the Hue Bridge. See developers.meethue.com
# for further details on how to obtain this.
# HUE_LIGHT_NAME is the name of an individual light or group as configured in
# Philips Hue that you want to use for the alert
# HUE_LIGHT_HUE is the value of the colour hue setting you want for the alert,
# with valid values from 0 to 65535
# HUE_LIGHT_SAT is the value of the saturation you want for the alert, with valid
# values from 0 to 254
# HUE_LIGHT_BRI is the value of the brightness you want for the alert, with valid
# values from 0 to 254
##############################################################################
HUE_BRIDGE_ADDRESS = '192.168.0.27'
HUE_USER_ID = ''
HUE_LIGHT_NAME = '<NAME>'
HUE_LIGHT_HUE = 65524
HUE_LIGHT_SAT = 254
HUE_LIGHT_BRI = 254
#!/usr/bin/python2.7 ############################################################################## # Global settings ############################################################################## # Describes all the garage doors being monitored #    { #        'pin': 16, #        'name': "Garage Door 1", #        'alerts': [ #            { #                'state': 'open', #                'time': 120, #                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ] #            }, #            { #                'state': 'open', #                'time': 600, #                'recipients': [ 'sms:+11112223333', 'sms:+14445556666' ] #            } #        ] #    }, #            { #                'state': 'open', #                'time': 120, #                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ] #            }, #            { #                'state': 'open', #                'time': 600, #                'recipients': [ 'sms:+11112223333', 'email:<EMAIL>', 'twitter_dm:twitter_user', 'pushbullet:access_token', 'gcm', 'tweet', 'ifttt:garage_door' ] #            } # All messages will be logged to stdout and this file ############################################################################## # Email settings ############################################################################## # 1 High, 3 Normal, 5 Low ############################################################################## # Cisco Spark settings ############################################################################## # Obtain your access token from https://developer.ciscospark.com, click # on your avatar at the top right corner. #put your access token here between the quotes. ############################################################################## # Twitter settings ############################################################################## # Follow the instructions on http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth/ # to obtain the necessary keys ############################################################################## # Twilio settings ############################################################################## # Sign up for a Twilio account at https://www.twilio.com/ # then these will be listed at the top of your Twilio dashboard # SMS will be sent from this phone number ############################################################################## # Jabber settings ############################################################################## # Jabber ID and password that status updates will be sent from # Leave this blank to disable Jabber support # Uncomment to override the default server specified in DNS SRV records #JABBER_SERVER = 'talk.google.com' #JABBER_PORT = 5222 # List of Jabber IDs allowed to perform queries ############################################################################## # Google Cloud Messaging settings ############################################################################## ############################################################################## # IFTTT Maker Channel settings # Create an applet using the "Maker" channel, pick a event name, # and use the event name as a recipient of one of the alerts, # e.g. 'recipients': [ 'ifft:garage_event' ] # # Get the key by going to https://ifttt.com/services/maker/settings. # The key is the part of the URL after https://maker.ifttt.com/use/. # Do not include https://maker.ifttt.com/use/ in IFTTT_KEY. ############################################################################## ############################################################################## # Slack settings # Send messages to a team slack channel # e.g. 'recipients': [ 'slack:<your channel ID>'] #   where <your channel ID> is the name or ID of the slack channel you want to #   send to # # To use this functionality you will need to create a bot user to do the posting # For information on how to create the bot user and get your API token go to: #   https://api.slack.com/bot-users # # Note that the bot user must be added to the channel you want to post # notifications in ############################################################################## ############################################################################## # Hue settings # Control a Philips Hue light for alerts and activating lights # e.g. 'recipients': [ 'hue_on:<your light>' ] or [ 'hue_off:<your light>' ] # where <your light> is the name of an individual light or group of lights such # as a room that you wish to turn on using hue_on or turn off using hue_off # # HUE_BRIDGE_ADDRESS is the IP of your Hue Bridge # HUE_USER_ID is the ID assigned to you by the Hue Bridge. See developers.meethue.com # for further details on how to obtain this. # HUE_LIGHT_NAME is the name of an individual light or group as configured in # Philips Hue that you want to use for the alert # HUE_LIGHT_HUE is the value of the colour hue setting you want for the alert, # with valid values from 0 to 65535 # HUE_LIGHT_SAT is the value of the saturation you want for the alert, with valid # values from 0 to 254 # HUE_LIGHT_BRI is the value of the brightness you want for the alert, with valid # values from 0 to 254 ##############################################################################