A simple C# Azure Function that generates a weather photo based on the current weather conditions using Queues and Blob Storage.
Images are fetched from the Unsplash API and weather data is fetched from Buienradar.
This project was created as an assignment for the course Cloud Computing at the InHolland University of Applied Sciences.
- .NET 8
- Azure Functions Core Tools
- Azurite (for local development)
- .NET IDE (Rider, Visual Studio, Visual Studio Code)
- Microsoft Azure account (for deployment)
- Fork this repository
- Grab yourself azurite:
npm install -g azurite
- Start azurite with runAzurite.sh
- Setup
local.settings.json
. Provide the following keys:AzureWebJobsStorage
- connection string to the azurite storage accountBuienradarApiUrl
- the URL to the Buienradar API (base URL)UnsplashApiUrl
- the URL to the Unsplash API (base URL)UnsplashAccessKey
- the access key to the Unsplash APIWeatherPhotoContainer
- the name of the container in the storage account where the weather photos are stored
- Open the project in IDE (in this case, Rider)
- Start the function app
- ???
- Profit!
See api.http
for example requests.
Simply run ./deploy.ps1
. You may want to change the resource group and function app name in the script.
This project is licensed under the PLv1.0 license. See LICENSE.md
for more information.