Skip to content

Commit

Permalink
Update 88_SIGNALduino_TOOL.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
HomeAutoUser committed Jan 3, 2024
1 parent a4b10bc commit c32114c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions FHEM/88_SIGNALduino_TOOL.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
######################################################################
# $Id: 88_SIGNALduino_TOOL.pm 125 2023-02-01 15:59:15Z HomeAuto_User $
# $Id: 88_SIGNALduino_TOOL.pm 126 2024-03-01 15:59:15Z HomeAuto_User $
#
# The file is part of the SIGNALduino project
# see http://www.fhemwiki.de/wiki/SIGNALduino to support debugging of unknown signal data
Expand Down Expand Up @@ -28,7 +28,7 @@ eval {use JSON::PP qw( );1};
eval {use JSON::XS;1};

use lib::SD_Protocols;
use FHEM::Meta; # https://wiki.fhem.de/wiki/Meta for SVN Revision
use FHEM::Meta; # https://wiki.fhem.de/wiki/Meta for SVN Revision

#$| = 1; #Puffern abschalten, Hilfreich für PEARL WARNINGS Search

Expand Down Expand Up @@ -94,7 +94,10 @@ sub SIGNALduino_TOOL_Initialize {
.' IODev IODev_Repeats:1,2,3,4,5,6,7,8,9,10,15,20'
.' JSON_Check_exceptions JSON_write_ERRORs:no,yes JSON_write_at_any_time:no,yes'
.' RAWMSG_M1 RAWMSG_M2 RAWMSG_M3';
# return FHEM::Meta::InitMod( __FILE__, $hash ); # meta module brings warnings with name SIGNALduino_TOOL, development people does not react

# meta module brings warnings with name SIGNALduino_TOOL, development people does not react
# new message on forum https://forum.fhem.de/index.php?topic=136487.msg1298722#new
# return FHEM::Meta::InitMod( __FILE__, $hash );
}

################################
Expand All @@ -109,6 +112,9 @@ sub SIGNALduino_TOOL_Define {
my $typ = $hash->{TYPE};
my $file = AttrVal($name,'File_input','');

# 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
return $@ unless ( FHEM::Meta::SetInternals($hash) );

if(@arg != 2) { return "Usage: define <name> $name"; }

### Check SIGNALduino min one definded ###
Expand Down Expand Up @@ -153,7 +159,6 @@ sub SIGNALduino_TOOL_Define {
$hash->{STATE} = 'Defined';
readingsSingleUpdate($hash, 'state' , 'Defined' , 0);

return $@ unless ( FHEM::Meta::SetInternals($hash) );
return;
}

Expand Down Expand Up @@ -836,6 +841,7 @@ sub SIGNALduino_TOOL_Set {
close $PrintFile;
$path = AttrVal($name,'Path','./FHEM/SD_TOOL/'); # RESET --> Path | # Path if not define
}
%{$TestData_prepared} = (); # RESET --> memory for tests
}
SIGNALduino_TOOL_deleteInternals($hash,'dispatchDeviceTime,dispatchDevice,dispatchSTATE');
return 'your file SD_ProtocolList.json are saved';
Expand Down Expand Up @@ -4803,6 +4809,7 @@ sub SIGNALduino_TOOL_cc1101read_Full {
}
}
},
"version": "v1.2.6",
"release_status": "stable",
"resources": {
"bugtracker": {
Expand Down Expand Up @@ -4836,7 +4843,6 @@ sub SIGNALduino_TOOL_cc1101read_Full {
"web": "https://wiki.fhem.de/wiki/SIGNALduino_TOOL"
}
},
"version": "v1.2.5",
"x_fhem_maintainer": [
"HomeAuto_User",
"elektron-bbs"
Expand Down

0 comments on commit c32114c

Please sign in to comment.