From af6bd94678792f0e4e46800edff76683623a6878 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 24 Aug 2020 21:36:33 +0200 Subject: [PATCH] fix humidity --- seeds/fake.js | 4 ++-- src/default.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/seeds/fake.js b/seeds/fake.js index 702a374..c8410b7 100644 --- a/seeds/fake.js +++ b/seeds/fake.js @@ -23,8 +23,8 @@ let last_t = 0; let last_h = 0; function create_log (timestamp) { - last_t += faker.random.number (3) - 1; - last_h += faker.random.number (2) - 1; + last_t = faker.random.number (2) + 22; + last_h = faker.random.number (10) + 38; const data = { light: faker.random.number (10), diff --git a/src/default.js b/src/default.js index 35f6a3f..7733faf 100644 --- a/src/default.js +++ b/src/default.js @@ -29,16 +29,16 @@ export default { field: 'data/temperature', color: '#ff0000', fill: '#0000', - min_value: 10, - max_value: 40 + min_value: 15, + max_value: 30 }, { label: 'humidity', field: 'data/humidity', color: '#0000ff', fill: '#0000', - min_value: 100, - max_value: 0 + min_value: 20, + max_value: 80 }, { label: 'light',