# HG changeset patch # User Michiel Broek # Date 1427399743 -3600 # Node ID 9894b559441c10ecc01d4dfd770d5b046ce7b2bc # Parent acd840c9fcc07d34fe4c887c899d2aec4af03287 Added device direction and value in devices maintenance screen diff -r acd840c9fcc0 -r 9894b559441c thermferm/server.c --- a/thermferm/server.c Thu Mar 26 20:34:53 2015 +0100 +++ b/thermferm/server.c Thu Mar 26 20:55:43 2015 +0100 @@ -575,7 +575,8 @@ if (strcmp(opt, (char *)"LIST") == 0) { srv_send((char *)"212 Devices list follows:"); for (device = Config.devices; device; device = device->next) { - srv_send((char *)"%s,%s,%d,%d,%s,%s", device->uuid, device->address, device->subdevice, device->inuse, device->comment, DEVDIR[device->direction]); + srv_send((char *)"%s,%s,%d,%d,%s,%s,%d", device->uuid, device->address, device->subdevice, + device->inuse, device->comment, DEVDIR[device->direction], device->value + device->offset); } srv_send((char *)"."); return 1; diff -r acd840c9fcc0 -r 9894b559441c www-thermferm/devices.php --- a/www-thermferm/devices.php Thu Mar 26 20:34:53 2015 +0100 +++ b/www-thermferm/devices.php Thu Mar 26 20:55:43 2015 +0100 @@ -473,9 +473,11 @@ $outstr .= ' '.PHP_EOL; $outstr .= ' UUID'.PHP_EOL; $outstr .= ' Address'.PHP_EOL; - $outstr .= ' Sub'.PHP_EOL; - $outstr .= ' Ref'.PHP_EOL; - $outstr .= ' Cmt'.PHP_EOL; + $outstr .= ' Sub'.PHP_EOL; + $outstr .= ' Ref'.PHP_EOL; + $outstr .= ' Cmt'.PHP_EOL; + $outstr .= ' Dir'.PHP_EOL; + $outstr .= ' Val'.PHP_EOL; $outstr .= ' Edit'.PHP_EOL; $outstr .= ' '.PHP_EOL; @@ -491,6 +493,8 @@ $outstr .= ' '.$f[2].''.PHP_EOL; $outstr .= ' '.$f[3].''.PHP_EOL; $outstr .= ' '.$f[4].''.PHP_EOL; + $outstr .= ' '.$f[5].''.PHP_EOL; + $outstr .= ' '.$f[6].''.PHP_EOL; if ($f[3] == 0) $outstr .= ' Edit'.PHP_EOL; else