sjwaight/airsensorgateway
Simple .NET 6 Web API that acts as an Azure IoT Hub gateway for a Purple Air PA-II sensor.
42
This repository contains a simple HTTP-MQTT gateway that can be used with any PurpleAir PA-II air quality sensor to filter and send data on to an Azure IoT Hub instance.
While the PurpleAir devices have pre-configured (if undocumented) support for Azure IoT Hub, I was unable to get this functioning, so decided to go ahead an build this solution.
The source code for this solution can be found on GitHub.
When you run the application it expects the following four configuration items.
You may choose to limit events sent even though a PA-II device will send total events that fit within the free tier of Azure IoT Hub in any given month. There may be other upstream services you want to use that have lower limits (for example, Anomaly Detector).
docker pull sjwaight/airsensorgateway