diff -r fd1354e2a045 -r a2732027afb3 www-thermferm/global.php --- a/www-thermferm/global.php Wed May 31 16:29:52 2017 +0200 +++ b/www-thermferm/global.php Wed Jun 07 23:06:47 2017 +0200 @@ -48,6 +48,7 @@ $cmd[] = "PORT,".$_POST['Port']; $cmd[] = "TEMP_ADDRESS,".$_POST['TempAddress']; $cmd[] = "HUM_ADDRESS,".$_POST['HumAddress']; + $cmd[] = "TEMP_HUM_IDX,".$_POST['TempHumIdx']; if (isset($_POST['LCDcols'])) $cmd[] = "LCD_COLS,".$_POST['LCDcols']; if (isset($_POST['LCDrows'])) @@ -60,6 +61,7 @@ unset($_POST['Port']); unset($_POST['TempAddress']); unset($_POST['HumAddress']); + unset($_POST['TempHumIdx']); unset($_POST['LCDcols']); unset($_POST['LCDrows']); unset($_POST['key']); @@ -72,7 +74,7 @@ if (isset($_POST['Name']) && isset($_POST['Port']) && isset($_POST['TempAddress']) && isset($_POST['HumAddress']) && - isset($_POST['key'])) { + isset($_POST['TempHumIdx']) && isset($_POST['key'])) { if ($_POST['key'] == 'Cancel') return 99; @@ -203,6 +205,12 @@ $outstr .= ' '.PHP_EOL; $outstr .= ' '.PHP_EOL; } + if ($f[0] == "TEMP_HUM_IDX") { + $outstr .= ' '.PHP_EOL; + $outstr .= ' Temp/Humidity domoticz index'.PHP_EOL; + $outstr .= ' '.PHP_EOL; + $outstr .= ' '.PHP_EOL; + } if ($f[0] == "LCD_COLS") { $outstr .= ' '.PHP_EOL; $outstr .= ' LCD columns'.PHP_EOL;