template(name="LightinatorLog" type="string" string="/var/log/lightinator.log")
template(name="LightinatorWithIP" type="list") {
property(name="timegenerated" dateFormat="rfc3339")
constant(value=" ")
property(name="fromhost-ip")
constant(value=" : ")
property(name="rawmsg")
constant(value="\n")
}
ruleset(name="LightinatorLogProcessing") {
action(type="omfile" dynaFile="LightinatorLog" template="LightinatorWithIP")
stop
}
module(load="imudp")
input(type="imudp" port="514" ruleset="LightinatorLogProcessing")
die Version ist live, sobald die CI durchgelafuen ist.sub FBUser() {
use LWP::UserAgent;
use Data::Dumper;
my $agent = LWP::UserAgent->new( env_proxy => 1, keep_alive => 1, Content_Type => 'text/xml; charset=utf-8', protocols_allowed => ['http'], timeout => 10);
my $url = "http://ip der 7390";
my $response = $agent->get( $url );
Log3 "FBUser", 3, "FBUser: \n" . Dumper($response->content);
return Dumper($response->content);
}in Deine 99_myUtils packen könntests und dann in der Fhem Kommandozeile mit {FBUser} ausführen würdest. Den Log-Eintrag dann bitte einmal posten. Danke Dir
FRITZ!Box Fon WLAN 7390:
"activeUsers":[[],
{"pid":"loginPage","users":[[],[]]}
Not a HASH reference at ./FHEM/72_FritzSmart.pm line 9977.
FRITZ!Box 7590:
"activeUsers":[{"value":"fritz2355","text":"fritz2355","UID":"boxuser89"}],
{"pid":"loginPage","users":[{"value":"fritz2355","text":"fritz2355","UID":"boxuser89"}],"pushBtnLogin":false,"fromInternet":false,"pushmailEnabled":true,"sid":"0000000000000000"}
FRITZ!WLAN Repeater 310
"activeUsers":[],
{"pid":"loginPage","users":[]}