Skip to content

A simple simulator of a temperature sensor that sends values to Azure IoT Hub

License

Notifications You must be signed in to change notification settings

stefan-hudelmaier/simulated-temperature-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple simulator of a temperature sensor that sends values to Azure IoT Hub

Running via Docker

docker run --rm -ti \
  -e DEVICE_CONNECTION_STRING="HostName=myiothub.azure-devices.net;DeviceId=dev1;SharedAccessKey=xxx" \
  ghcr.io/stefan-hudelmaier/simulated-temperature-sensor:main

DEVICE_CONNECTION_STRING is the connection string of your Azure IoT Hub Device

Running locally

Init venv

virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 main.py

Exit venv:

deactivate

About

A simple simulator of a temperature sensor that sends values to Azure IoT Hub

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages