Skip to content
An Azure IoT Edge module that uses hddtemp to monitor SMART values from the host HDD
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
assets
modules/HddTempModule
.gitignore
LICENSE
README.md
deployment.template.json

README.md

IoT-Edge-HddMonitoring

An Azure IoT Edge module that uses hddtemp to monitor SMART values from the host HDD.

This demo uses Hddtemp which needs to be executed with privileged permissions from a docker container. In addition another module SimulatedTemperatureValues will be deployed to show more data.

Configuring the solution

VSCode will create a deplomyent manifest from the deployment.template.json file in the root folder. This template contains placeholder, that need to be defined in a .env file. You will need to create this file.

Solution Explorer View

Use this codeblock as a startingpoint for the .env file and replace the values with your Azure Container Registry values.

CONTAINER_REGISTRY_ADDRESS=rene.azurecr.io
CONTAINER_REGISTRY_USERNAME=rene
CONTAINER_REGISTRY_PASSWORD=myfancysupersecretpasswordgoeshier
DRIVE_PATH=/dev/sda1

That's it. If you need more information, take a look at the Tutorial: Develop and deploy a Python IoT Edge module for Linux devices.

Extending the demo

How about the CPU temperature? Use How to check CPU temperature on Ubuntu Linux as a starting point to extend the demo to read the CPU temperature as well.

You can’t perform that action at this time.