Skip to content

Commit

Permalink
Messages from demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JimCircadian committed Feb 1, 2023
1 parent 4c819a7 commit fa489eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion azfunctions/EventGridProcessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ def main(event: func.EventGridEvent):
})

logging.info('Python EventGrid trigger processed an event: %s', event.subject)

# Upload and consume configuration for rule processing based on it
# https://github.com/Azure-Samples/communication-services-python-quickstarts/blob/main/send-email/send-email.py

message = "Forecast: {}".format(event.subject)
message = """Forecast: {} has SIC threshold changes that are of concern,
please review latest forecast in the icenet-gui!""".format(event.subject)
from_addr = "[email protected]"
to_addr = os.environ["DESTINATION_EMAIL"] \
if "DESTINATION_EMAIL" in os.environ else "[email protected]"
Expand Down
2 changes: 2 additions & 0 deletions azfunctions/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
# https://azure.github.io/azure-sdk/releases/latest/index.html#python
azure-functions
azure-communication-email
# git+https://github.com/icenet-ai/[email protected]_dev
xarray

0 comments on commit fa489eb

Please sign in to comment.