maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon (https://talk.maemo.org/showthread.php?t=47649)

lanser 2011-12-14 22:46

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
tried several times now but get no data testing inside Advanced gives [Exit Code = 3 Output Size = 0] also tried using this command in terminal but it returns nothing straight to cursor

Code:

wget -U "" -t 1 -T 5 -q -O 'http://m.espn.go.com/soccer/scoreboard?leagueTag=eng.1&lang=EN' | awk -v fav='Arsenal' '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}'

lanser 2011-12-18 14:59

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
retried command on laptop and once I replaced the - in front of the url it gives the following warning message and no output.

awk: cmd. line:1: warning: escape sequence `\|' treated as plain `|'
awk: cmd. line:1: warning: escape sequence `\/' treated as plain `/'
awk: cmd. line:1: warning: escape sequence `\-' treated as plain `-'

lanser 2012-01-06 20:59

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
Still no luck getting this to work

miroslav_s 2012-01-08 15:02

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
Hi,
I got problem with Queen Beecon. You see, I followed all the steps and didn´t have problem with installation. The explaination is very good done and it is easy to follow. I imported Eng- Premier L data, put Manchester United as my favorite team. Did not receive any error message during installation, but it still doesn´t work. When I press on the widget on desktop nothing happens. Well, OK I can see a little figure that pops up after I pressed the widget but that is all, nothing else is happening. What am I doing wrong?
Best regards M

No!No!No!Yes! 2012-01-08 17:14

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
Guys ... try this version of the command:
PHP Code:

wget -"" -t 1 -T 5 --'http://m.espn.go.com/soccer/scoreboard?leagueTag=eng.1&&lang=EN' awk -v fav='Aston Villa' 'BEGIN{FS="";r=3;}/^<link rel="stylesheet".+<\/a><\/div>/{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(/(<link.*Auto Refresh<\/a><\/div><br \/>)|(<a[^>]*>)|(<[\/]*div[^>]*>)|(<div class="shadow spacer">.+$)/,"",$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}' 

Replace eng.1 in URL with your preferred league
Quote:

Originally Posted by No!No!No!Yes! (Post 575704)
[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):
http://i42.tinypic.com/29lzm6g.png
  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


miroslav_s 2012-01-08 18:32

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
1 Attachment(s)
The steps that I am taking (tell me were I did wrong):
Copied your command (PHP code) from your last post nr 692, above. Then I entered seetings in Queen BeeCon Widget, pressed Advanced, pressed YES, went all the way down and pressed the button “Paste Clipboard to Buffer). After that pressed the button “Import Buffer to Beecon”, then pressed YES and the message pops up like on the picture that I attached. So, any ideas?

No!No!No!Yes! 2012-01-08 19:24

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
Quote:

Originally Posted by miroslav_s (Post 1147528)
The steps that I am taking (tell me were I did wrong):
Copied your command (PHP code) from your last post nr 692, above. Then I entered seetings in Queen BeeCon Widget, pressed Advanced, pressed YES, went all the way down and pressed the button “Paste Clipboard to Buffer). After that pressed the button “Import Buffer to Beecon”, then pressed YES and the message pops up like on the picture that I attached. So, any ideas?

No need for Advanced Settings.
Just go into "Edit Cmd" and paste new command.
http://wiki.maemo.org/images/9/94/169rlh2.png

miroslav_s 2012-01-08 19:27

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
YES!YES!YES! hahaha
it works
Thank you/hvala!

Best regards
Mika

myname24 2013-02-01 20:03

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
i don't know if i'm doing something wrong but it's not working for me . any help ?

myname24 2013-02-02 12:16

Re: [Announce] Queen BeeCon Widget - European Soccer Leagues Live Results and Next Matches Beecon
 
bump
is there any alternative ?


All times are GMT. The time now is 20:54.

vBulletin® Version 3.8.8