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;
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),

View File

@ -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',