mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
88_WEBCOUNT.pm: removed trim() (Forum #101673)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19919 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
829ccc769b
commit
3ef243b8ab
@ -2,7 +2,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright notice
|
# Copyright notice
|
||||||
#
|
#
|
||||||
# (c) 2011 Sacha Gloor (sacha@imp.ch)
|
# (c) 2019 Christoph Morrison <fhem@christoph-jeschke.de>
|
||||||
|
# 2011 Sacha Gloor (sacha@imp.ch)
|
||||||
#
|
#
|
||||||
# This script is free software; you can redistribute it and/or modify
|
# This script is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -33,20 +34,9 @@ use Data::Dumper;
|
|||||||
use LWP::UserAgent;
|
use LWP::UserAgent;
|
||||||
use HTTP::Request;
|
use HTTP::Request;
|
||||||
|
|
||||||
sub Log($$);
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
sub
|
sub WEBCOUNT_Initialize($)
|
||||||
trim($)
|
|
||||||
{
|
|
||||||
my $string = shift;
|
|
||||||
$string =~ s/^\s+//;
|
|
||||||
$string =~ s/\s+$//;
|
|
||||||
return $string;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub
|
|
||||||
WEBCOUNT_Initialize($)
|
|
||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
# Consumer
|
# Consumer
|
||||||
@ -56,8 +46,7 @@ WEBCOUNT_Initialize($)
|
|||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
sub
|
sub WEBCOUNT_Define($$)
|
||||||
WEBCOUNT_Define($$)
|
|
||||||
{
|
{
|
||||||
my ($hash, $def) = @_;
|
my ($hash, $def) = @_;
|
||||||
my $name=$hash->{NAME};
|
my $name=$hash->{NAME};
|
||||||
@ -83,8 +72,7 @@ WEBCOUNT_Define($$)
|
|||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
sub
|
sub WEBCOUNT_GetStatus($)
|
||||||
WEBCOUNT_GetStatus($)
|
|
||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
@ -143,6 +131,10 @@ WEBCOUNT_GetStatus($)
|
|||||||
|
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
=item device
|
||||||
|
=item summary Support for Wiesemann & Theis 57652 Web-Count 6x Digital
|
||||||
|
=item summary_DE Unterstützung für Wiesemann & Theis 57652 Web-Count 6x Digital
|
||||||
|
|
||||||
=begin html
|
=begin html
|
||||||
|
|
||||||
<a name="WEBCOUNT"></a>
|
<a name="WEBCOUNT"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user