This commit is contained in:
parent
84c4868720
commit
af6bd94678
@ -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),
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user