600 $('#FLog').click(function() { |
600 $('#FLog').click(function() { |
601 window.open('log_fermentation.php?code=' + record.beercode + '&name=' + record.beername); |
601 window.open('log_fermentation.php?code=' + record.beercode + '&name=' + record.beername); |
602 }); |
602 }); |
603 $('#Camera').jqxButton({ template: 'primary', width: '150px', theme: theme }); |
603 $('#Camera').jqxButton({ template: 'primary', width: '150px', theme: theme }); |
604 $('#Camera').click(function() { |
604 $('#Camera').click(function() { |
605 record.light_state = 100; |
605 // record.light_state = 100; |
|
606 websocket.send('{"device":"fermenters","node":"' + record.node + '","unit":"' + record.alias + '","light_state":100}'); |
606 window.open(record.webcam_url); |
607 window.open(record.webcam_url); |
607 }); |
608 }); |
608 createAbortElements(); |
609 createAbortElements(); |
609 |
610 |
610 websocket.onmessage = function(evt) { |
611 websocket.onmessage = function(evt) { |