import time import os MYHOME_API_KEY = '5f4bc74f-8d9a-41cb-ab85-a1b7cfc86622' BASE = 'https://api.myhome.ie' GCLOUD_API_KEY = os.getenv('IEP_GCLOUD_KEY') DB_PATH = 'data.db' MONITORED_LOCALITIES = [ 1265, # Co Dublin 4011, # Co Wicklow # 3587, # Co Tipp 2362, # Co Kildare 2535, # Co Louth 2712, # Co Meath ] # (SW, NE) MONITORED_BBOXES = { '1 Overall': ((53, -6.9), (53.85, -5.9)), '2 Clontarf': ((53.360213,-6.209679), (53.386021,-6.138611)), '3 Howth': ((53.355553,-6.108301), (53.397744,-6.031430)), '4 Malahide estuary': ((53.450280,-6.190388), (53.456924,-6.158301)), '5 Skerries': ((53.562193,-6.157150), (53.588490,-6.088829)), '6 Dalkey, Killiney': ((53.265768,-6.127407), (53.290505,-6.081422)), '7 Sutton': ((53.385008,-6.128441), (53.394119,-6.088246)), } VISUALIZED_BBOXES = {k: v for k, v in MONITORED_BBOXES.items() if k != 'Overallx'} WORKPLACE = (53.353361,-6.247984) WORKPLACE_TARGET_TIME = 1540893600 # tue 10:00 while WORKPLACE_TARGET_TIME < time.time(): WORKPLACE_TARGET_TIME += 7*24*3600 MIN_PRICE = 150000 MAX_PRICE = 1500000 SEARCH_PARAMS = { 'ChannelIds': [1], # 'Destinations': [], # 'EnergyRatings': [], 'GroupIds': [], # 'IsAuction': "", # 'IsSaleAgreed': "", # 'IsSold': False, 'LocalityIds': [], # 'MaxBeds': "", # 'MaxEnergyRating': "", 'MaxPrice': str(MAX_PRICE), 'MaxSize': "", # 'MinBathrooms': "1", # 'MinBeds': "2", 'MinEnergyRating': "", 'MinPrice': str(MIN_PRICE), 'MinSize': "", 'NegotiatorIds': [], 'PreSixtyThree': False, 'PropertyClassId': "", 'PropertyClassIds': [1], 'PropertyIds': [], 'PropertyStatusIds': [2, 12], 'PropertyTypeIds': [], 'Query': "", 'RegionGroup': 2168, 'RegionId': None, # to be set to a locality id 'SaleTypeIds': [], 'SearchContent': False, 'SortBy': "Most Recent", 'UseFreeTextSearchForKeywords': False, }