Skip to content

Azure function to collect utility information in Azure Blob Storage

Notifications You must be signed in to change notification settings

TheGreenToaster/MLGWDownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLGW Download

This repository is an Azure Function that downloads meter readings from Memphis Light Gas & Water and saves it to a CSV file in Azure Blob Storage

Logic

When the function is executed it gets retrieves the data from the previous day and appends it to files in the specified Azure Storage Container.

The data is saved into files based on the meter name.

If no file exists for the meter one is created with a header line

There is no logic to prevent duplicate data. So if the function is run more than once a day duplicate data will be collected.

Required Environment Variables

How to set environment variables in Azure Functions for local testing or productive use

Variable description
MLGW_USERNAME Your MLGW Username
MLGW_PASSWORD Your MLGW Password
STORAGE_CONNECTIONSTRING Connection string used to connect to the desired Azure Storage Account
STORAGE_CONTAINER Name of the storage container inside the Azure storage account. Note: Container will needs to exist before script execution

About

Azure function to collect utility information in Azure Blob Storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages