1
1
# ################################################################
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 $
3
3
#
4
4
# The module is a timer for executing actions with only one InternalTimer.
5
5
# Github - FHEM Home Automation System
@@ -22,7 +22,7 @@ use strict;
22
22
use warnings;
23
23
use Time::HiRes qw( gettimeofday) ;
24
24
25
- our $VERSION_Timer = ' 2023-12-08 ' ;
25
+ our $VERSION_Timer = ' 2024-01-03 ' ;
26
26
27
27
my @action = qw( on off DEF) ;
28
28
my @names ;
@@ -86,6 +86,9 @@ sub Timer_Define {
86
86
my ($autocreateFilelog , $autocreateHash , $autocreateName , $autocreateDeviceRoom , $autocreateWeblinkRoom ) = (' %L' . $name . ' -%Y-%m.log' , undef , ' autocreate' , $typ , $typ );
87
87
$hash -> {NOTIFYDEV } = " global,TYPE=$typ " ;
88
88
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
+
89
92
if (@arg != 2) { return " Usage: define <name> $name " ; }
90
93
91
94
if ($init_done ) {
@@ -714,7 +717,7 @@ sub Timer_FW_Detail {
714
717
$html .= " <td align=\" center\" ><input align=\" center\" " ;
715
718
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
716
719
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]." \" " ;
718
721
} else {
719
722
$html .= " style='width:4em; display:none' value=\" 0\" " ;
720
723
}
@@ -1483,5 +1486,90 @@ Damit ist es möglich, einen Timer beispielsweise nur jeden Sonntag um 15:30
1483
1486
</ul>
1484
1487
=end html_DE
1485
1488
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
+
1487
1575
=cut
0 commit comments