Skip to content

Commit 0545bb6

Browse files
committed
Plot light too
1 parent f24edf7 commit 0545bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

smart_incubator/server/static/js/script.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ function loadGraphs(incubator_id, days){
182182
});
183183

184184
Morris.Line({
185-
element: 'humidity',
185+
element: 'humidity', 'light'
186186
data: response,
187187
xkey: 'device_time',
188-
ykeys: ['humidity'],
189-
labels: ['Humidity'],
188+
ykeys: ['humidity', 'light'],
189+
labels: ['Humidity', 'Light'],
190190
ymax: '100',
191-
ymin: '30'
191+
ymin: '0'
192192

193193
});
194194

0 commit comments

Comments
 (0)