![]() |
2010-11-03
, 20:49
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#22
|
here you go dude !
Log file thanks
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2010-11-03
, 21:16
|
Posts: 529 |
Thanked: 194 times |
Joined on Aug 2010
@ UK
|
#23
|
The Following User Says Thank You to stevomanu For This Useful Post: | ||
![]() |
2010-11-03
, 21:31
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#24
|
thanks dude i got rid of the - T 5 an changed it to 10 an all is good , many thanks mate your a true legand !
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2010-11-03
, 21:35
|
Posts: 529 |
Thanked: 194 times |
Joined on Aug 2010
@ UK
|
#25
|
Glad to hear that ... but consider changing your Internet Provider
![]() |
2010-11-06
, 09:58
|
Posts: 13 |
Thanked: 1 time |
Joined on Nov 2010
|
#26
|
English Premier L.
![]() |
2010-11-06
, 11:33
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#27
|
Ok ,I have done everything in the OP and set up for premier league!!
right now,I have on my desktop
With the words on top of the image
So its all good?
It'll update itself for today evenings game?
wget -U "" -t 1 -T 5 -q -O - 'http://m.espn.go.com/soccer/scoreboard?leagueTag=eng.1&&lang=EN' | awk -v fav='Aston Villa' 'BEGIN{FS="";r=3;}/^<\/style>.+<\/html>/{match($0,"[\|] <b >.+<\/b> [\|]");print "\t\t\t\t\t<span foreground=\"red\" font=\"bold 14\"><i>" substr($0,RSTART+7,RLENGTH-13) "</i></span>";gsub(/(<\/style>.+<br \/>)|(<a[^>]*>)|(<[\/]*div[^>]*>)|(<div class="sec.+$)/,"",$0);x=split($0,m,"(<[^>]*>)");for(i=1;i<x;i++){n=split(m[i],p,"( - )|( [0-9]+-[0-9]+ )|( vs )");if(p[2]==fav||index(p[3],fav)==1){m[i]="<span foreground=\"green\" font=\"bold\">"m[i]"</span>";if(match(m[i]," [0-9]+\-[0-9]+ ")){split(substr(m[i],RSTART+1,RLENGTH-1),s,"[ \-]+");if((p[2]==fav&&s[1]>s[2])||(p[3]==fav&&s[2]>s[1]))r=0;else{if(s[1]==s[2])r=1;else r=2}}}print m[i];}}END{exit r}'
![]() |
2010-11-06
, 11:42
|
Posts: 13 |
Thanked: 1 time |
Joined on Nov 2010
|
#28
|
If your command looks like this you should already have tonite's games:
Test it in phone shell:Code:wget -U "" -t 1 -T 5 -q -O - 'http://m.espn.go.com/soccer/scoreboard?leagueTag=eng.1&&lang=EN' | awk -v fav='Aston Villa' 'BEGIN{FS="";r=3;}/^<\/style>.+<\/html>/{match($0,"[\|] <b >.+<\/b> [\|]");print "\t\t\t\t\t<span foreground=\"red\" font=\"bold 14\"><i>" substr($0,RSTART+7,RLENGTH-13) "</i></span>";gsub(/(<\/style>.+<br \/>)|(<a[^>]*>)|(<[\/]*div[^>]*>)|(<div class="sec.+$)/,"",$0);x=split($0,m,"(<[^>]*>)");for(i=1;i<x;i++){n=split(m[i],p,"( - )|( [0-9]+-[0-9]+ )|( vs )");if(p[2]==fav||index(p[3],fav)==1){m[i]="<span foreground=\"green\" font=\"bold\">"m[i]"</span>";if(match(m[i]," [0-9]+\-[0-9]+ ")){split(substr(m[i],RSTART+1,RLENGTH-1),s,"[ \-]+");if((p[2]==fav&&s[1]>s[2])||(p[3]==fav&&s[2]>s[1]))r=0;else{if(s[1]==s[2])r=1;else r=2}}}print m[i];}}END{exit r}'
you should get:
![]() |
2010-11-06
, 13:17
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#29
|
My code is similar to tht,except I have modified my fav to Manchester United from Aston villa....
But am not getting the games :O
And how do i test in phone shell?
is it xterminal?
Sorry but quite the noob at this
Ok re installing the entire widget...
But at step 11,I dont have the same options as in the Screen shot....
I get this
Last time around I chose,Import buffer to beecon
![]() |
2011-02-01
, 18:09
|
Posts: 24 |
Thanked: 6 times |
Joined on Nov 2010
@ Rome-Italy
|
#30
|
Last edited by stevomanu; 2011-02-01 at 18:13. Reason: removed dead link