mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
remove funktion prototypes to avoid conflicts and the known prototype traps
git-svn-id: https://svn.fhem.de/fhem/trunk@1389 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
338ef231ca
commit
a070fa016d
@ -133,7 +133,7 @@ sub Twilight_Undef($$) {
|
|||||||
sub twilight_midnight_seconds() { my @time = localtime(); my $secs = ($time[2] * 3600) + ($time[1] * 60) + $time[0]; return $secs; }
|
sub twilight_midnight_seconds() { my @time = localtime(); my $secs = ($time[2] * 3600) + ($time[1] * 60) + $time[0]; return $secs; }
|
||||||
|
|
||||||
|
|
||||||
sub Twilight_GetUpdate($){
|
sub Twilight_GetUpdate{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
my @sunrise_set;
|
my @sunrise_set;
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ sub Twilight_GetUpdate($){
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub twilight_calc() {
|
sub twilight_calc {
|
||||||
my $latitude=shift;
|
my $latitude=shift;
|
||||||
my $longitude=shift;
|
my $longitude=shift;
|
||||||
my $horizon=shift;
|
my $horizon=shift;
|
||||||
@ -262,7 +262,7 @@ sub twilight_calc() {
|
|||||||
return $sunrise, $sunset;
|
return $sunrise, $sunset;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub Twilight_getWeatherHorizon(){
|
sub Twilight_getWeatherHorizon{
|
||||||
my $location=shift;
|
my $location=shift;
|
||||||
#my $xml = GetHttpFile("www.google.com:80", "/ig/api?weather=" . $location . "&hl=en");
|
#my $xml = GetHttpFile("www.google.com:80", "/ig/api?weather=" . $location . "&hl=en");
|
||||||
#$xml =~/\<current_conditions\>(.*)\<\/current_conditions\>/;
|
#$xml =~/\<current_conditions\>(.*)\<\/current_conditions\>/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user