Skip to content

Commit

Permalink
Anwesend ab Firmware 6.20
Browse files Browse the repository at this point in the history
Anpassung der WLAN und LANAnwesend aufrufe.
  • Loading branch information
Skyb0rg committed Oct 27, 2014
1 parent 5a57561 commit ab0489a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuxdextra/FritzBox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ case $1 in
PerformPOST "wlan:settings/night_time_control_no_forced_off=$2&sid=$SID" "POST";;
"WLANAnwesend") LOGIN
Debugmsg=$Debugmsg"URL: $FritzBoxURL/net/network_user_devices.lua?sid=$SID \n"
anwesenheit=$($WEBCLIENT "$FritzBoxURL/net/network_user_devices.lua?sid=$SID" | grep '"_node"] = "landevice' -A27 -B2 | sed -e 's/\["//g' -e 's/\"]//g' -e 's/\"//g' | grep "wlan = 1" -B11 | grep "online = 1" -B1 |grep name | sed -e 's/name =//' -e 's/,//')
anwesenheit=$($WEBCLIENT "$FritzBoxURL/net/network_user_devices.lua?sid=$SID" | grep '"_node"] = "landevice' -A27 -B2 | sed -e 's/\["//g' -e 's/\"]//g' -e 's/\"//g' | grep "wlan = 1" -B15 | grep "online = 1" -B1 |grep name | sed -e 's/name =//' -e 's/,//')
anwesenheit1=$(echo $anwesenheit | grep "$2" )
if [ "$anwesenheit1" != "" ]; then
Debugmsg=$Debugmsg"WLAN-Anwesend: $2 erkannt\n"
Expand All @@ -189,7 +189,7 @@ case $1 in
;;
"LANAnwesend") LOGIN
Debugmsg=$Debugmsg"URL: $FritzBoxURL/net/network_user_devices.lua?sid=$SID \n"
anwesenheit=$($WEBCLIENT "$FritzBoxURL/net/network_user_devices.lua?sid=$SID" | grep '"_node"] = "landevice' -A27 -B2 | sed -e 's/\["//g' -e 's/\"]//g' -e 's/\"//g' | grep "wlan = 0" -B11 | grep "online = 1" -B1 | grep name | sed -e 's/name =//' -e 's/,//')
anwesenheit=$($WEBCLIENT "$FritzBoxURL/net/network_user_devices.lua?sid=$SID" | grep '"_node"] = "landevice' -A27 -B2 | sed -e 's/\["//g' -e 's/\"]//g' -e 's/\"//g' | grep "wlan = 0" -B15 | grep "online = 1" -B1 | grep name | sed -e 's/name =//' -e 's/,//')
anwesenheit1=$(echo $anwesenheit | grep "$2" )
if [ "$anwesenheit1" != "" ]; then
Debugmsg=$Debugmsg"LAN-Anwesend: $2 erkannt\n"
Expand Down

0 comments on commit ab0489a

Please sign in to comment.