config.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import time
  2. import os
  3. MYHOME_API_KEY = '5f4bc74f-8d9a-41cb-ab85-a1b7cfc86622'
  4. BASE = 'https://api.myhome.ie'
  5. GCLOUD_API_KEY = os.getenv('IEP_GCLOUD_KEY')
  6. DB_PATH = 'data.db'
  7. MONITORED_LOCALITIES = [
  8. 1265, # Co Dublin
  9. 4011, # Co Wicklow
  10. # 3587, # Co Tipp
  11. 2362, # Co Kildare
  12. 2535, # Co Louth
  13. 2712, # Co Meath
  14. ]
  15. MONITORED_BBOX = (
  16. (53, -6.9),
  17. (53.75, -5.9),
  18. )
  19. WORKPLACE = (53.353361,-6.247984)
  20. WORKPLACE_TARGET_TIME = 1540893600 # tue 10:00
  21. while WORKPLACE_TARGET_TIME < time.time():
  22. WORKPLACE_TARGET_TIME += 7*24*3600
  23. SEARCH_PARAMS = {
  24. 'ChannelIds': [1],
  25. 'Destinations': [],
  26. 'EnergyRatings': [],
  27. 'GroupIds': [],
  28. 'IsAuction': "",
  29. 'IsSaleAgreed': "",
  30. 'IsSold': False,
  31. 'LocalityIds': [],
  32. 'MaxBeds': "",
  33. 'MaxEnergyRating': "",
  34. 'MaxPrice': "600000",
  35. 'MaxSize': "",
  36. 'MinBathrooms': "1",
  37. 'MinBeds': "2",
  38. 'MinEnergyRating': "",
  39. 'MinPrice': "100000",
  40. 'MinSize': "",
  41. 'NegotiatorIds': [],
  42. 'PreSixtyThree': False,
  43. 'PropertyClassId': "",
  44. 'PropertyClassIds': [1],
  45. 'PropertyIds': [],
  46. 'PropertyStatusIds': [2, 12],
  47. 'PropertyTypeIds': [],
  48. 'Query': "",
  49. 'RegionGroup': 2168,
  50. 'RegionId': None, # to be set to a locality id
  51. 'SaleTypeIds': [],
  52. 'SearchContent': False,
  53. 'SortBy': "Most Recent",
  54. 'UseFreeTextSearchForKeywords': False,
  55. }