NucuCar/NucuCar.Sensors
2019-11-17 16:33:24 +02:00
..
EnvironmentSensor Add support for Telemetry via Azure-IoT Hub 2019-11-17 15:29:33 +02:00
Properties Rename project Nucucar.BME680Sensor to NucuCar.Sensors 2019-11-09 19:23:07 +02:00
Telemetry Add support for Telemetry via Azure-IoT Hub 2019-11-17 15:29:33 +02:00
appsettings.Development.json Add gRPC support for NucuCar.Sensors project 2019-11-10 14:38:40 +02:00
appsettings.json Add support for Telemetry via Azure-IoT Hub 2019-11-17 15:29:33 +02:00
GrpcStartup.cs Generate SensorMeasurement and State using gRPC proto 2019-11-11 12:59:07 +02:00
NucuCar.Sensors.csproj Remove the certificates folder 2019-11-17 15:59:31 +02:00
Program.cs Scaffold for telemetry service 2019-11-14 16:45:32 +02:00
Readme.md Updating readme on telemetry 2019-11-17 15:45:44 +02:00

The service will gather sensor data and provide access to it via gRPC.

Telemetry

You can use cloud telemetry for free via Azure-IoT-Hub. You still need a backend application that will process the messages.

You will need to create a:

  • IoT Hub
  • IoT Device

Then navigate to your device and grab the primary key, you will need it to create a connection string of the form:

HostName=YOUR_IOT_HUB_NAME.azure-devices.net;DeviceId=YOUR_DEVICE_NAME;SharedAccessKey=PRIMARY_OR_SECONDARY_KEY

The connection string can be passed to the application via appsettings.json or command line arguments or environment variables:

dotnet run --Telemetry:AzureIotHubConnectionString=CONNECTION_STRING
export Telemetry:AzureIotHubConnectionString=CONNECTION_STRING

Enviroment Sensor

Worker service for the BME680 enviromental sensor from Bosh.

Sensor capabilities:

  • Temperature
  • Barometric Pressure
  • Humidity
  • VOC Gas (Currently not implemented in binding)