2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

pgm3: Bat low in fht.php

git-svn-id: https://svn.fhem.de/fhem/trunk@612 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinhaas 2010-04-01 08:17:56 +00:00
parent 342fdb9b62
commit 59877b2ce9

View File

@ -234,7 +234,9 @@ setlocale (LC_ALL, 'de_DE.utf8');
$text=$battery; $text=$battery;
if ($battery == 'none') {$text='Bat: ok';} if ($battery == 'none') {$text='Bat: ok';}
elseif ($battery =='empty') {$text='Bat: low'; $txtcolor=$red;} elseif ($battery =='empty') {$text='Bat: low'; $txtcolor=$red;}
else {$text='';}; elseif ($battery =='Battery low') {$text='Bat: low'; $txtcolor=$red;}
else {$text=$battery;};
#else {$text='';};
ImageTTFText ($im, $fontsize, 0, 165, 10, $txtcolor, $fontttf, $text); ImageTTFText ($im, $fontsize, 0, 165, 10, $txtcolor, $fontttf, $text);
$fontsize=7; $fontsize=7;