mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_MAX_Temperature: fix wong non-breaking-space
git-svn-id: https://svn.fhem.de/fhem/trunk@20917 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
271fc93cdd
commit
d1338258cc
@ -91,7 +91,7 @@ sub MAX_Temperature_Define($$){
|
||||
$attr{$name}{room} = "MAX" if( not defined( $attr{$name}{room} ) );
|
||||
$attr{$name}{SendButton} = "audio_play" if( not defined( $attr{$name}{SendButton} ) );
|
||||
$attr{$name}{ResetButton} = "control_x" if( not defined( $attr{$name}{ResetButton} ) );
|
||||
$attr{$name}{Layout} = "[DEVICE][MODE][TEMP][SEND][DATE][CLOCK][SEND]<br>\n[STATE]" if( not defined( $attr{$name}{Layout} ) );
|
||||
$attr{$name}{Layout} = "[DEVICE][MODE][TEMP][SEND][DATE][CLOCK][SEND]<br>[STATE]" if( not defined( $attr{$name}{Layout} ) );
|
||||
} else {
|
||||
#Log3 $name, 1, "$name: already defined";
|
||||
}
|
||||
@ -414,7 +414,7 @@ sub MAX_Temperature_HTML($){
|
||||
my $hash = shift;
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
my $Layout = AttrVal($name, "Layout", "[DEVICE][MODE][TEMP][SEND][DATE][CLOCK][SEND]<br>\n[STATE]");
|
||||
my $Layout = AttrVal($name, "Layout", "[DEVICE][MODE][TEMP][SEND][DATE][CLOCK][SEND]<br>[STATE]");
|
||||
|
||||
#Log3 $name,1,"$name, $Layout";
|
||||
|
||||
@ -536,7 +536,7 @@ sub MAX_Temperature_GetHTMLSelectMaxDevice($){
|
||||
my $Reading = "Selected_Device";
|
||||
my $DDSelected = ReadingsVal($name, $Reading, "");
|
||||
$DDSelected =~ s/ / /g;
|
||||
$DDSelected =~ s/ / /g; #ACHTUNG! Kein richtiges leerzeichen!!! Siehe http://www.fileformat.info/info/unicode/char/00a0/index.htm
|
||||
$DDSelected =~ s/\xC2\xA0/ /g; #non-page-breaking-space
|
||||
my $html="";
|
||||
|
||||
|
||||
@ -674,8 +674,7 @@ sub MAX_Temperature_GetDeviceFromName($$){
|
||||
|
||||
my $MaxDevice = $caption; #ggf. bereits das Device
|
||||
$caption =~ s/ / /g;
|
||||
$caption =~ s/ / /g; #ACHTUNG! Kein richtiges leerzeichen!!! Siehe http://www.fileformat.info/info/unicode/char/00a0/index.htm
|
||||
|
||||
$caption =~ s/\xC2\xA0/ /g; #non-page-breaking-space
|
||||
#Gruppe?
|
||||
my $AddGroup = AttrVal($name,"addGroups","");
|
||||
my @AddGroups = split(/ /, $AddGroup);
|
||||
@ -684,7 +683,7 @@ sub MAX_Temperature_GetDeviceFromName($$){
|
||||
my @split=split(/:/, $Grp);
|
||||
my $GrpName=$split[0];
|
||||
$GrpName =~ s/ / /g;
|
||||
$GrpName =~ s/ / /g; #ACHTUNG! Kein richtiges leerzeichen!!! Siehe http://www.fileformat.info/info/unicode/char/00a0/index.htm
|
||||
$GrpName =~ s/\xC2\xA0/ /g; #non-page-breaking-space
|
||||
#my @GrpDevices=split(/,/, $split[1]);
|
||||
#Log3 $name,1,"$name $caption $GrpName";
|
||||
if ($caption eq $GrpName){
|
||||
@ -699,7 +698,7 @@ sub MAX_Temperature_GetDeviceFromName($$){
|
||||
my $AliasDevice=$list[0];
|
||||
my $AliasDeviceName=$list[1];
|
||||
$AliasDeviceName =~ s/ / /g;
|
||||
$AliasDeviceName =~ s/ / /g; #ACHTUNG! Kein richtiges leerzeichen!!! Siehe http://www.fileformat.info/info/unicode/char/00a0/index.htm
|
||||
$AliasDeviceName =~ s/\xC2\xA0/ /g; #non-page-breaking-space
|
||||
#Log3 $name,1,"$name $dev $AliasDeviceName";
|
||||
if ($caption eq $AliasDeviceName){
|
||||
$MaxDevice = $AliasDevice;
|
||||
@ -923,10 +922,10 @@ sub MAX_Temperature_GetHTMLReset($){
|
||||
<br><br>
|
||||
|
||||
Without setting the Holiday mode:<br>
|
||||
[STATE]<br>\n[DEVICE][MODE][TEMP][SEND]<br><br>
|
||||
[STATE]<br> [DEVICE][MODE][TEMP][SEND]<br><br>
|
||||
|
||||
Holiday mode setting only:<br>
|
||||
[STATE]<br>\n[DEVICE][TEMP][DATE][CLOCK][SEND]<br><br>
|
||||
[STATE]<br> [DEVICE][TEMP][DATE][CLOCK][SEND]<br><br>
|
||||
|
||||
All entries one below the other:<br>
|
||||
[STATE]<br><br>
|
||||
@ -1125,10 +1124,10 @@ sub MAX_Temperature_GetHTMLReset($){
|
||||
<br><br>
|
||||
|
||||
Ohne Einstellung des Urluabsmodus:<br>
|
||||
[STATE]<br>\n[DEVICE][MODE][TEMP][SEND]<br><br>
|
||||
[STATE]<br> [DEVICE][MODE][TEMP][SEND]<br><br>
|
||||
|
||||
Nur Einstellung des Urlaubsmodus:<br>
|
||||
[STATE]<br>\n[DEVICE][TEMP][DATE][CLOCK][SEND]<br><br>
|
||||
[STATE]<br> [DEVICE][TEMP][DATE][CLOCK][SEND]<br><br>
|
||||
|
||||
Alle Einträge untereinander:
|
||||
[STATE]<br><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user