Active Topics

 



Notices


Reply
Thread Tools
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#11
HI
Trying to work out how to get live Premier league fixtures and then a results pane, what do I need to alter in the code?
 
Posts: 33 | Thanked: 8 times | Joined on Dec 2009
#12
Originally Posted by No!No!No!Yes! View Post
[HowTo] Find WEB URL for other Leagues not listed so far

Create/Import your Beecon according to instructions on first post of this thread

After import has been done, press "Edit Cmd" button and change wget's URL (according to following instructions (relevant part is selected in picture):

  1. UEFA Champions League uefa.champions
  2. UEFA Cup uefa.europa
  3. Spanish Primera División esp.1
  4. Spanish Segunda División esp.2
  5. Italian Serie A ita.1
  6. Italian Serie B ita.2
  7. German Bundesliga ger.1
  8. German 2. Bundesliga ger.2
  9. French Ligue 1 fra.1
  10. French Ligue 2 fra.2
  11. Scottish Premier League sco.1
  12. Scottish Division One sco.2
  13. Scottish Division Two sco.3
  14. Scottish Division Three sco.4
  15. Dutch Eredivisie ned.1
  16. Dutch Eerste Divisie ned.2
  17. Portuguese Liga por.1
  18. Russian Premier League rus.1
  19. Turkish Super Lig tur.1
  20. Greek Super League gre.1
  21. Belgian Jupiler League bel.1
  22. Austrian Bundesliga aut.1
  23. Danish SAS-Ligaen den.1
  24. Swiss Super League sui.1
Has somebody done this for live standings?
e.g. http://m.espn.go.com/soccer/standing...=ger.1&lang=EN
Thks in advance!
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#13
Originally Posted by davall View Post
Has somebody done this for live standings?
e.g. http://m.espn.go.com/soccer/standing...=ger.1&lang=EN
Thks in advance!
Hi, maybe this could be of help with some rework:
http://talk.maemo.org/showthread.php?t=62289
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
Posts: 33 | Thanked: 8 times | Joined on Dec 2009
#14
Originally Posted by No!No!No!Yes! View Post
Hi, maybe this could be of help with some rework:
http://talk.maemo.org/showthread.php?t=62289
Thank you. I'll dig into it. But my first impression is, that i'm lost with all these sed, awk, cut thing.
 
Posts: 529 | Thanked: 194 times | Joined on Aug 2010 @ UK
#15
Im trying to get champions league resuts have changed url but nothing can you check this code !

Code:
wget -U "" -t 1 -T 5 -q -O - 'http://m.espn.go.com/soccer/scoreboard?leagueTag=uefa.champions&&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}'
 
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#16
Originally Posted by stevomanu View Post
Im trying to get champions league resuts have changed url but nothing can you check this code !

Code:
wget -U "" -t 1 -T 5 -q -O - 'http://m.espn.go.com/soccer/scoreboard?leagueTag=uefa.champions&&lang=EN' .....
I just tried your code and it works fine for me. It brings up the Champions League fixtures. Do you have wget installed?
 

The Following 2 Users Say Thank You to Sash For This Useful Post:
Posts: 529 | Thanked: 194 times | Joined on Aug 2010 @ UK
#17
Originally Posted by Sash View Post
I just tried your code and it works fine for me. It brings up the Champions League fixtures. Do you have wget installed?
ye im sure but will reinstall an check !!

NOPE still no go , have even tryed importing original txt also still nothing happend , red ball shows but no txt !

Last edited by stevomanu; 2010-11-03 at 12:25.
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#18
Originally Posted by stevomanu View Post
Im trying to get champions league resuts have changed url but nothing can you check this code !

Code:
wget -U "" -t 1 -T 5 -q -O - 'http://m.espn.go.com/soccer/scoreboard?leagueTag=uefa.champions&&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}'


Confirm it working!
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
Posts: 529 | Thanked: 194 times | Joined on Aug 2010 @ UK
#19
this is doing my head in now , have reinstalled QBW an wget twice an still not getting a reading from them , all my other QBW widgets are fine just these !
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#20
Originally Posted by stevomanu View Post
this is doing my head in now , have reinstalled QBW an wget twice an still not getting a reading from them , all my other QBW widgets are fine just these !
Please, turn on v4 logging and send logfile after a couple of unsuccessful runs ...
(instructions in the wiki)
Ciao.
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:04.