|
|
@ -48,14 +48,15 @@ and use Chronograf UI to visualize generated data. |
|
|
|
const connection = FakeDeviceConnection() |
|
|
|
|
|
|
|
const deviceManager = FakeDeviceManager({ |
|
|
|
deviceCount: 100, |
|
|
|
metricsInterval: 30, |
|
|
|
deviceCount: 10, |
|
|
|
metricsInterval: 30000, |
|
|
|
connection: FakeDeviceConnection, |
|
|
|
onUpdateStats: updateStats, |
|
|
|
measurements: { |
|
|
|
usage: {type: 'integer', min: 0, max: 100}, |
|
|
|
voltage: {type: 'integer', min: 0, max: 15}, |
|
|
|
temperature: {type: 'integer', min: -20, max: 60} |
|
|
|
temperature: {type: 'integer', min: -20, max: 60}, |
|
|
|
air_humidity: {type: 'integer', min: 20, max: 100}, |
|
|
|
ground_humidity: {type: 'integer', min: 20, max: 100}, |
|
|
|
airforce: {type: 'integer', min: 0, max: 10} |
|
|
|
} |
|
|
|
}) |
|
|
|
deviceManager.start() |
|
|
|