mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06:35 +00:00
fheminfo/statistics: changes after release tests
git-svn-id: https://svn.fhem.de/fhem/trunk@14393 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d7e1ba75d7
commit
9f59ffbaa3
@ -1,22 +1,24 @@
|
|||||||
# $Id$
|
=for comment
|
||||||
################################################################
|
|
||||||
#
|
$Id$
|
||||||
# This script free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
This script free software; you can redistribute it and/or modify
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
it under the terms of the GNU General Public License as published by
|
||||||
# any later version.
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
#
|
any later version.
|
||||||
# The GNU General Public License can be found at
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html.
|
The GNU General Public License can be found at
|
||||||
# A copy is found in the textfile GPL.txt and important notices to the license
|
http://www.gnu.org/copyleft/gpl.html.
|
||||||
# from the author is found in LICENSE.txt distributed with these scripts.
|
A copy is found in the textfile GPL.txt and important notices to the license
|
||||||
#
|
from the author is found in LICENSE.txt distributed with these scripts.
|
||||||
# This script is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
This script is distributed in the hope that it will be useful,
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# GNU General Public License for more details.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
#
|
GNU General Public License for more details.
|
||||||
################################################################
|
|
||||||
|
=cut
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -25,16 +27,16 @@ use HttpUtils;
|
|||||||
|
|
||||||
my %fhemInfo =();
|
my %fhemInfo =();
|
||||||
|
|
||||||
sub fheminfo2_Initialize($$) {
|
sub fheminfo_Initialize($$) {
|
||||||
my %hash = (
|
my %hash = (
|
||||||
Fn => "CommandFheminfo2",
|
Fn => "CommandFheminfo2",
|
||||||
uri => "http://fhem.j65.de/stats/statistics2.cgi",
|
uri => "https://fhem.de/stats/statistics2.cgi",
|
||||||
Hlp => "[send],show or send Fhem statistics",
|
Hlp => "[send],show or send Fhem statistics",
|
||||||
);
|
);
|
||||||
$cmds{fheminfo2} = \%hash;
|
$cmds{fheminfo} = \%hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub CommandFheminfo2($$) {
|
sub CommandFheminfo($$) {
|
||||||
my ($cl,$param) = @_;
|
my ($cl,$param) = @_;
|
||||||
my @args = split("[ \t]+", $param);
|
my @args = split("[ \t]+", $param);
|
||||||
$args[0] = defined($args[0]) ? lc($args[0]) : "";
|
$args[0] = defined($args[0]) ? lc($args[0]) : "";
|
@ -1,5 +1,26 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
=for comment
|
||||||
|
|
||||||
|
$Id$
|
||||||
|
|
||||||
|
This script free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
The GNU General Public License can be found at
|
||||||
|
http://www.gnu.org/copyleft/gpl.html.
|
||||||
|
A copy is found in the textfile GPL.txt and important notices to the license
|
||||||
|
from the author is found in LICENSE.txt distributed with these scripts.
|
||||||
|
|
||||||
|
This script is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use DBI;
|
use DBI;
|
19
fhem/contrib/statistics/statistics2.cgi → fhem/contrib/statistics/2017/statistics2.cgi
Normal file → Executable file
19
fhem/contrib/statistics/statistics2.cgi → fhem/contrib/statistics/2017/statistics2.cgi
Normal file → Executable file
@ -3,9 +3,24 @@
|
|||||||
=for comment
|
=for comment
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
----------------------------------------
|
|
||||||
|
This script free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
The GNU General Public License can be found at
|
||||||
|
http://www.gnu.org/copyleft/gpl.html.
|
||||||
|
A copy is found in the textfile GPL.txt and important notices to the license
|
||||||
|
from the author is found in LICENSE.txt distributed with these scripts.
|
||||||
|
|
||||||
|
This script is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
database stuff provided by betateilchen
|
database stuff provided by betateilchen
|
||||||
----------------------------------------
|
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user