Originally posted by: <email address deleted>
Hallo,
ich nutze FHEM auf einer 7390 und wollte die Funktion WhoIsAtHome aus dem
Wiki nutzen.
Ich habe alles nach der Anleitung gemacht, trotzdem ist immer der Status
"Abwesend". Auf der Fritzbox läuft die Firmware 84.05.22.
Gibt es da Änderungen, so das es nicht laufen kann?
Gruß, René
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
also definiert habe ich folgendes:
define iPhone_Rene dummy
attr iPhone_Rene icon icoHouse.png
attr iPhone_Rene room WhoIsAtHome
attr iPhone_Rene setList Anwesend Abwesend
define WLAN_iPhone_Rene notify WLAN {FBWlanStat('iPhone-Rene',
"iPhone_Rene")}
define search_for_iPhone_Rene at +*00:05:00 trigger WLAN
attr search_for_iPhone_Rene room WhoIsAtHome
Und in der Fritzbox ist unter WLAN auch der Name "iPhone-Rene" drin. Auch
wenn ich nur nach "iPhone" suche ist immer Abwesend angesagt...
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Hallo,
war da nicht ein Problem mit den - und _ ??
Ich meine irgendsowas spuckt in der FB rum.
Grüße
Am Freitag, 17. August 2012 15:04:18 UTC+2 schrieb Rene:
>
> also definiert habe ich folgendes:
>
> define iPhone_Rene dummy
> attr iPhone_Rene icon icoHouse.png
> attr iPhone_Rene room WhoIsAtHome
> attr iPhone_Rene setList Anwesend Abwesend
> define WLAN_iPhone_Rene notify WLAN {FBWlanStat('iPhone-Rene',
> "iPhone_Rene")}
> define search_for_iPhone_Rene at +*00:05:00 trigger WLAN
> attr search_for_iPhone_Rene room WhoIsAtHome
>
> Und in der Fritzbox ist unter WLAN auch der Name "iPhone-Rene" drin. Auch
> wenn ich nur nach "iPhone" suche ist immer Abwesend angesagt...
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
jetzt habe ich mal das probiert:
http://fhemwiki.de/wiki/FritzBox:_ActiveDevices
Laut der Beschreibung soll es mit dem "-" umgehen können. Geht aber auch
nicht.
ist das in den utils denn noch richtig:
qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice$number/name);
oder hat sich das mit einer Firmware verändert?
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Das ist klar, das er iPhone nicht findet, weil er schon den kompletten
Namen suchen muss, bzw. finden.
Ja, das Netzwerkgerät darf keine _ haben.
In der While-Schleife ist die Anzahl auf 15 begrenzt. Setz mal den Wert
höher, vielleicht ändert sich dann der Wert...
Lg
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
ne, leider nicht... Und ich habe schon testweise auf 150 gesetzt...
Am Freitag, 17. August 2012 16:11:52 UTC+2 schrieb Sebastian:
>
> Das ist klar, das er iPhone nicht findet, weil er schon den kompletten
> Namen suchen muss, bzw. finden.
>
> Ja, das Netzwerkgerät darf keine _ haben.
>
> In der While-Schleife ist die Anzahl auf 15 begrenzt. Setz mal den Wert
> höher, vielleicht ändert sich dann der Wert...
>
> Lg
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
It should work. Can you post your exact call for FBWLanDevActive and the
exact name your iphone is showing up in your Fritzbox. Take care of
capitals in the names. Post them exactly as they are shown in the Fritzbox.
{HT}
Op vrijdag 17 augustus 2012 16:19:48 UTC+2 schreef Rene het volgende:
>
> ne, leider nicht... Und ich habe schon testweise auf 150 gesetzt...
>
>
>
> Am Freitag, 17. August 2012 16:11:52 UTC+2 schrieb Sebastian:
>>
>> Das ist klar, das er iPhone nicht findet, weil er schon den kompletten
>> Namen suchen muss, bzw. finden.
>>
>> Ja, das Netzwerkgerät darf keine _ haben.
>>
>> In der While-Schleife ist die Anzahl auf 15 begrenzt. Setz mal den Wert
>> höher, vielleicht ändert sich dann der Wert...
>>
>> Lg
>>
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Das Problem hatte ich auch.
Im IPhone unter Einstellungen/Info/Name den Namen ändern in z.B iPhoneRene ( einfach ohne Leerzeichen und Sonderzeichen ). Das dann auch auf der FB aktualisieren.
In der Sub die Anzahl der zu Netzwerkgeräte von 15 auf 30 oder So viele wie maximal an der FB bisher angemeldet waren erhöhen
Und es geht seit dem ohne Probleme. Nur das 4S meiner Frau bucht sich bei Nichtnutzung aus dem WLan aus, mein IPhone 4 bleibt drin, solange ich daheim bin. Das ist etwas ärgerlich, da ich einige Dinge in Abhängigkeit von dem Zu Hause Status schalte.
Lg det.
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Hallo,
eine Frage.
Ich hab fhem auf einer 7390 laufen welche NICHT der Router ist.
Kann ich mit dem WhoIsAtHome auch die Router-FB (auch eine 7390) abfragen?
Danke schonmal für die Antwort.
Grüße
Am Freitag, 17. August 2012 17:04:44 UTC+2 schrieb Tapir Fink:
>
> Das Problem hatte ich auch.
> Im IPhone unter Einstellungen/Info/Name den Namen ändern in z.B iPhoneRene
> ( einfach ohne Leerzeichen und Sonderzeichen ). Das dann auch auf der FB
> aktualisieren.
> In der Sub die Anzahl der zu Netzwerkgeräte von 15 auf 30 oder So viele
> wie maximal an der FB bisher angemeldet waren erhöhen
> Und es geht seit dem ohne Probleme. Nur das 4S meiner Frau bucht sich bei
> Nichtnutzung aus dem WLan aus, mein IPhone 4 bleibt drin, solange ich
> daheim bin. Das ist etwas ärgerlich, da ich einige Dinge in Abhängigkeit
> von dem Zu Hause Status schalte.
>
> Lg det.
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
In the Fritzbox i have:
iPhone-Rene192.168.21.31XX:XX:XX:XX:XX:XX58 Mbit/s2,4 GHz, WPA2, WMMand
my FBWLanDevActive call is:
{FBWLanDevActive('iPhone-Rene', "iPhone_Rene")}
and the definition:
define iPhone_Rene dummy
attr iPhone_Rene icon icoHouse.png
attr iPhone_Rene room WhoIsAtHome
attr iPhone_Rene setList Anwesend Abwesend
define WLAN_iPhone_Rene notify WLAN {FBWLanDevActive('iPhone-Rene',
"iPhone_Rene")}
define search_for_iPhone_Rene at +*00:05:00 trigger WLAN
attr search_for_iPhone_Rene room WhoIsAtHome
does it help?
Am Freitag, 17. August 2012 16:36:43 UTC+2 schrieb dudler:
>
> It should work. Can you post your exact call for FBWLanDevActive and the
> exact name your iphone is showing up in your Fritzbox. Take care of
> capitals in the names. Post them exactly as they are shown in the Fritzbox.
>
> {HT}
>
> Op vrijdag 17 augustus 2012 16:19:48 UTC+2 schreef Rene het volgende:
>>
>> ne, leider nicht... Und ich habe schon testweise auf 150 gesetzt...
>>
>>
>>
>> Am Freitag, 17. August 2012 16:11:52 UTC+2 schrieb Sebastian:
>>>
>>> Das ist klar, das er iPhone nicht findet, weil er schon den kompletten
>>> Namen suchen muss, bzw. finden.
>>>
>>> Ja, das Netzwerkgerät darf keine _ haben.
>>>
>>> In der While-Schleife ist die Anzahl auf 15 begrenzt. Setz mal den Wert
>>> höher, vielleicht ändert sich dann der Wert...
>>>
>>> Lg
>>>
>>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
> Kann ich mit dem WhoIsAtHome auch die Router-FB (auch eine 7390) abfragen?
Nein, da die Loesung aus fhemwiki ein Kommando absetzt.
Theoretisch muesste das auch ueber Web-Abfrage klappen (zum Anmelden kann man
FB_getPage aus FritzBoxUtils.pm verwenden), ist aber einiges an Arbeit, und es
gibts nichts fertiges zum abschreiben.
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Hallo,
danke Rudi.
Wär ja zu schön gewesen wenn man für die Abfrage nur die IP-Adresse angeben
müsste.
Grüße
Am Freitag, 17. August 2012 18:12:12 UTC+2 schrieb Rudolf Koenig:
>
> > Kann ich mit dem WhoIsAtHome auch die Router-FB (auch eine 7390)
> abfragen?
>
> Nein, da die Loesung aus fhemwiki ein Kommando absetzt.
>
> Theoretisch muesste das auch ueber Web-Abfrage klappen (zum Anmelden kann
> man
> FB_getPage aus FritzBoxUtils.pm verwenden), ist aber einiges an Arbeit,
> und es
> gibts nichts fertiges zum abschreiben.
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hallo,
ich bin ja nach wie vor ahnungslos, aber vielleicht tuts das hier
?
Gruß
Carsten
Am Freitag, 17. August 2012 18:22:28 UTC+2 schrieb puschel74:
>
> Hallo,
>
> danke Rudi.
> Wär ja zu schön gewesen wenn man für die Abfrage nur die IP-Adresse
> angeben müsste.
>
> Grüße
>
> Am Freitag, 17. August 2012 18:12:12 UTC+2 schrieb Rudolf Koenig:
>>
>> > Kann ich mit dem WhoIsAtHome auch die Router-FB (auch eine 7390)
>> abfragen?
>>
>> Nein, da die Loesung aus fhemwiki ein Kommando absetzt.
>>
>> Theoretisch muesste das auch ueber Web-Abfrage klappen (zum Anmelden kann
>> man
>> FB_getPage aus FritzBoxUtils.pm verwenden), ist aber einiges an Arbeit,
>> und es
>> gibts nichts fertiges zum abschreiben.
>>
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
@Carsten
interessant! Das habe ich gleich mal ausprobiert und mich per telnet auf
FHEM Port 7072 eingeloggt. Dann
{qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice15/name)}
eingeben. Aber es passiert nichts? Keine Ausgabe, egal was für eine Zahl
ich verwende...
Merkwürdig...
Am Freitag, 17. August 2012 18:38:19 UTC+2 schrieb Carsten:
>
> Hallo,
>
> ich bin ja nach wie vor ahnungslos, aber vielleicht tuts das hier
> ?
>
> Gruß
>
> Carsten
>
> Am Freitag, 17. August 2012 18:22:28 UTC+2 schrieb puschel74:
>>
>> Hallo,
>>
>> danke Rudi.
>> Wär ja zu schön gewesen wenn man für die Abfrage nur die IP-Adresse
>> angeben müsste.
>>
>> Grüße
>>
>> Am Freitag, 17. August 2012 18:12:12 UTC+2 schrieb Rudolf Koenig:
>>>
>>> > Kann ich mit dem WhoIsAtHome auch die Router-FB (auch eine 7390)
>>> abfragen?
>>>
>>> Nein, da die Loesung aus fhemwiki ein Kommando absetzt.
>>>
>>> Theoretisch muesste das auch ueber Web-Abfrage klappen (zum Anmelden
>>> kann man
>>> FB_getPage aus FritzBoxUtils.pm verwenden), ist aber einiges an Arbeit,
>>> und es
>>> gibts nichts fertiges zum abschreiben.
>>>
>>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
I still don see what is wrong. Could you try
{FBWLanDevActive('iPhone', "iPhone_Rene")}
in the command line from the web interface? It should check for at least 1
device which name starts with "iPhone". And set the variable iPhone_Rene
according to its findings. For testing purposes set the number of loops to
150.
{HT}
Op vrijdag 17 augustus 2012 18:03:43 UTC+2 schreef Rene het volgende:
>
> In the Fritzbox i have:
>
> iPhone-Rene192.168.21.31XX:XX:XX:XX:XX:XX58 Mbit/s2,4 GHz, WPA2, WMMand
> my FBWLanDevActive call is:
>
> {FBWLanDevActive('iPhone-Rene', "iPhone_Rene")}
>
>
> and the definition:
>
> define iPhone_Rene dummy
> attr iPhone_Rene icon icoHouse.png
> attr iPhone_Rene room WhoIsAtHome
> attr iPhone_Rene setList Anwesend Abwesend
> define WLAN_iPhone_Rene notify WLAN {FBWLanDevActive('iPhone-Rene',
> "iPhone_Rene")}
> define search_for_iPhone_Rene at +*00:05:00 trigger WLAN
> attr search_for_iPhone_Rene room WhoIsAtHome
>
>
> does it help?
>
> Am Freitag, 17. August 2012 16:36:43 UTC+2 schrieb dudler:
>>
>> It should work. Can you post your exact call for FBWLanDevActive and the
>> exact name your iphone is showing up in your Fritzbox. Take care of
>> capitals in the names. Post them exactly as they are shown in the Fritzbox.
>>
>> {HT}
>>
>> Op vrijdag 17 augustus 2012 16:19:48 UTC+2 schreef Rene het volgende:
>>>
>>> ne, leider nicht... Und ich habe schon testweise auf 150 gesetzt...
>>>
>>>
>>>
>>> Am Freitag, 17. August 2012 16:11:52 UTC+2 schrieb Sebastian:
>>>>
>>>> Das ist klar, das er iPhone nicht findet, weil er schon den kompletten
>>>> Namen suchen muss, bzw. finden.
>>>>
>>>> Ja, das Netzwerkgerät darf keine _ haben.
>>>>
>>>> In der While-Schleife ist die Anzahl auf 15 begrenzt. Setz mal den
>>>> Wert höher, vielleicht ändert sich dann der Wert...
>>>>
>>>> Lg
>>>>
>>>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
@Puschel74
Ja, es ist in der Art machbar, unter bestimmten Vorraussetzungen!
Fhem läuft bei mir auf einer FritzBox 7270, meine WLAN-Geräte buchen sich
aber bei meiner FritzBox 6360 ein. Da meine Netzwerkgeräte dann aber auch
in der 7270 als "online" angezeigt werden ist es so wiederrum möglich. Der
Nachteil ist halt nur, das es nach verlassen des WLANs etwa 15 min dauert,
bis die 7270 dies registriert und das Gerät wieder als "offline" setzt.
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
@puschel74
Ja, es ist in der Art machbar, unter bestimmten Vorraussetzungen!
Fhem läuft bei mir auf einer FritzBox 7270, meine WLAN-Geräte buchen sich
aber bei meiner FritzBox 6360 ein. Da meine Netzwerkgeräte dann aber auch
in der 7270 als "online" angezeigt werden ist es so wiederrum möglich. Der
Nachteil ist halt nur, das es nach verlassen des WLANs etwa 15 min dauert,
bis die 7270 dies registriert und das Gerät wieder als "offline" setzt.
Also ist es mit zwei FirtzBoxen schon mal möglich, so wie oben
geschrieben...
Lg
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
@dudler
i try that. I did a shutdown restart and after that i put {FBWLanDevActive('iPhone',
"iPhone_Rene")} in the commandline and press "save" -> nothing change! The
state of my iPhone is "???"
When i set this command via telnet:7072 the state changes to "Abwesend".
Can it be that some access-rights are not correct set?
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
instead of hitting the save-button (which only saves the config-files, but does not execute what is in the commandfield), just type the command into the commandline field and hit .
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
ok, i try that - but the result is the same.
Am Samstag, 18. August 2012 09:26:43 UTC+2 schrieb UliM:
>
> instead of hitting the save-button (which only saves the config-files, but
> does not execute what is in the commandfield), just type the command into
> the commandline field and hit .
>
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
"The same" meaning "nothing"?
Did you check the log - any entries? Try putting some log-stuff into your code, e.g. add a line at the beginning like
Log 1, "Routine wurde gestartet";
then reload your .pm, re-execute the command and check the log. So you can see if the routine was excuted at all.
If that works, put the log-line further down in your routine, e.g. within a relevant if-statement to see if that part is executes..
Did you post the code of your routine yet?
Otherwise, set verbose 5, enter the command as before and post the log content here, maybe someone can help based on that.
Best, Uli
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Deutsch oder englisch? Uli klingt irgendwie deutsch :-)
es sieht so aus, als wenn das Script abbricht?
sub
FBWLanDevActive($$)
{
my ($net_device1)=@_[0];
my $myLength=length($net_device1);
my $number=0;
my $status=0;
my $net_device="";
my $net_device2="";
my $attendance="";
while($number <= *25*){
$net_device=qx(/usr/bin/ctlmgr_ctl r landevice
settings/landevice$number/name);
*Log $number, $net_device;*
$net_device2=substr($net_device, 0, $myLength);
if($net_device2 eq $net_device1){
$status=qx(/usr/bin/ctlmgr_ctl r landevice
settings/landevice$number/active);
if ($status == 1) {last;}
}
$number++;
}
if ($status == 1) {$attendance="Anwesend";}else{$attendance="Abwesend";}
if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
}
Damit müssten doch zumindest 25 Logeinträge kommen und in $netdevice sollte
auch was drin stehen, oder? Sind es aber nicht...
2012.08.18 10:11:59 0: Server started (version 5.2 from 2011-12-31 ($Id:
fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21, pid
16400)
2012.08.18 10:12:00 4: Connection accepted from FHEMWEB:192.168.21.20:64797
2012.08.18 10:12:01 5: Loading ./FHEM/98_SVG.pm
2012.08.18 10:12:01 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem/
2012.08.18 10:12:02 4: /fhem/ / RL: 699 / text/html; charset=UTF-8 /
Content-Encoding: gzip
/
2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET
/fhem?cmd=%7BFBWLanDevActive%28%27iPhone%27%2C+%22iPhone_Rene%22%29%7D
2012.08.18 10:12:09 5: Cmd: >{FBWLanDevActive('iPhone', "iPhone_Rene")}<
2012.08.18 10:12:09 0:
2012.08.18 10:12:09 1:
2012.08.18 10:12:09 2:
2012.08.18 10:12:09 3:
2012.08.18 10:12:09 4:
2012.08.18 10:12:09 5:
2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem
2012.08.18 10:12:09 4: /fhem / RL: 699 / text/html; charset=UTF-8 /
Content-Encoding: gzip
/
2012.08.18 10:13:07 4: Connection closed for FHEMWEB:192.168.21.20:64797
Eine Idee?
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Syntax von Log anschauen:
Log ,
also zB
Log 1, "$number $text";
oder
Log 1, "Beschriftung: " . $text;
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
I can perfectly read german but not write it. So don´t bother about
english or german.
The script stops if the searched string is found. So it seems it is
found at the 5 th iteration. Like Uli wrote, change
Log $number, $net_device;
in
Log 1 "$number, $net_device";
to see what is happening. But it looks as for some reason the result
is not written to the variable.
It could als help if you can put
Log 1, "$attendance, @_[1], $value{@_[1]}";
as the last line in the procedure.
btw you did a "shutdown restart"or a reload of your perl script before testing?
{HT}
2012/8/18 Rene :
> Deutsch oder englisch? Uli klingt irgendwie deutsch :-)
>
> es sieht so aus, als wenn das Script abbricht?
>
> sub
> FBWLanDevActive($$)
> {
> my ($net_device1)=@_[0];
> my $myLength=length($net_device1);
> my $number=0;
> my $status=0;
> my $net_device="";
> my $net_device2="";
> my $attendance="";
> while($number <= 25){
> $net_device=qx(/usr/bin/ctlmgr_ctl r landevice
> settings/landevice$number/name);
> Log $number, $net_device;
> $net_device2=substr($net_device, 0, $myLength);
> if($net_device2 eq $net_device1){
> $status=qx(/usr/bin/ctlmgr_ctl r landevice
> settings/landevice$number/active);
> if ($status == 1) {last;}
> }
> $number++;
> }
> if ($status == 1) {$attendance="Anwesend";}else{$attendance="Abwesend";}
> if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
> }
>
>
> Damit müssten doch zumindest 25 Logeinträge kommen und in $netdevice sollte
> auch was drin stehen, oder? Sind es aber nicht...
>
> 2012.08.18 10:11:59 0: Server started (version 5.2 from 2011-12-31 ($Id:
> fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21, pid
> 16400)
> 2012.08.18 10:12:00 4: Connection accepted from FHEMWEB:192.168.21.20:64797
> 2012.08.18 10:12:01 5: Loading ./FHEM/98_SVG.pm
> 2012.08.18 10:12:01 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem/
> 2012.08.18 10:12:02 4: /fhem/ / RL: 699 / text/html; charset=UTF-8 /
> Content-Encoding: gzip
> /
> 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET
> /fhem?cmd=%7BFBWLanDevActive%28%27iPhone%27%2C+%22iPhone_Rene%22%29%7D
> 2012.08.18 10:12:09 5: Cmd: >{FBWLanDevActive('iPhone', "iPhone_Rene")}<
> 2012.08.18 10:12:09 0:
> 2012.08.18 10:12:09 1:
> 2012.08.18 10:12:09 2:
> 2012.08.18 10:12:09 3:
> 2012.08.18 10:12:09 4:
> 2012.08.18 10:12:09 5:
> 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem
> 2012.08.18 10:12:09 4: /fhem / RL: 699 / text/html; charset=UTF-8 /
> Content-Encoding: gzip
> /
> 2012.08.18 10:13:07 4: Connection closed for FHEMWEB:192.168.21.20:64797
>
>
>
> Eine Idee?
>
> --
> To unsubscribe from this group, send email to
> fhem-users+unsubscribe@googlegroups.com
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hi,
i did a "shutdown restart" and today a "rereadcfg" every test. Not i have
following:
sub FBWLanDevActive($$) {
my ($net_device1)=@_[0];
my $myLength=length($net_device1);
my $number=0;
my $status=0;
my $net_device="";
my $net_device2="";
my $attendance="";
while($number <= 25){
$net_device=qx(/usr/bin/ctlmgr_ctl r landevice
settings/landevice$number/name);
$net_device2=substr($net_device, 0, $myLength);
*Log 1,"$number, $net_device";*
if($net_device2 eq $net_device1){
$status=qx(/usr/bin/ctlmgr_ctl r landevice
settings/landevice$number/active);
if ($status == 1) {last;}
}
$number++;
}
if ($status == 1) {$attendance="Anwesend";}else{$attendance="Abwesend";}
if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
}
And the log is:
2012.08.19 14:11:40 0: Server started (version 5.2 from 2011-12-31 ($Id:
fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21, pid
21590)
2012.08.19 14:11:57 1: 0,
2012.08.19 14:11:57 1: 1,
2012.08.19 14:11:57 1: 2,
2012.08.19 14:11:57 1: 3,
2012.08.19 14:11:57 1: 4,
2012.08.19 14:11:57 1: 5,
2012.08.19 14:11:57 1: 6,
2012.08.19 14:11:57 1: 7,
2012.08.19 14:11:57 1: 8,
2012.08.19 14:11:57 1: 9,
2012.08.19 14:11:57 1: 10,
2012.08.19 14:11:57 1: 11,
2012.08.19 14:11:57 1: 12,
2012.08.19 14:11:57 1: 13,
2012.08.19 14:11:57 1: 14,
2012.08.19 14:11:57 1: 15,
2012.08.19 14:11:57 1: 16,
2012.08.19 14:11:57 1: 17,
2012.08.19 14:11:57 1: 18,
2012.08.19 14:11:57 1: 19,
2012.08.19 14:11:57 1: 20,
2012.08.19 14:11:57 1: 21,
2012.08.19 14:11:57 1: 22,
2012.08.19 14:11:57 1: 23,
2012.08.19 14:11:57 1: 24,
2012.08.19 14:11:57 1: 25,
Seems, there is no output from the net device - also when i change the
counter value to 125... Strange...
Bye, René
Am Samstag, 18. August 2012 15:26:53 UTC+2 schrieb dudler:
>
> I can perfectly read german but not write it. So don´t bother about
> english or german.
>
> The script stops if the searched string is found. So it seems it is
> found at the 5 th iteration. Like Uli wrote, change
> Log $number, $net_device;
> in
> Log 1 "$number, $net_device";
> to see what is happening. But it looks as for some reason the result
> is not written to the variable.
>
> It could als help if you can put
> Log 1, "$attendance, @_[1], $value{@_[1]}";
> as the last line in the procedure.
>
> btw you did a "shutdown restart"or a reload of your perl script before
> testing?
>
> {HT}
> 2012/8/18 Rene >:
> > Deutsch oder englisch? Uli klingt irgendwie deutsch :-)
> >
> > es sieht so aus, als wenn das Script abbricht?
> >
> > sub
> > FBWLanDevActive($$)
> > {
> > my ($net_device1)=@_[0];
> > my $myLength=length($net_device1);
> > my $number=0;
> > my $status=0;
> > my $net_device="";
> > my $net_device2="";
> > my $attendance="";
> > while($number <= 25){
> > $net_device=qx(/usr/bin/ctlmgr_ctl r landevice
> > settings/landevice$number/name);
> > Log $number, $net_device;
> > $net_device2=substr($net_device, 0, $myLength);
> > if($net_device2 eq $net_device1){
> > $status=qx(/usr/bin/ctlmgr_ctl r landevice
> > settings/landevice$number/active);
> > if ($status == 1) {last;}
> > }
> > $number++;
> > }
> > if ($status == 1)
> {$attendance="Anwesend";}else{$attendance="Abwesend";}
> > if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
> > }
> >
> >
> > Damit müssten doch zumindest 25 Logeinträge kommen und in $netdevice
> sollte
> > auch was drin stehen, oder? Sind es aber nicht...
> >
> > 2012.08.18 10:11:59 0: Server started (version 5.2 from 2011-12-31 ($Id:
> > fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21,
> pid
> > 16400)
> > 2012.08.18 10:12:00 4: Connection accepted from FHEMWEB:
> 192.168.21.20:64797
> > 2012.08.18 10:12:01 5: Loading ./FHEM/98_SVG.pm
> > 2012.08.18 10:12:01 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem/
> > 2012.08.18 10:12:02 4: /fhem/ / RL: 699 / text/html; charset=UTF-8 /
> > Content-Encoding: gzip
> > /
> > 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET
> > /fhem?cmd=%7BFBWLanDevActive%28%27iPhone%27%2C+%22iPhone_Rene%22%29%7D
> > 2012.08.18 10:12:09 5: Cmd: >{FBWLanDevActive('iPhone', "iPhone_Rene")}<
> > 2012.08.18 10:12:09 0:
> > 2012.08.18 10:12:09 1:
> > 2012.08.18 10:12:09 2:
> > 2012.08.18 10:12:09 3:
> > 2012.08.18 10:12:09 4:
> > 2012.08.18 10:12:09 5:
> > 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem
> > 2012.08.18 10:12:09 4: /fhem / RL: 699 / text/html; charset=UTF-8 /
> > Content-Encoding: gzip
> > /
> > 2012.08.18 10:13:07 4: Connection closed for FHEMWEB:192.168.21.20:64797
> >
> >
> >
> > Eine Idee?
> >
> > --
> > To unsubscribe from this group, send email to
> > fhem-users+...@googlegroups.com
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hi Rene
Thanks. I think the issue is that you seem to use the AVM version of
FHEM. As far as I know you have less control on the Fritzbox
functionalities with that version. So I guess you will never be able
to use it unless you switch to the FHEM software provided by FHEM.
{HT}
Btw "reload 99_myUtils.pm" should be sufficient fot this tests.
2012/8/19 Rene :
> Hi,
>
> i did a "shutdown restart" and today a "rereadcfg" every test. Not i have
> following:
>
> sub FBWLanDevActive($$) {
> my ($net_device1)=@_[0];
> my $myLength=length($net_device1);
> my $number=0;
> my $status=0;
> my $net_device="";
> my $net_device2="";
> my $attendance="";
> while($number <= 25){
> $net_device=qx(/usr/bin/ctlmgr_ctl r landevice
> settings/landevice$number/name);
> $net_device2=substr($net_device, 0, $myLength);
> Log 1,"$number, $net_device";
> if($net_device2 eq $net_device1){
> $status=qx(/usr/bin/ctlmgr_ctl r landevice
> settings/landevice$number/active);
> if ($status == 1) {last;}
> }
> $number++;
> }
> if ($status == 1) {$attendance="Anwesend";}else{$attendance="Abwesend";}
> if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
> }
>
> And the log is:
>
> 2012.08.19 14:11:40 0: Server started (version 5.2 from 2011-12-31 ($Id:
> fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21, pid
> 21590)
> 2012.08.19 14:11:57 1: 0,
> 2012.08.19 14:11:57 1: 1,
> 2012.08.19 14:11:57 1: 2,
> 2012.08.19 14:11:57 1: 3,
> 2012.08.19 14:11:57 1: 4,
> 2012.08.19 14:11:57 1: 5,
> 2012.08.19 14:11:57 1: 6,
> 2012.08.19 14:11:57 1: 7,
> 2012.08.19 14:11:57 1: 8,
> 2012.08.19 14:11:57 1: 9,
> 2012.08.19 14:11:57 1: 10,
> 2012.08.19 14:11:57 1: 11,
> 2012.08.19 14:11:57 1: 12,
> 2012.08.19 14:11:57 1: 13,
> 2012.08.19 14:11:57 1: 14,
> 2012.08.19 14:11:57 1: 15,
> 2012.08.19 14:11:57 1: 16,
> 2012.08.19 14:11:57 1: 17,
> 2012.08.19 14:11:57 1: 18,
> 2012.08.19 14:11:57 1: 19,
> 2012.08.19 14:11:57 1: 20,
> 2012.08.19 14:11:57 1: 21,
> 2012.08.19 14:11:57 1: 22,
> 2012.08.19 14:11:57 1: 23,
> 2012.08.19 14:11:57 1: 24,
> 2012.08.19 14:11:57 1: 25,
>
>
> Seems, there is no output from the net device - also when i change the
> counter value to 125... Strange...
>
>
> Bye, René
>
>
> Am Samstag, 18. August 2012 15:26:53 UTC+2 schrieb dudler:
>>
>> I can perfectly read german but not write it. So don´t bother about
>> english or german.
>>
>> The script stops if the searched string is found. So it seems it is
>> found at the 5 th iteration. Like Uli wrote, change
>> Log $number, $net_device;
>> in
>> Log 1 "$number, $net_device";
>> to see what is happening. But it looks as for some reason the result
>> is not written to the variable.
>>
>> It could als help if you can put
>> Log 1, "$attendance, @_[1], $value{@_[1]}";
>> as the last line in the procedure.
>>
>> btw you did a "shutdown restart"or a reload of your perl script before
>> testing?
>>
>> {HT}
>> 2012/8/18 Rene :
>> > Deutsch oder englisch? Uli klingt irgendwie deutsch :-)
>> >
>> > es sieht so aus, als wenn das Script abbricht?
>> >
>> > sub
>> > FBWLanDevActive($$)
>> > {
>> > my ($net_device1)=@_[0];
>> > my $myLength=length($net_device1);
>> > my $number=0;
>> > my $status=0;
>> > my $net_device="";
>> > my $net_device2="";
>> > my $attendance="";
>> > while($number <= 25){
>> > $net_device=qx(/usr/bin/ctlmgr_ctl r landevice
>> > settings/landevice$number/name);
>> > Log $number, $net_device;
>> > $net_device2=substr($net_device, 0, $myLength);
>> > if($net_device2 eq $net_device1){
>> > $status=qx(/usr/bin/ctlmgr_ctl r landevice
>> > settings/landevice$number/active);
>> > if ($status == 1) {last;}
>> > }
>> > $number++;
>> > }
>> > if ($status == 1)
>> > {$attendance="Anwesend";}else{$attendance="Abwesend";}
>> > if(Value("@_[1]") ne $attendance){fhem "set @_[1] $attendance"}
>> > }
>> >
>> >
>> > Damit müssten doch zumindest 25 Logeinträge kommen und in $netdevice
>> > sollte
>> > auch was drin stehen, oder? Sind es aber nicht...
>> >
>> > 2012.08.18 10:11:59 0: Server started (version 5.2 from 2011-12-31 ($Id:
>> > fhem.pl 1402 2012-03-31 11:20:42Z rudolfkoenig $), AVM Build: 84.05.21,
>> > pid
>> > 16400)
>> > 2012.08.18 10:12:00 4: Connection accepted from
>> > FHEMWEB:192.168.21.20:64797
>> > 2012.08.18 10:12:01 5: Loading ./FHEM/98_SVG.pm
>> > 2012.08.18 10:12:01 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem/
>> > 2012.08.18 10:12:02 4: /fhem/ / RL: 699 / text/html; charset=UTF-8 /
>> > Content-Encoding: gzip
>> > /
>> > 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET
>> > /fhem?cmd=%7BFBWLanDevActive%28%27iPhone%27%2C+%22iPhone_Rene%22%29%7D
>> > 2012.08.18 10:12:09 5: Cmd: >{FBWLanDevActive('iPhone', "iPhone_Rene")}<
>> > 2012.08.18 10:12:09 0:
>> > 2012.08.18 10:12:09 1:
>> > 2012.08.18 10:12:09 2:
>> > 2012.08.18 10:12:09 3:
>> > 2012.08.18 10:12:09 4:
>> > 2012.08.18 10:12:09 5:
>> > 2012.08.18 10:12:09 4: HTTP FHEMWEB:192.168.21.20:64797 GET /fhem
>> > 2012.08.18 10:12:09 4: /fhem / RL: 699 / text/html; charset=UTF-8 /
>> > Content-Encoding: gzip
>> > /
>> > 2012.08.18 10:13:07 4: Connection closed for FHEMWEB:192.168.21.20:64797
>> >
>> >
>> >
>> > Eine Idee?
>> >
>> > --
>> > To unsubscribe from this group, send email to
>> > fhem-users+...@googlegroups.com
>
> --
> To unsubscribe from this group, send email to
> fhem-users+unsubscribe@googlegroups.com
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hi,
ok... is it necessary to make a new complete flash or did a updatefhem the
same?
Bye and thanks!
René
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hi
I am sorry, that is beyond my knowledge. People with more knowledge
about FHEM as I have to answer that.
{HT}
2012/8/19 Rene :
> Hi,
>
> ok... is it necessary to make a new complete flash or did a updatefhem the
> same?
>
> Bye and thanks!
>
> René
>
> --
> To unsubscribe from this group, send email to
> fhem-users+unsubscribe@googlegroups.com
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
> > ok... is it necessary to make a new complete flash or did a updatefhem the
> > same?
You have to reinstall it, as updatefhem won't upgrade the startup scripts and
won't convert from the AVM directory structure to the fhem.de structure.
The fhem.de installation script tries to preserve your logfiles and to convert
your fhem.cfg.
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
@Rudolf
ich hab das nun gemacht. Es läuft alles!!! Nun hab ich aber auf der
Fritzbox diese tolle Meldung "Vom Hersteller nicht unterstützte Änderungen: Weitere
Informationen.
" Ich denke das ist nun normal und lässt sich auch nicht beseitigen, oder?
Gruß, René
Am Sonntag, 19. August 2012 19:30:22 UTC+2 schrieb Rudolf Koenig:
>
> > > ok... is it necessary to make a new complete flash or did a updatefhem
> the
> > > same?
>
> You have to reinstall it, as updatefhem won't upgrade the startup scripts
> and
> won't convert from the AVM directory structure to the fhem.de structure.
>
> The fhem.de installation script tries to preserve your logfiles and to
> convert
> your fhem.cfg.
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hallo,
die Meldung ist normal, wenn man ein inoffizielles Image einspielt.
Mittel und Wege, um die Meldung wieder loszuwerden, finden sich unter
anderem hier .
Nötig ist das aber nur, wenn einen die Meldung nervt. Weitere Auswirkungen
hat sie nicht.
Am Montag, 20. August 2012 08:38:31 UTC+2 schrieb Rene:
>
> @Rudolf
>
> ich hab das nun gemacht. Es läuft alles!!! Nun hab ich aber auf der
> Fritzbox diese tolle Meldung "Vom Hersteller nicht unterstützte
> Änderungen: Weitere Informationen.
> " Ich denke das ist nun normal und lässt sich auch nicht beseitigen, oder?
>
> Gruß, René
>
>
> Am Sonntag, 19. August 2012 19:30:22 UTC+2 schrieb Rudolf Koenig:
>>
>> > > ok... is it necessary to make a new complete flash or did a
>> updatefhem the
>> > > same?
>>
>> You have to reinstall it, as updatefhem won't upgrade the startup scripts
>> and
>> won't convert from the AVM directory structure to the fhem.de structure.
>>
>> The fhem.de installation script tries to preserve your logfiles and to
>> convert
>> your fhem.cfg.
>>
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
>
> @Rene
>>
>>
Hallo,
die Meldung kommt auch bei offiziellen Images, wenn man z.B Telnet
anschaltet,..
Lg
Sebastian
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Am Freitag, 17. August 2012 17:04:44 UTC+2 schrieb Tapir Fink:
>
> Nur das 4S meiner Frau bucht sich bei Nichtnutzung aus dem WLan aus, mein
> IPhone 4 bleibt drin, solange ich daheim bin. Das ist etwas ärgerlich, da
> ich einige Dinge in Abhängigkeit von dem Zu Hause Status schalte.
>
Ist beim 4S in iTunes WLanSync gesetzt? Das fehlende Flag war bei meinem
iPhone der Grund, warum es sich bei Nichtbenutzung aus dem WLan ausgebucht
hat.
Stefan
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Hallo Stefan,
genau das war es - danke!!! Das Flag lässt sich erst setzen, wenn das
iPhone per Kabel am Rechner steckt - und danach Kabel abziehen - es
synchronisiert weiter über Wlan und macht in Zukunft was es soll. Bei
mehrfachem googlen fand ich immer nur Leute, welche sich aufgeregt haben,
dass sich Ihre iPhone's sich nicht aus dem Wlan ausgebucht haben...
Jetzt kann ich die Funktionalität Home Status weiter ausbauen.
lg det.
Am Dienstag, 28. August 2012 07:52:40 UTC+2 schrieb Brice:
>
>
>
>
> Am Freitag, 17. August 2012 17:04:44 UTC+2 schrieb Tapir Fink:
>>
>> Nur das 4S meiner Frau bucht sich bei Nichtnutzung aus dem WLan aus, mein
>> IPhone 4 bleibt drin, solange ich daheim bin. Das ist etwas ärgerlich, da
>> ich einige Dinge in Abhängigkeit von dem Zu Hause Status schalte.
>>
>
> Ist beim 4S in iTunes WLanSync gesetzt? Das fehlende Flag war bei meinem
> iPhone der Grund, warum es sich bei Nichtbenutzung aus dem WLan ausgebucht
> hat.
>
> Stefan
>
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com