Changeset 13781 for ipk/source.sh4
- Timestamp:
- Jan 27, 2012, 6:46:00 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) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titaninfos_callmonitor/CONTROL/control
r13571 r13781 1 1 Package: titan-plugin-infos-callmonitor 2 Version: 1. 02 Version: 1.5 3 3 Architecture: sh4 4 4 OE: Callmonitor -
ipk/source.sh4/titaninfos_callmonitor/var/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh
r13571 r13781 219 219 SID=`wget -O - --post-data="$POSTDATA" "http://$FRITZBOXIP/cgi-bin/webcm" 2>/dev/null| grep "name=\"sid\"" | head -1 | awk '{match($0,/value="[^"]+"/); print substr($0,RSTART+7,RLENGTH-8)}'` 220 220 echo "login aufbauen und hashen ende" 221 ./$CURL --data "telcfg:settings/Phonebook/Books/Select=0&getpage=../html/de/menus/menu2.html&var:pagename=fonbuch&sid=$SID&var:menu=fon&var:lang=de" http://$FRITZBOXIP/cgi-bin/webcm | grep ">TrFon" | sed s/'<script type="text\/javascript">'// | sed s/';<\/script>'// | sed s/'('/'"'/ | sed s/')'/'"'/ > /tmp/curlhelp.tmp221 $CURL --data "telcfg:settings/Phonebook/Books/Select=0&getpage=../html/de/menus/menu2.html&var:pagename=fonbuch&sid=$SID&var:menu=fon&var:lang=de" http://$FRITZBOXIP/cgi-bin/webcm | grep ">TrFon" | sed s/'<script type="text\/javascript">'// | sed s/';<\/script>'// | sed s/'('/'"'/ | sed s/')'/'"'/ > /tmp/curlhelp.tmp 222 222 223 223 while read line … … 263 263 if [ $debug = 0 ]; then 264 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/null265 $CURL "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" -o /dev/null 266 266 fi 267 267 #very tricky line to get data from FritzBox! using netcat and divide it using … … 303 303 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 304 304 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 305 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS305 $CURL http://$ip/query?boxstatus > $TMPSTATUS 306 306 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 307 307 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 315 315 #if [ $mute = 0 ]; then 316 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 Tonsperre317 $CURL "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 318 318 #fi 319 319 fi 320 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" >> $NULL321 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 322 322 fi 323 323 else … … 348 348 echo "Meldung wird nach dem einschalten der Box angezeigt" 349 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" >> $NULL350 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 351 351 fi 352 352 fi … … 389 389 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 390 390 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 391 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS391 $CURL http://$ip/query?boxstatus > $TMPSTATUS 392 392 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 393 393 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 398 398 if [ $debug = 0 ]; then 399 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" >> $NULL400 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 401 401 fi 402 402 else … … 407 407 echo "Meldung wird nach dem einschalten der Box angezeigt" 408 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" >> $NULL409 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 410 410 fi 411 411 fi … … 420 420 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 421 421 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 422 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS422 $CURL http://$ip/query?boxstatus > $TMPSTATUS 423 423 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 424 424 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 426 426 if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet 427 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 geschrieben428 $CURL http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben 429 429 mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'` 430 430 if [ $mute = 1 ]; then 431 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 Tonsperre432 $CURL "http://$loginname:$passwort@$ip/cgi-bin/rc?113" >> $NULL #Befehl für Tonsperre 433 433 fi 434 434 fi … … 454 454 if [ $STANDBY = 0 ]; then 455 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" >> $NULL456 $CURL -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 457 457 fi 458 458 fi … … 544 544 #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS 545 545 #wget -O- http://$ip/query?boxstatus > $TMPSTATUS 546 ./$CURL http://$ip/query?boxstatus > $TMPSTATUS546 $CURL http://$ip/query?boxstatus > $TMPSTATUS 547 547 #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'` 548 548 STANDBY=`grep "standby" $TMPSTATUS| wc -l` … … 560 560 #if [ $mute = 0 ]; then 561 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 Tonsperre562 $CURL "http://$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 563 563 #fi 564 564 fi 565 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" >> $NULL566 $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 567 567 fi 568 568 else … … 570 570 if [ $debug = 0 ]; then 571 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" >> $NULL572 $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 573 573 fi 574 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)