Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread

    Reply
    Page 117 of 140 | Prev | 107   115     116   117   118     119   127 | Next | Last
    cjsegninir | # 1161 | 2011-03-27, 13:42 | Report

    Hello everyone,
    I would like to use the Queen Beecon to display in my desktop some text extracted from a webpage (It changes everyday, but it is displayed in the same place)
    Seeing all the things you do know, I imagine it is fairly simple, but I have no clue on how to do it.
    Could anyone give me a hand?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ndi | # 1162 | 2011-03-29, 08:53 | Report

    Originally Posted by cjsegninir View Post
    Hello everyone,
    I would like to use the Queen Beecon to display in my desktop some text extracted from a webpage (It changes everyday, but it is displayed in the same place)
    Seeing all the things you do know, I imagine it is fairly simple, but I have no clue on how to do it.
    Could anyone give me a hand?
    I am far from expert, but I'd start by using wget to get the file locally, then cat the file and parse it. I think wget can output to a pipe, but it makes debugging harder. Depending on cutting method, several tools can be used to snip the data.

    In any case, you need a script. Add wget and cat the result, maybe to grep so you can find what you want. Someone better at Linux tools can help you cut the text you want.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ejasmudar | # 1163 | 2011-03-31, 05:38 | Report

    Originally Posted by cjsegninir View Post
    Hello everyone,
    I would like to use the Queen Beecon to display in my desktop some text extracted from a webpage (It changes everyday, but it is displayed in the same place)
    Seeing all the things you do know, I imagine it is fairly simple, but I have no clue on how to do it.
    Could anyone give me a hand?
    Yes, as suggested by ndi, you should be looking at wget. it will download the contents of the webpage (including all the javascripts, css and html codes). I then piped the output to a 'sed' command to remove everything i did not want and format it.

    This script can then be called easily from QBW.
    For reference, check this script that i made that reads match scores from yahoo's site and displays the required details. In the source code, i have also mentioned a link to a tutorial

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to ejasmudar For This Useful Post:
    bigears5000, Sash

     
    moudy91 | # 1164 | 2011-04-10, 07:46 | Report

    hi guys i need to have a script to put in in the qbw to show the network name ( SSID ) when am connect to the wifi connection, can that be found or be created.
    i don't want the personal ip widget i prefer the command in the qbw.
    tanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Umlungu | # 1165 | 2011-04-10, 08:49 | Report

    I think you'd need root access/sudo to get that info, but 'iwconfig | grep wlan0' will give you the line that you need.

    I haven't used qbw before, so I'm not sure if it accepts this command, but to take just ssid out of that line, you'd need to use something like, "cut 34,*". You would need to replace * with the length of the SSID though, so you if you don't know the length of the name, it'll probably look ugly

    EDIT: 'iwconfig wlan0 | grep ESSID' would do the same and not have to query the other interfaces

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Umlungu; 2011-04-10 at 08:52.

     
    moudy91 | # 1166 | 2011-04-10, 17:27 | Report

    Originally Posted by Umlungu View Post
    I think you'd need root access/sudo to get that info, but 'iwconfig | grep wlan0' will give you the line that you need.

    I haven't used qbw before, so I'm not sure if it accepts this command, but to take just ssid out of that line, you'd need to use something like, "cut 34,*". You would need to replace * with the length of the SSID though, so you if you don't know the length of the name, it'll probably look ugly

    EDIT: 'iwconfig wlan0 | grep ESSID' would do the same and not have to query the other interfaces
    hi Umlungu
    i put 'iwconfig wlan0 | grep ESSID in the xterm when am root but it reply me iwconfig not found.
    if their anyway else even in xterm to access it ??

    Edit | Forward | Quote | Quick Reply | Thanks

     
    JonWW | # 1167 | 2011-04-10, 21:50 | Report

    Originally Posted by moudy91 View Post
    hi guys i need to have a script to put in in the qbw to show the network name ( SSID ) when am connect to the wifi connection, can that be found or be created.
    i don't want the personal ip widget i prefer the command in the qbw.
    tanks
    moudy91 this script will give you your SSID
    Code:
    echo "iwconfig wlan0"|root|grep ESSID|sed "s/.*ESSID:\"//;s/\".*//"
    or if you want to show some kind of disconnected message use this script
    Code:
    ESSID=`echo "iwconfig wlan0"|root|grep ESSID|sed "s/.*ESSID:\"//;s/\".*//"`;if [ "$ESSID" == "" ];then echo "na";else echo $ESSID;fi
    change "na" for what ever disconnected message you want.

    Hope this is what you are after.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to JonWW For This Useful Post:
    bigears5000

     
    moudy91 | # 1168 | 2011-04-11, 07:38 | Report

    Originally Posted by JonWW View Post
    moudy91 this script will give you your SSID
    Code:
    echo "iwconfig wlan0"|root|grep ESSID|sed "s/.*ESSID:\"//;s/\".*//"
    or if you want to show some kind of disconnected message use this script
    Code:
    ESSID=`echo "iwconfig wlan0"|root|grep ESSID|sed "s/.*ESSID:\"//;s/\".*//"`;if [ "$ESSID" == "" ];then echo "na";else echo $ESSID;fi
    change "na" for what ever disconnected message you want.

    Hope this is what you are after.
    hi jonWW.
    first i want to say thank you for helping me.
    second echo "iwconfig wlan0"|root|grep ESSID|sed "s/.*ESSID:\"//;s/\".*//" That script didn't work when am connected to any wifi the ssid don't show up.
    all i did copy and paste it in qbw and nothing happens.
    thank you again, do you think something wrong with the script?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    JonWW | # 1169 | 2011-04-11, 08:14 | Report

    Originally Posted by moudy91 View Post
    That script didn't work when am connected to any wifi the ssid don't show up.
    First try it in XTerm.
    Do you have "rootsh" installed? as it cannot work wthout it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    moudy91 | # 1170 | 2011-04-11, 08:16 | Report

    Originally Posted by JonWW View Post
    First try it in XTerm.
    Do you have "rootsh" installed? as it cannot work wthout it.
    yes i have root installed and even in xterm it didn't work

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 117 of 140 | Prev | 107   115     116   117   118     119   127 | Next | Last
vBulletin® Version 3.8.8
Normal Logout