www/js/mon_fermenter.js

changeset 698
c7b4cb53b37c
parent 685
a4fcdf24b5e7
equal deleted inserted replaced
697:367ae7ff52f0 698:c7b4cb53b37c
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) {

mercurial