Skip to content

Commit 47e7a73

Browse files
committed
Update 88_Timer.pm
- added Meta Version - fix Display offset
1 parent 3b9d7df commit 47e7a73

File tree

1 file changed

+92
-4
lines changed

1 file changed

+92
-4
lines changed

FHEM/88_Timer.pm

Lines changed: 92 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#################################################################
2-
# $Id: 88_Timer.pm 00000 2023-12-08 20:38:27Z HomeAuto_User $
2+
# $Id: 88_Timer.pm 0 2024-01-03 20:38:27Z HomeAuto_User $
33
#
44
# The module is a timer for executing actions with only one InternalTimer.
55
# Github - FHEM Home Automation System
@@ -22,7 +22,7 @@ use strict;
2222
use warnings;
2323
use Time::HiRes qw(gettimeofday);
2424

25-
our $VERSION_Timer = '2023-12-08';
25+
our $VERSION_Timer = '2024-01-03';
2626

2727
my @action = qw(on off DEF);
2828
my @names;
@@ -86,6 +86,9 @@ sub Timer_Define {
8686
my ($autocreateFilelog, $autocreateHash, $autocreateName, $autocreateDeviceRoom, $autocreateWeblinkRoom) = ('%L' . $name . '-%Y-%m.log', undef, 'autocreate', $typ, $typ);
8787
$hash->{NOTIFYDEV} = "global,TYPE=$typ";
8888

89+
# Anzeigen der Modulversion (Internal FVERSION) über FHEM::Meta, Variable in META.json Abschnitt erforderlich: "version": "v1.0.0", siehe https://wiki.fhem.de/wiki/Meta
90+
return $@ unless ( FHEM::Meta::SetInternals($hash) );
91+
8992
if (@arg != 2) { return "Usage: define <name> $name"; }
9093

9194
if ($init_done) {
@@ -714,7 +717,7 @@ sub Timer_FW_Detail {
714717
$html.= "<td align=\"center\"><input align=\"center\" ";
715718
if($select_Value[3] eq $designations[4] || $select_Value[3] eq $designations[5] || $select_Value[4] eq $designations[4] || $select_Value[4] eq $designations[5]) { # SA -> 4 SU -> 5
716719
if (not $select_Value[16]) { $select_Value[16] = 0; }
717-
$html.= "style='width:4em' type=\"number\" min=\"-1440\" max=\"1440\" onkeypress=\"return isValidInputKey(event);\" value=\"".$select_Value[16]."\" ";
720+
$html.= "style='width:4em; text-align:right;' type=\"number\" min=\"-1440\" max=\"1440\" onkeypress=\"return isValidInputKey(event);\" value=\"".$select_Value[16]."\" ";
718721
} else {
719722
$html.= "style='width:4em; display:none' value=\"0\" ";
720723
}
@@ -1483,5 +1486,90 @@ Damit ist es m&ouml;glich, einen Timer beispielsweise nur jeden Sonntag um 15:30
14831486
</ul>
14841487
=end html_DE
14851488
1486-
# Ende der Commandref
1489+
=for :application/json;q=META.json 88_Timer.pm
1490+
{
1491+
"author": [
1492+
"HomeAuto_User <>",
1493+
"elektron-bbs"
1494+
],
1495+
"description": "timer for executing actions with only one InternalTimer",
1496+
"dynamic_config": 1,
1497+
"keywords": [
1498+
"Timer",
1499+
"fhem-sonstige-systeme"
1500+
],
1501+
"license": [
1502+
"GPL_2"
1503+
],
1504+
"meta-spec": {
1505+
"url": "https://metacpan.org/pod/CPAN::Meta::Spec",
1506+
"version": 2
1507+
},
1508+
"name": "FHEM::Timer",
1509+
"prereqs": {
1510+
"runtime": {
1511+
"requires": {
1512+
"FHEM": 5.00918623,
1513+
"FHEM::Meta": 0.001006,
1514+
"JSON::PP": 0,
1515+
"Time::HiRes": 0,
1516+
"lib::SD_Protocols": "0",
1517+
"perl": 5.018,
1518+
"strict": "0",
1519+
"warnings": "0"
1520+
}
1521+
},
1522+
"develop": {
1523+
"requires": {
1524+
"lib::SD_Protocols": "0",
1525+
"strict": "0",
1526+
"warnings": "0"
1527+
}
1528+
}
1529+
},
1530+
"release_status": "stable",
1531+
"resources": {
1532+
"bugtracker": {
1533+
"web": "https://github.com/fhem/Timer/issues"
1534+
},
1535+
"repository": {
1536+
"x_master": {
1537+
"type": "git",
1538+
"url": "https://github.com/fhem/Timer",
1539+
"web": "https://github.com/fhem/Timer/blob/master/FHEM/88_Timer.pm"
1540+
},
1541+
"type": "",
1542+
"url": "https://github.com/fhem/Timer",
1543+
"web": "https://github.com/fhem/Timer/blob/master/FHEM/88_Timer.pm",
1544+
"x_branch": "master",
1545+
"x_filepath": "FHEM/",
1546+
"x_raw": "https://github.com/fhem/Timer/blob/master/FHEM/88_Timer.pm",
1547+
"x_dev": {
1548+
"type": "git",
1549+
"url": "https://github.com/fhem/Timer.git",
1550+
"web": "https://github.com/fhem/Timer/blob/pre-release/FHEM/88_Timer.pm",
1551+
"x_branch": "pre-release",
1552+
"x_filepath": "FHEM/",
1553+
"x_raw": "https://raw.githubusercontent.com/fhem/Timer/pre-release/FHEM/88_Timer.pm"
1554+
}
1555+
},
1556+
"x_commandref": {
1557+
"web": "https://commandref.fhem.de/#Timer"
1558+
},
1559+
"x_wiki": {
1560+
"web": "https://wiki.fhem.de/wiki/Timer"
1561+
}
1562+
},
1563+
"version": "2024-01-03",
1564+
"x_fhem_maintainer": [
1565+
"HomeAuto_User",
1566+
"elektron-bbs"
1567+
],
1568+
"x_fhem_maintainer_github": [
1569+
"HomeAutoUser",
1570+
"elektron-bbs"
1571+
]
1572+
}
1573+
=end :application/json;q=META.json
1574+
14871575
=cut

0 commit comments

Comments
 (0)