add support for META and Installer
This commit is contained in:
parent
b5308f9642
commit
b1e2a79bb2
@ -58,7 +58,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "1.4.2";
|
my $version = "1.6.0";
|
||||||
|
|
||||||
|
|
||||||
sub GardenaSmartBridge_Initialize($) {
|
sub GardenaSmartBridge_Initialize($) {
|
||||||
@ -92,6 +92,8 @@ sub GardenaSmartBridge_Initialize($) {
|
|||||||
my $hash = $modules{GardenaSmartBridge}{defptr}{$d};
|
my $hash = $modules{GardenaSmartBridge}{defptr}{$d};
|
||||||
$hash->{VERSION} = $version;
|
$hash->{VERSION} = $version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
package FHEM::GardenaSmartBridge;
|
package FHEM::GardenaSmartBridge;
|
||||||
@ -145,6 +147,7 @@ sub Define($$) {
|
|||||||
|
|
||||||
my @a = split( "[ \t][ \t]*", $def );
|
my @a = split( "[ \t][ \t]*", $def );
|
||||||
|
|
||||||
|
return $@ unless ( FHEM::Meta::SetInternals($hash) );
|
||||||
return "too few parameters: define <NAME> GardenaSmartBridge"
|
return "too few parameters: define <NAME> GardenaSmartBridge"
|
||||||
if ( @a != 2 );
|
if ( @a != 2 );
|
||||||
return
|
return
|
||||||
@ -1143,11 +1146,58 @@ sub DeletePassword($) {
|
|||||||
<b>Attribute</b>
|
<b>Attribute</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li>debugJSON - JSON Fehlermeldungen</li>
|
<li>debugJSON - JSON Fehlermeldungen</li>
|
||||||
<li>disable - Schaltet die Datenübertragung der Bridge ab</li>
|
<li>disable - Schaltet die Datenübertragung der Bridge ab</li>
|
||||||
<li>interval - Abfrageinterval in Sekunden (default: 300)</li>
|
<li>interval - Abfrageinterval in Sekunden (default: 300)</li>
|
||||||
<li>gardenaAccountEmail - Email Adresse, die auch in der GardenaApp verwendet wurde</li>
|
<li>gardenaAccountEmail - Email Adresse, die auch in der GardenaApp verwendet wurde</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
|
||||||
|
=for :application/json;q=META.json 73_GardenaSmartBridge.pm
|
||||||
|
{
|
||||||
|
"abstract": "Modul to communicate with the GardenaCloud",
|
||||||
|
"x_lang": {
|
||||||
|
"de": {
|
||||||
|
"abstract": "Modul zur Datenübertragung zur GardenaCloud"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"fhem-mod-device",
|
||||||
|
"fhem-core",
|
||||||
|
"Garden",
|
||||||
|
"Gardena",
|
||||||
|
"Smart"
|
||||||
|
],
|
||||||
|
"release_status": "stable",
|
||||||
|
"license": "GPL_2",
|
||||||
|
"author": [
|
||||||
|
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer": [
|
||||||
|
"CoolTux"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer_github": [
|
||||||
|
"LeonGaultier"
|
||||||
|
],
|
||||||
|
"prereqs": {
|
||||||
|
"runtime": {
|
||||||
|
"requires": {
|
||||||
|
"FHEM": 5.00918799,
|
||||||
|
"perl": 5.016,
|
||||||
|
"Meta": 0,
|
||||||
|
"IO::Socket::SSL": 0,
|
||||||
|
"JSON": 0,
|
||||||
|
"HttpUtils": 0,
|
||||||
|
"Encode": 0
|
||||||
|
},
|
||||||
|
"recommends": {
|
||||||
|
},
|
||||||
|
"suggests": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
=end :application/json;q=META.json
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
@ -58,7 +58,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "1.4.2";
|
my $version = "1.6.0";
|
||||||
|
|
||||||
sub GardenaSmartDevice_Initialize($) {
|
sub GardenaSmartDevice_Initialize($) {
|
||||||
|
|
||||||
@ -83,6 +83,8 @@ sub GardenaSmartDevice_Initialize($) {
|
|||||||
my $hash = $modules{GardenaSmartDevice}{defptr}{$d};
|
my $hash = $modules{GardenaSmartDevice}{defptr}{$d};
|
||||||
$hash->{VERSION} = $version;
|
$hash->{VERSION} = $version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
## unserer packagename
|
## unserer packagename
|
||||||
@ -126,6 +128,7 @@ sub Define($$) {
|
|||||||
my ( $hash, $def ) = @_;
|
my ( $hash, $def ) = @_;
|
||||||
my @a = split( "[ \t]+", $def );
|
my @a = split( "[ \t]+", $def );
|
||||||
|
|
||||||
|
return $@ unless ( FHEM::Meta::SetInternals($hash) );
|
||||||
return
|
return
|
||||||
"too few parameters: define <NAME> GardenaSmartDevice <device_Id> <model>"
|
"too few parameters: define <NAME> GardenaSmartDevice <device_Id> <model>"
|
||||||
if ( @a < 3 );
|
if ( @a < 3 );
|
||||||
@ -1109,4 +1112,49 @@ sub SetPredefinedStartPoints($@) {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
|
||||||
|
=for :application/json;q=META.json 74_GardenaSmartDevice.pm
|
||||||
|
{
|
||||||
|
"abstract": "Modul to control GardenaSmart Devices",
|
||||||
|
"x_lang": {
|
||||||
|
"de": {
|
||||||
|
"abstract": "Modul zur Steuerung von Gardena Smart Geräten"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"fhem-mod-device",
|
||||||
|
"fhem-core",
|
||||||
|
"Garden",
|
||||||
|
"Gardena",
|
||||||
|
"Smart"
|
||||||
|
],
|
||||||
|
"release_status": "stable",
|
||||||
|
"license": "GPL_2",
|
||||||
|
"author": [
|
||||||
|
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer": [
|
||||||
|
"CoolTux"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer_github": [
|
||||||
|
"LeonGaultier"
|
||||||
|
],
|
||||||
|
"prereqs": {
|
||||||
|
"runtime": {
|
||||||
|
"requires": {
|
||||||
|
"FHEM": 5.00918799,
|
||||||
|
"perl": 5.016,
|
||||||
|
"Meta": 0,
|
||||||
|
"JSON": 0,
|
||||||
|
"Time::Local": 0
|
||||||
|
},
|
||||||
|
"recommends": {
|
||||||
|
},
|
||||||
|
"suggests": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
=end :application/json;q=META.json
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
Loading…
Reference in New Issue
Block a user