-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_template.py
50 lines (40 loc) · 1014 Bytes
/
settings_template.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
MSK PULSE SETTINGS
- databases credentials
- SM credentials
- city location
- sliding window size
"""
# MySQL
MYSQL_USER = ''
MYSQL_PASSWORD = ''
MYSQL_HOST = ''
MYSQL_DB = ''
# Redis
REDIS_HOST = ''
REDIS_PORT = 0
REDIS_DB = 0
# Twitter credentials
TW_CONSUMER_KEY = ''
TW_CONSUMER_SECRET = ''
TW_ACCESS_TOKEN_KEY = ''
TW_ACCESS_TOKEN_SECRET = ''
# Instagram credentials
IG_ACCESS_TOKEN = ''
# VKontakte credentials
VK_ACCESS_TOKEN = ''
# Telegram bot and analytics tokens
TELEGRAM_BOT_TOKEN = ''
TELEGRAM_ANALYTICS_TOKEN = ''
# Locations
# specify geojson file
BOUNDS_FILE = 'msk.geojson'
from utilities import get_locations
BOUNDS, BBOX, TW_LOCATIONS, VK_LOCATIONS, IG_LOCATIONS = get_locations(bfile = BOUNDS_FILE)
# or bbox: simplified version
# BBOX = [lng min, lat min, lng max, lat max]
# BOUNDS, BBOX, TW_LOCATIONS, VK_LOCATIONS, IG_LOCATIONS = get_locations(bbox = BBOX)
# Sliding window size in seconds: default = 1 hour
TIME_SLIDING_WINDOW = 3600