Blocmaps utility
Created by: cschloer
https://blocpower.myjetbrains.com/youtrack/issue/BM-41
For use with the blocmaps PR https://github.com/Blocp/blocmaps/pull/72
New environment variables:
# Automate config
AUTOMATE_EMAIL_SENDING_ADDRESS = "info@blocpower.org"
AUTOMATE_EMAIL_RECEIVING_ADDRESS = "you@blocpower.org"
AUTOMATE_EMAIL_SENDING_PASSWORD = $LOOK_UP_PASSWORD
AUTOMATE_EMAIL_SENDING_SMTP = 'smtp.gmail.com'
AUTOMATE_EMAIL_SENDING_PORT = '587'
# URLs for sending emails about accounts
BLOCLINK_URL = 'http://localhost:8001'
DASHBOARD_URL = 'http://localhost:5501'
Added an automate filter param for the account endpoint that automatically runs scrape/disaggregate when a bill is submitted and sends an email to the emails specified in the config file.
I also removed standard_login_need from the account POST endpoint so that BlocMaps can talk to it (until we set up Auth0 service to service @alessandrodimarco maybe a bpvalve change? https://auth0.com/docs/api-auth/grant/client-credentials)