fbeltrao / iot-telemetry-simulator Goto Github PK
View Code? Open in Web Editor NEWAzure IoT Device telemetry simulator
License: MIT License
Azure IoT Device telemetry simulator
License: MIT License
Hello and thanks for your work!
The "-e Template variable" seems to be ignored when trying to change it from default as written in the documentation.
C:\Users\...>docker run -it -e "IotHubConnectionString=..." -e DeviceList=...-e Template="{ \"deviceId\": \"$.DeviceId\", \"temp\": $.Temp }" -e Variables="[{name: \"Temp\", \"random\": true, \"max\": 25, \"min\": 23}, {\"name\":\"Counter\", \"min\":100} ]" fbeltrao/azureiot-telemetrysimulator warn: IotTelemetrySimulator.SimulationWorker[0] Using default telemetry template
When i change the default template in the code (TelemetryTemplate.cs ) everything is working as expected:
`C:\Users...>docker run -it -e "IotHubConnectionString=...=" -e DeviceList=... -e Variables="[{name: "Temp", "random": true, "max": 25, "min": 23}, {"name":"Counter", "min":100} ]" fbeltrao/azureiot-telemetrysimulator
warn: IotTelemetrySimulator.SimulationWorker[0]
Using default telemetry template
Starting simulator v1.0
Device count = 1
Device prefix =
Device 0-last = (...)
Device index = 1
Message count = 10
Interval = 1000ms
Template = Template: { "deviceId": "$.DeviceId", "temp": $.Temp }
Header =
2020-04-17T08:29:23.7710557Z: Errors sending telemetry == 0
2020-04-17T08:29:23.7715555Z: Telemetry generation ended after 12135ms`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.