mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
21_OWTHERM.pm: Ersetze ° durch UTF-8 encoding
git-svn-id: https://svn.fhem.de/fhem/trunk@6680 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
70a7419ef6
commit
611728c035
@ -86,7 +86,7 @@ no warnings 'deprecated';
|
|||||||
sub Log3($$$);
|
sub Log3($$$);
|
||||||
sub AttrVal($$$);
|
sub AttrVal($$$);
|
||||||
|
|
||||||
my $owx_version="5.26";
|
my $owx_version="5.27";
|
||||||
|
|
||||||
my %gets = (
|
my %gets = (
|
||||||
"id" => "",
|
"id" => "",
|
||||||
@ -362,12 +362,12 @@ sub OWTHERM_FormatValues($) {
|
|||||||
$factor = 1.0;
|
$factor = 1.0;
|
||||||
|
|
||||||
if( $unit eq "Celsius" ){
|
if( $unit eq "Celsius" ){
|
||||||
$abbr = "°C";
|
$abbr = "°C";
|
||||||
} elsif ($unit eq "Kelvin" ){
|
} elsif ($unit eq "Kelvin" ){
|
||||||
$abbr = "K";
|
$abbr = "K";
|
||||||
$offset += "273.16"
|
$offset += "273.16"
|
||||||
} elsif ($unit eq "Fahrenheit" ){
|
} elsif ($unit eq "Fahrenheit" ){
|
||||||
$abbr = "°F";
|
$abbr = "°F";
|
||||||
$offset = ($offset+32)/1.8;
|
$offset = ($offset+32)/1.8;
|
||||||
$factor = 1.8;
|
$factor = 1.8;
|
||||||
} else {
|
} else {
|
||||||
@ -602,12 +602,12 @@ sub OWTHERM_InitializeDevice($) {
|
|||||||
$factor = 1.0;
|
$factor = 1.0;
|
||||||
|
|
||||||
if( $unit eq "Celsius" ){
|
if( $unit eq "Celsius" ){
|
||||||
$abbr = "°C";
|
$abbr = "°C";
|
||||||
} elsif ($unit eq "Kelvin" ){
|
} elsif ($unit eq "Kelvin" ){
|
||||||
$abbr = "K";
|
$abbr = "K";
|
||||||
$offset += "273.16"
|
$offset += "273.16"
|
||||||
} elsif ($unit eq "Fahrenheit" ){
|
} elsif ($unit eq "Fahrenheit" ){
|
||||||
$abbr = "°F";
|
$abbr = "°F";
|
||||||
$offset = ($offset+32)/1.8;
|
$offset = ($offset+32)/1.8;
|
||||||
$factor = 1.8;
|
$factor = 1.8;
|
||||||
} else {
|
} else {
|
||||||
@ -1313,11 +1313,11 @@ sub OWXTHERM_PT_SetValues($$) {
|
|||||||
reading the sensor (1 second waiting time, default). </li>
|
reading the sensor (1 second waiting time, default). </li>
|
||||||
<li><a name="owtherm_tempOffset"><code>attr <name> tempOffset <float></code>
|
<li><a name="owtherm_tempOffset"><code>attr <name> tempOffset <float></code>
|
||||||
</a>
|
</a>
|
||||||
<br />temperature offset in °C added to the raw temperature reading. </li>
|
<br />temperature offset in °C added to the raw temperature reading. </li>
|
||||||
<li><a name="owtherm_tempUnit"><code>attr <name> tempUnit
|
<li><a name="owtherm_tempUnit"><code>attr <name> tempUnit
|
||||||
Celsius|Kelvin|Fahrenheit</code>
|
Celsius|Kelvin|Fahrenheit</code>
|
||||||
</a>
|
</a>
|
||||||
<br />unit of measurement (temperature scale), default is Celsius = °C </li>
|
<br />unit of measurement (temperature scale), default is Celsius = °C </li>
|
||||||
<li><a name="owtherm_resolution">
|
<li><a name="owtherm_resolution">
|
||||||
<code>attr <name> resolution 9|10|11|12</code></a><br /> Temperature
|
<code>attr <name> resolution 9|10|11|12</code></a><br /> Temperature
|
||||||
resolution in bit, only relevant for DS18B20 </li>
|
resolution in bit, only relevant for DS18B20 </li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user