Changeset 13571
- Timestamp:
- Jan 19, 2012, 6:16:28 PM (14 years ago)
- Location:
- ipk/source.sh4/titaninfos_callmonitor
- Files:
-
- 2 edited
-
CONTROL/control (modified) (1 diff)
-
var/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titaninfos_callmonitor/CONTROL/control
r12334 r13571 1 1 Package: titan-plugin-infos-callmonitor 2 Version: 0.72 Version: 1.0 3 3 Architecture: sh4 4 4 OE: Callmonitor -
ipk/source.sh4/titaninfos_callmonitor/var/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh
r13548 r13571 262 262 echo "loadFritzBook ende" 263 263 if [ $debug = 0 ]; then 264 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" 264 #wget -T 1 -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" 265 ./$CURL "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" -o /dev/null 265 266 fi 266 267 #very tricky line to get data from FritzBox! using netcat and divide it using … … 268 269 #Make sure the next line end with a trailing '&' or your dreambox will hang! 269 270 #tail -f < /dev/null|./nc $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' & 270 echo " loadFritzBookstart"271 echo "tail start" 271 272 tail -f < /dev/null|$NC $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' & 272 273 echo "Ende" … … 301 302 if [ $6 = $Ziel -o $6 = $Ziel_2 -o $Alle = 1 ] ; then 302 303 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 303 wget -O- http://$ip/query?boxstatus > $TMPSTATUS 304 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 305 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS 304 306 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 305 307 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 312 314 #mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'` 313 315 #if [ $mute = 0 ]; then 314 wget -q -O /dev/null "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 316 #wget -q -O /dev/null "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 317 ./$CURL "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 315 318 #fi 316 319 fi 317 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 320 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 321 ./$CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 318 322 fi 319 323 else … … 343 347 if [ $debug = 0 ]; then 344 348 echo "Meldung wird nach dem einschalten der Box angezeigt" 345 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 349 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 350 ./$CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 346 351 fi 347 352 fi … … 383 388 echo "Diese Rufnummer wird überwacht" 384 389 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 385 wget -O- http://$ip/query?boxstatus > $TMPSTATUS 390 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 391 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS 386 392 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 387 393 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 391 397 echo "Wenn debug noch 0 ist wird die Meldung angezeigt" 392 398 if [ $debug = 0 ]; then 393 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 399 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 400 ./$CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 394 401 fi 395 402 else … … 399 406 if [ $debug = 0 ]; then 400 407 echo "Meldung wird nach dem einschalten der Box angezeigt" 401 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 408 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 409 ./$CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 402 410 fi 403 411 fi … … 411 419 DISCONNECT) 412 420 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 413 wget -O- http://$ip/query?boxstatus > $TMPSTATUS 421 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 422 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS 414 423 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 415 424 STANDBY=`grep "standby" $TMPSTATUS| wc -l` 416 425 if [ $STANDBY = 0 ]; then 417 426 if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet 418 wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben 427 #wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben 428 ./$CURL http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben 419 429 mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'` 420 430 if [ $mute = 1 ]; then 421 wget -q -O /dev/null "http://$loginname:$passwort@$ip/cgi-bin/rc?113" >> $NULL #Befehl für Tonsperre 431 #wget -q -O /dev/null "http://$loginname:$passwort@$ip/cgi-bin/rc?113" >> $NULL #Befehl für Tonsperre 432 ./$CURL "http://$loginname:$passwort@$ip/cgi-bin/rc?113" >> $NULL #Befehl für Tonsperre 422 433 fi 423 434 fi … … 442 453 echo "Disconnect" 443 454 if [ $STANDBY = 0 ]; then 444 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 455 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 456 ./$CURL -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 445 457 fi 446 458 fi … … 531 543 echo "Searching for phone number: "$2" resulted in: "$NAME 532 544 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 533 wget -O- http://$ip/query?boxstatus > $TMPSTATUS 545 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 546 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS 534 547 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 535 548 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 546 559 #mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'` 547 560 #if [ $mute = 0 ]; then 548 wget -q -O /dev/null "http://$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 561 #wget -q -O /dev/null "http://$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 562 ./$CURL "http://$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 549 563 #fi 550 564 fi 551 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 565 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 566 ./$CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 552 567 fi 553 568 else 554 569 if [ $anzeigewennaus = 1 ]; then 555 570 if [ $debug = 0 ]; then 556 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 571 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 572 ./$CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 557 573 fi 558 574 else
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)