fix humidity
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2020-08-24 21:36:33 +02:00
parent 84c4868720
commit af6bd94678
2 changed files with 6 additions and 6 deletions

View File

@ -23,8 +23,8 @@ let last_t = 0;
let last_h = 0; let last_h = 0;
function create_log (timestamp) { function create_log (timestamp) {
last_t += faker.random.number (3) - 1; last_t = faker.random.number (2) + 22;
last_h += faker.random.number (2) - 1; last_h = faker.random.number (10) + 38;
const data = { const data = {
light: faker.random.number (10), light: faker.random.number (10),

View File

@ -29,16 +29,16 @@ export default {
field: 'data/temperature', field: 'data/temperature',
color: '#ff0000', color: '#ff0000',
fill: '#0000', fill: '#0000',
min_value: 10, min_value: 15,
max_value: 40 max_value: 30
}, },
{ {
label: 'humidity', label: 'humidity',
field: 'data/humidity', field: 'data/humidity',
color: '#0000ff', color: '#0000ff',
fill: '#0000', fill: '#0000',
min_value: 100, min_value: 20,
max_value: 0 max_value: 80
}, },
{ {
label: 'light', label: 'light',