mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
10_RHASSPY: small changes to test mode
git-svn-id: https://svn.fhem.de/fhem/trunk@25862 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
90cc9056a0
commit
b95152f250
@ -320,7 +320,7 @@ sub Define {
|
||||
|
||||
$hash->{defaultRoom} = $defaultRoom;
|
||||
my $language = $h->{language} // shift @{$anon} // lc AttrVal('global','language','en');
|
||||
$hash->{MODULE_VERSION} = '0.5.22';
|
||||
$hash->{MODULE_VERSION} = '0.5.23';
|
||||
$hash->{baseUrl} = $Rhasspy;
|
||||
initialize_Language($hash, $language) if !defined $hash->{LANGUAGE} || $hash->{LANGUAGE} ne $language;
|
||||
$hash->{LANGUAGE} = $language;
|
||||
@ -620,7 +620,7 @@ sub Get {
|
||||
my $start = gettimeofday();
|
||||
my $tHash = { hash=>$hash, CL=>$hash->{CL}, reading=> 'testResult', start=>$start};
|
||||
$hash->{asyncGet} = $tHash;
|
||||
InternalTimer(gettimeofday()+4, sub {
|
||||
InternalTimer(gettimeofday()+30, sub {
|
||||
asyncOutput($tHash->{CL}, "Test file $values[0] is initiated. See if internal 'testline' is rising and check testResult reading later");
|
||||
delete($hash->{asyncGet});
|
||||
}, $tHash, 0);
|
||||
@ -3196,6 +3196,7 @@ sub respond {
|
||||
my $delay = shift // ReadingsNum($hash->{NAME}, "sessionTimeout_$data->{siteId}", $hash->{sessionTimeout});
|
||||
|
||||
if ( defined $hash->{testline} ) {
|
||||
$response = $response->{text} if ref $response eq 'HASH';
|
||||
$hash->{helper}->{test}->{result}->[$hash->{testline}] .= " => Response: $response";
|
||||
$hash->{testline}++;
|
||||
return testmode_next($hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user