1452 unit->air_temperature = unit->beer_temperature = 20000; |
1452 unit->air_temperature = unit->beer_temperature = 20000; |
1453 unit->beer_set = unit->fridge_set = 20.0; |
1453 unit->beer_set = unit->fridge_set = 20.0; |
1454 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = unit->prof_state = 0; |
1454 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = unit->prof_state = 0; |
1455 unit->heater_delay = unit->cooler_delay = unit->fan_delay = 20; /* 5 minutes delay */ |
1455 unit->heater_delay = unit->cooler_delay = unit->fan_delay = 20; /* 5 minutes delay */ |
1456 unit->heater_wait = unit->cooler_wait = unit->fan_wait = 0; |
1456 unit->heater_wait = unit->cooler_wait = unit->fan_wait = 0; |
|
1457 unit->heater_usage = unit->cooler_usage = unit->fan_usage = 0; |
1457 unit->temp_set_min = 1.0; |
1458 unit->temp_set_min = 1.0; |
1458 unit->temp_set_max = 30.0; |
1459 unit->temp_set_max = 30.0; |
1459 unit->idle_rangeH = 1.0; |
1460 unit->idle_rangeH = 1.0; |
1460 unit->idle_rangeL = -1.0; |
1461 unit->idle_rangeL = -1.0; |
1461 unit->prof_started = unit->prof_paused = unit->prof_primary_done = (time_t)0; |
1462 unit->prof_started = unit->prof_paused = unit->prof_primary_done = (time_t)0; |
1533 srv_send((char *)"BEER_STATE,%s", TEMPSTATE[unit->beer_state]); |
1534 srv_send((char *)"BEER_STATE,%s", TEMPSTATE[unit->beer_state]); |
1534 srv_send((char *)"BEER_TEMPERATURE,%.3f", unit->beer_temperature / 1000.0); |
1535 srv_send((char *)"BEER_TEMPERATURE,%.3f", unit->beer_temperature / 1000.0); |
1535 srv_send((char *)"HEATER_ADDRESS,%s", unit->heater_address); |
1536 srv_send((char *)"HEATER_ADDRESS,%s", unit->heater_address); |
1536 srv_send((char *)"HEATER_STATE,%d", unit->heater_state); |
1537 srv_send((char *)"HEATER_STATE,%d", unit->heater_state); |
1537 srv_send((char *)"HEATER_DELAY,%d", unit->heater_delay); |
1538 srv_send((char *)"HEATER_DELAY,%d", unit->heater_delay); |
|
1539 srv_send((char *)"HEATER_USAGE,%d", unit->heater_usage); |
1538 srv_send((char *)"COOLER_ADDRESS,%s", unit->cooler_address); |
1540 srv_send((char *)"COOLER_ADDRESS,%s", unit->cooler_address); |
1539 srv_send((char *)"COOLER_STATE,%d", unit->cooler_state); |
1541 srv_send((char *)"COOLER_STATE,%d", unit->cooler_state); |
1540 srv_send((char *)"COOLER_DELAY,%d", unit->cooler_delay); |
1542 srv_send((char *)"COOLER_DELAY,%d", unit->cooler_delay); |
|
1543 srv_send((char *)"COOLER_USAGE,%d", unit->cooler_usage); |
1541 srv_send((char *)"FAN_ADDRESS,%s", unit->fan_address); |
1544 srv_send((char *)"FAN_ADDRESS,%s", unit->fan_address); |
1542 srv_send((char *)"FAN_STATE,%d", unit->fan_state); |
1545 srv_send((char *)"FAN_STATE,%d", unit->fan_state); |
1543 srv_send((char *)"FAN_DELAY,%d", unit->fan_delay); |
1546 srv_send((char *)"FAN_DELAY,%d", unit->fan_delay); |
|
1547 srv_send((char *)"FAN_USAGE,%d", unit->fan_usage); |
1544 srv_send((char *)"DOOR_ADDRESS,%s", unit->door_address); |
1548 srv_send((char *)"DOOR_ADDRESS,%s", unit->door_address); |
1545 srv_send((char *)"DOOR_STATE,%d", unit->door_state); |
1549 srv_send((char *)"DOOR_STATE,%d", unit->door_state); |
1546 srv_send((char *)"MODE,%s", UNITMODE[unit->mode]); |
1550 srv_send((char *)"MODE,%s", UNITMODE[unit->mode]); |
1547 srv_send((char *)"FRIDGE_SET,%.1f", unit->fridge_set); |
1551 srv_send((char *)"FRIDGE_SET,%.1f", unit->fridge_set); |
1548 srv_send((char *)"BEER_SET,%.1f", unit->beer_set); |
1552 srv_send((char *)"BEER_SET,%.1f", unit->beer_set); |