This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oops, I have no idea why I accidentally removed this.
- Loading branch information
1 parent
05fcbb8
commit ac54b1a
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# weatherBot keys | ||
# Copyright 2015-2016 Brian Mitchell under the MIT license | ||
# See the GitHub repository: https://github.com/bman4789/weatherBot | ||
|
||
import os | ||
|
||
|
||
keys = dict( | ||
consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | ||
consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | ||
access_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | ||
access_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | ||
forecastio_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | ||
) | ||
|
||
|
||
def set_twitter_env_vars(): | ||
if os.getenv('WEATHERBOT_CONSUMER_KEY', 0) is 0 or os.getenv('WEATHERBOT_CONSUMER_SECRET', 0) is 0 \ | ||
or os.getenv('WEATHERBOT_ACCESS_KEY', 0) is 0 or os.getenv('WEATHERBOT_ACCESS_SECRET', 0) is 0: | ||
os.environ['WEATHERBOT_CONSUMER_KEY'] = keys['consumer_key'] | ||
os.environ['WEATHERBOT_CONSUMER_SECRET'] = keys['consumer_secret'] | ||
os.environ['WEATHERBOT_ACCESS_KEY'] = keys['access_key'] | ||
os.environ['WEATHERBOT_ACCESS_SECRET'] = keys['access_secret'] | ||
|
||
|
||
def set_forecastio_env_vars(): | ||
if os.getenv('WEATHERBOT_FORECASTIO_KEY', 0) is 0: | ||
os.environ['WEATHERBOT_FORECASTIO_KEY'] = keys['forecastio_key'] |