Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefan-hudelmaier/simulated-temperature-sensor
A simple simulator of a temperature sensor that sends values to Azure IoT Hub
https://github.com/stefan-hudelmaier/simulated-temperature-sensor
iot iot-hub simulator
Last synced: about 2 months ago
JSON representation
A simple simulator of a temperature sensor that sends values to Azure IoT Hub
- Host: GitHub
- URL: https://github.com/stefan-hudelmaier/simulated-temperature-sensor
- Owner: stefan-hudelmaier
- License: apache-2.0
- Created: 2021-08-31T20:16:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T11:22:28.000Z (over 3 years ago)
- Last Synced: 2024-10-25T09:50:06.804Z (3 months ago)
- Topics: iot, iot-hub, simulator
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```