Skip to content

dthaler/youve-got-whale

Repository files navigation

You've Got Whale

Azure Functions app that sends email alerts when whale detections cluster at a configured hydrophone node.

Configuration

Copy NotificationFunction/local.settings.json.example to NotificationFunction/local.settings.json for local development and set these values:

Variable Required Default Purpose
AzureWebJobsStorage Yes Azure Functions storage connection
FUNCTIONS_WORKER_RUNTIME Yes dotnet-isolated Azure Functions worker runtime
CosmosDbConnection Yes Cosmos DB connection string
CosmosDbDatabase No detections Cosmos DB database name
CosmosDbContainer No metadata Cosmos DB container name
StorageConnection Yes Azure Table Storage connection string
SenderEmail Yes AWS SES sender address
AwsRegion No us-west-2 AWS region for SES
NODE_NAME Yes Hydrophone location name to monitor
EMAIL_DESTINATION Yes Notification recipient
NOTIFICATION_PERIOD_MINUTES No 60 Minimum time between notifications
DETECTION_PERIOD_MINUTES No 15 Detection lookback window

Build

cd NotificationFunction
dotnet build

Test

dotnet test NotificationFunction.sln

About

Azure Function to send notifications when there are whale detections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages