in frontend/mx/src/mock/events.js [25:45]
constructor(devices, callback) {
this.devices = devices.map(deviceId => ({
id: deviceId,
type: 1,
}));
this.callback = callback;
this.temperatureGenerator = new RandomValueGenerator(
16, // farenheit
MAX_TEMPERATURE,
true
);
this.soundGenerator = new RandomValueGenerator(0, MAX_SOUND_LEVEL, true);
this.humidityGenerator = new RandomValueGenerator(60, 80, true);
this.speedGenerator = new RandomValueGenerator(0, 5.0, true);
this.pressureGenerator = new RandomValueGenerator(
MIN_ATMOSPHERIC_PRESSURE,
MAX_ATMOSPHERIC_PRESSURE,
true
);
this.magnetometerGenerator = new RandomValueGenerator(0, MAX_MAGNETIC_FLUX_DENSITY, true);
}