mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
37_fakeRoku.pm: allow multiple fakeRoku devices
git-svn-id: https://svn.fhem.de/fhem/trunk@16239 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cdacb70d0f
commit
5419fcc5dd
@ -76,7 +76,6 @@ fakeRoku_Define($$)
|
|||||||
|
|
||||||
my $name = $a[0];
|
my $name = $a[0];
|
||||||
my $id = $a[2];
|
my $id = $a[2];
|
||||||
$id = undef;
|
|
||||||
|
|
||||||
$hash->{NAME} = $name;
|
$hash->{NAME} = $name;
|
||||||
$hash->{ID} = $id?$id:'';
|
$hash->{ID} = $id?$id:'';
|
||||||
@ -90,7 +89,7 @@ fakeRoku_Define($$)
|
|||||||
$hash->{"HAS_IO::Socket::Multicast"} = $fakeRoku_hasMulticast;
|
$hash->{"HAS_IO::Socket::Multicast"} = $fakeRoku_hasMulticast;
|
||||||
|
|
||||||
$hash->{serial} = md5_hex(getUniqueId());
|
$hash->{serial} = md5_hex(getUniqueId());
|
||||||
$hash->{serial} .= ":$hash->{ID}" if( $hash->{ID} );
|
$hash->{serial} .= "-$hash->{ID}" if( $hash->{ID} );
|
||||||
|
|
||||||
$hash->{fhemHostname} = hostname();
|
$hash->{fhemHostname} = hostname();
|
||||||
$hash->{fhemIP} = fakeRoku_getLocalIP();
|
$hash->{fhemIP} = fakeRoku_getLocalIP();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user