mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
41_OREGON.pm: added META, subs as coderefs
git-svn-id: https://svn.fhem.de/fhem/trunk@26978 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e38e66cc22
commit
e727f6902b
@ -45,20 +45,21 @@ package main;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use FHEM::Meta;
|
||||||
|
|
||||||
my $time_old = 0;
|
my $time_old = 0;
|
||||||
|
|
||||||
sub
|
sub OREGON_Initialize
|
||||||
OREGON_Initialize($)
|
|
||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
$hash->{Match} = "^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*", #38-78
|
$hash->{Match} = "^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*", #38-78
|
||||||
$hash->{DefFn} = "OREGON_Define";
|
$hash->{DefFn} = \&OREGON_Define;
|
||||||
$hash->{UndefFn} = "OREGON_Undef";
|
$hash->{UndefFn} = \&OREGON_Undef;
|
||||||
$hash->{ParseFn} = "OREGON_Parse";
|
$hash->{ParseFn} = \&OREGON_Parse;
|
||||||
$hash->{AttrList} = "IODev ignore:0,1 do_not_notify:1,0 showtime:1,0"
|
$hash->{AttrList} = "IODev ignore:0,1 do_not_notify:1,0 showtime:1,0"
|
||||||
." $readingFnAttributes";
|
." $readingFnAttributes";
|
||||||
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -80,7 +81,7 @@ OREGON_Define($$)
|
|||||||
$modules{OREGON}{defptr}{$code} = $hash;
|
$modules{OREGON}{defptr}{$code} = $hash;
|
||||||
AssignIoPort($hash);
|
AssignIoPort($hash);
|
||||||
|
|
||||||
return undef;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -89,7 +90,7 @@ OREGON_Undef($$)
|
|||||||
{
|
{
|
||||||
my ($hash, $name) = @_;
|
my ($hash, $name) = @_;
|
||||||
delete($modules{OREGON}{defptr}{$name});
|
delete($modules{OREGON}{defptr}{$name});
|
||||||
return undef;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1258,4 +1259,94 @@ The one byte hex string is generated by the Oregon sensor when is it powered on.
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
=for :application/json;q=META.json 41_Oregon.pm
|
||||||
|
{
|
||||||
|
"abstract": "interprets Oregon sensors received by a rf receiver",
|
||||||
|
"author": [
|
||||||
|
"Sidey <>",
|
||||||
|
"ralf9 <>",
|
||||||
|
"Willi Herzig <>"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer": [
|
||||||
|
"Sidey"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer_github": [
|
||||||
|
"Sidey79",
|
||||||
|
"HomeAutoUser",
|
||||||
|
"elektron-bbs"
|
||||||
|
],
|
||||||
|
"description": "The OREGON module interprets Oregon sensor messages received by a RFXCOM or SIGNALduino or CUx receiver. You need to define a receiver (RFXCOM, SIGNALduino or CUx) first.",
|
||||||
|
"dynamic_config": 1,
|
||||||
|
"keywords": [
|
||||||
|
"fhem-sonstige-systeme",
|
||||||
|
"fhem-hausautomations-systeme",
|
||||||
|
"fhem-mod",
|
||||||
|
"signalduino",
|
||||||
|
"Oregon",
|
||||||
|
"CUx",
|
||||||
|
"RFXCOM",
|
||||||
|
"sensor",
|
||||||
|
"Hama",
|
||||||
|
"TFA",
|
||||||
|
"Bresser"
|
||||||
|
],
|
||||||
|
"license": [
|
||||||
|
"GPL_2"
|
||||||
|
],
|
||||||
|
"meta-spec": {
|
||||||
|
"url": "https://metacpan.org/pod/CPAN::Meta::Spec",
|
||||||
|
"version": 2
|
||||||
|
},
|
||||||
|
"name": "FHEM::SD_WS",
|
||||||
|
"prereqs": {
|
||||||
|
"runtime": {
|
||||||
|
"requires": {
|
||||||
|
"Math::Trig" : "0",
|
||||||
|
"Digest::CRC" : "0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"develop": {
|
||||||
|
"requires": {
|
||||||
|
"Math::Trig" :"0",
|
||||||
|
"Digest::CRC" : "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"release_status": "stable",
|
||||||
|
"resources": {
|
||||||
|
"bugtracker": {
|
||||||
|
"web": "https://github.com/RFD-FHEM/RFFHEM/issues/"
|
||||||
|
},
|
||||||
|
"x_testData": [
|
||||||
|
{
|
||||||
|
"url": "https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/master/t/FHEM/41_OREGON/testData.json",
|
||||||
|
"testname": "Testdata with Oregon sensors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"x_master": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/RFD-FHEM/RFFHEM.git",
|
||||||
|
"web": "https://github.com/RFD-FHEM/RFFHEM/tree/master"
|
||||||
|
},
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://svn.fhem.de/fhem",
|
||||||
|
"web": "https://svn.fhem.de/trac/browser/trunk/fhem/FHEM/41_OREGON.pm",
|
||||||
|
"x_branch": "trunk",
|
||||||
|
"x_filepath": "fhem/FHEM/",
|
||||||
|
"x_raw": "https://svn.fhem.de/trac/export/latest/trunk/fhem/FHEM/41_OREGON.pm"
|
||||||
|
},
|
||||||
|
"x_support_community": {
|
||||||
|
"board": "Sonstige Systeme",
|
||||||
|
"boardId": "29",
|
||||||
|
"cat": "FHEM - Hausautomations-Systeme",
|
||||||
|
"description": "Sonstige Hausautomations-Systeme",
|
||||||
|
"forum": "FHEM Forum",
|
||||||
|
"rss": "https://forum.fhem.de/index.php?action=.xml;type=rss;board=29",
|
||||||
|
"title": "FHEM Forum: Sonstige Systeme",
|
||||||
|
"web": "https://forum.fhem.de/index.php/board,29.0.html"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
=end :application/json;q=META.json
|
||||||
=cut
|
=cut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user