-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py.skel
29 lines (25 loc) · 1.05 KB
/
config.py.skel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Skeleton file for configuration. The variables in this file will be
different for any user, and may be secret"""
# API keys for OWM and Datapoint. Both are expected to be strings
OWM_API_KEY = 'Your key here'
DATAPOINT_API_KEY = 'Your key here'
# Variables for the email
# The url for the mail host, e.g. smtp.gmail.com. Expected to be a string
MAIL_HOST = 'smtp.gmail.com'
# The port to contact the host on, e.g. 465. Expected to be a number
MAIL_PORT = 465
# The user to connect to the mail host as
MAIL_USER = '[email protected]'
# The password for the user.
MAIL_PASSWD = 'password'
# Email address(es) to send alerts to. Either a string or a list of strings
MAIL_TO = '[email protected]'
# Address to use for the from field in the email header. May be ignored by the
# host
MAIL_FROM = 'frost_alert@pi'
# Latitude / Longitude decimal coordinates of the location to receive alerts
# for. The location shown is for Greenwich Observatory.
LATITUDE = 51.4778
LONGITUDE = -0.0014
# Allow for setting log level, can be set by an environment variable
LOG_LEVEL = "WARNING"