config.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ### --------- PROGRAMM CONFIGUARTION
  2. programm_cooldown_time = 15 # Programm cooldown timer in minutes
  3. api_cooldowm_time = 0.1 # API cooldown timer in minutes
  4. trmnl_granularity = 70 # Days in between two data points in the TRMNL chart
  5. ### Logging
  6. selected_logging_level = "warning" # must be one from the list below
  7. logging_levels = ("none", "error", "success", "warning", "info", "debug") # ordered by amount of logs
  8. class log_colors:
  9. # Code for start of coloring (MUST match logging-levels above)
  10. error = '\033[91m'
  11. warning = '\033[93m'
  12. success = '\033[92m'
  13. info = '\033[90m'
  14. debug = '\033[4m'
  15. # Code for end of coloring
  16. endcode = '\033[0m'
  17. # Fuctionality
  18. update_notion = True
  19. update_TRMNL = True
  20. ### --------- API CONFIGURATION
  21. # NOTION
  22. notion_token = "secret_b7PiPL2FqC9QEikqkAEWOht7LmzPMIJMWTzUPWwbw4H"
  23. notion_headers = {
  24. "Authorization": "Bearer " + notion_token,
  25. "Content-Type": "application/json",
  26. "Notion-Version": "2022-02-22"
  27. }
  28. notion_db_id_trades = "95f7a2b697a249d4892d60d855d31bda"
  29. notion_db_id_investments = "2ba10a5f51bd8160ab9ee982bbef8cc3"
  30. notion_db_id_performance = "1c010a5f51bd806f90d8e76a1286cfd4"
  31. # TRMNL
  32. trmnl_headers = {"Content-Type": "application/json"}
  33. trmnl_url_chart_1 = "https://usetrmnl.com/api/custom_plugins/334ea2ed-1f20-459a-bea5-dca2c8cf7714"
  34. trmnl_url_chart_2 = "https://usetrmnl.com/api/custom_plugins/72950759-38df-49eb-99fb-b3e2e67c385e"