React to open door

MAX31855-EH
chrono 2013-11-30 14:05:42 +01:00
rodzic 44e268d3ab
commit 47591ddee7
1 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -299,6 +299,20 @@ $(document).ready(function()
{
state = x.state;
if (x.door == "OPEN")
{
$.bootstrapGrowl("<span class=\"glyphicon glyphicon-exclamation-sign\"></span> <b>Door Opened!</b>", {
ele: 'body', // which element to append to
type: 'error', // (null, 'info', 'error', 'success')
offset: {from: 'top', amount: 250}, // 'top', or 'bottom'
align: 'center', // ('left', 'right', or 'center')
width: 385, // (integer, or 'auto')
delay: 0,
allow_dismiss: true,
stackup_spacing: 10 // spacing between consecutively stacked growls.
});
}
if (state!=state_last)
{
if(state_last == "RUNNING")