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