Active Topics

 



Notices


Reply
Thread Tools
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#1
Customize Queen BeeCon Widget (>=v0.1.4) to display:
Ebay Item Watcher (Updated and Tested on 11 Aug 2010)

The Beecon will watch an item that you specify and will provide a small Photo, Item Number, Current Bid or Buy It Now Price, Time Left for bidding, Bid Count, High Bidder and Quantity.



Ready?!

Preparation Steps:
  1. Download and Install Queen Beecon Widget (>=v0.1.4) (Warning! It's still in extras-devel; if you like it, I need your support for testing and promoting to Testing and Extras)

  2. Save icons/images attached to the post (or Download and extract zip file attached to the thread for your convenience) and store images in the specified N900 directory, create it if not existing. (Warning: inside the zip file there could be images with numbers appended to common graphic filenames extensions - ex. football-icon.png.3 - this is NOT an error!) - Do NOT save the following images as their filename will not be correct!

    No Images Needed unless you want a custom background

  3. Just drop them HERE:


  4. Make sure you copy the following Exported Instance Data to your phone's clipboard. (Do not modify anything as it is checksum protected and modifications will invalidate checksum!)
    See HERE for tutorial
    Code:
    [queen-beecon-header]
    version=1,000000
    checksum=5864742
    [queen-beecon-exported-instance]
    widgetType=1
    widgetVisible=1
    operationalStatus=0
    hideCanvas=false
    snippetBgRGB=0
    snippetExtBgRGB=#000000000000
    beecon_lt0_ImgZoom=0
    beecon_lt0_BgRGB=2
    beecon_lt0_ExtBgRGB=#808080808080
    beecon_lt0_ImgFilename=queen-beecon-syserr.png
    beecon_eq0_ImgZoom=0
    beecon_eq0_BgRGB=3
    beecon_eq0_ExtBgRGB=#0000ffff0000
    beecon_eq0_ImgFilename=queen-beecon-appok.png
    beecon_eq1_ImgZoom=0
    beecon_eq1_BgRGB=4
    beecon_eq1_ExtBgRGB=#ffffffff0000
    beecon_eq1_ImgFilename=queen-beecon-appwrn.png
    beecon_ge2_ImgZoom=0
    beecon_ge2_BgRGB=5
    beecon_ge2_ExtBgRGB=#ffff00000000
    beecon_ge2_ImgFilename=queen-beecon-apperr.png
    beecon_idxge2_ImgZoom=0
    beecon_idxge2_BgRGB=11
    beecon_idxge2_ExtBgRGB=#0000ffffffff
    beecon_idxge2_ImgFilename=queen-beecon-index.png
    widWidth=510
    widHeight=175
    instanceTitle=Ebay Object Watch
    instanceCmd=export id="120606773096"; wget -t 1 -T 10 -q -U "CERN-LineMode/2.15" -O - "http://m.ebay.com/Pages/ViewItem.aspx?aid=$id" |  awk -v j="/tmp/qbwebay0.jpg" -v l="/tmp/qbwebay0.log" ' BEGIN { FS="" } { x=split($0,m,"(<img src=\\")|(\\" alt=\\"\\"><\\/td>)"); sub(/width=[0-9]+/,"width=130",m[4]); r=system("wget --user-agent=\\"\\" -q -o \\"" l "\\" -t 1 -T 10 -O \\"" j "\\" \\"http://m.ebay.com/Pages/" m[4] "\\""); x=split($0,m,"(<strong>)|(<\\/strong>)"); print "<span foreground=\\"green\\">" m[2] "</span>"; x=split($0,m,"(<span style=[^>]*important;[^>]*\\">)|(<\\/span>)"); p=0; do { gsub(/<[^>]*>+/,"",m[i]); if(p==0||m[i]==" "||m[i]=="  "){ if(m[i]=="Item number:"){ p=1; printf"<span foreground=\\"white\\">" m[i] "</span>"; } i++;continue;  } if (index(m[i],":")==length(m[i]))  l="\\n<span foreground=\\"cyan\\">"; else  l=" <span foreground=\\"red\\">"; printf "%s%s</span>",l,m[i]; i++; } while (m[i-3]!="Quantity:"); print ""; return r; }'|fold -s -w 60
    rememberMe=
    cmdImgFilename=queen-beecon.png
    cmdImgZoom=0
    cmdFgRGB=1
    cmdExtFgRGB=#ffffffffffff
    cmdTextAngle=0
    cmdVisibilityPosition=0
    cmdImgVisibilityPosition=0
    cmdJustify=0
    cmdExtFont=Nokia Sans bold italic 16
    cmdFontName=3
    cmdFontSize=16
    resImgFilename=/tmp/qbwebay0.jpg
    resImgZoom=0
    resFgRGB=1
    resExtFgRGB=#000000000000
    resTextAngle=0
    resVisibilityPosition=1
    resImgVisibilityPosition=9
    resJustify=0
    resExtFont=Nokia Sans bold 14
    resFontName=2
    resFontSize=14
    progressAnimationFrames=4
    progressAnimationTimer=4
    progressAnimationPos=4
    progressAnimationBasename=queen-beecon-progress
    updOnStartup=false
    updOnClick=true
    updOnDesktop=false
    updOnSight=false
    delayIndex=0
    customIntervalSecs=0
    updNeworkPolicy=1
    updOnDBUS=0
    updOnDBUSBus=0
    updOnDBUSMatchRule=
  5. Proceed with the import of the "Exported Instance Data" according to the following instructions:
    Import Procedure for Beecon Exported Instance Data

And Here we Are!!!
To change the Item Number with one of your choice proceed as follows:
  1. Let's start the Main Settings Dialog Box Again and click on the "Edit Cmd" button


  2. Let's scroll the command code until we find the following string:

    ... export id="130384074106"; ...

  3. And replace it with the Item Number of choice

  4. Save changed command with relevant button

  5. Change Update Policies as you like

  6. "Save and Run" to launch the Beecon!


WARNING!!! If you want to use more then one Widget at the same time you need to tweak the Beecon a little bit to make it Multi-Instance:
  1. Repeat steps for creation and import of new Beecon as above

  2. Start the Main Settings Dialog Box Again and click on the "Edit Cmd" button

  3. Replace Item Numer of choice

  4. Let's scroll the command code until we find the following strings:

    ... -v j="/tmp/qbwebay0.jpg" -v l="/tmp/qbwebay0.log" ...

  5. And replace "0" with a new Number let's say "1" (for other instances proceed with 2, 3, ...)

    ... -v j="/tmp/qbwebay1.jpg" -v l="/tmp/qbwebay1.log" ...

  6. Save changed command with relevant button

  7. Scroll down until you find the section of settings below


  8. And replace "0" with the Number you specified before; let's say "1" (for other instances proceed with 2, 3, ...)

  9. Change Update Policies again as you like

  10. "Save and Run" to launch the Beecon!

Have Fun!!!

Data is made available on the internet and is freely accessible also through a normal browser by pointing to m.ebay.com. Credits go to the cited Companies, Organizations, Product, Services. Please report if any contents is neither appropriate nor allowed to be published and it will be removed within short time span.
__________________
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

Last edited by No!No!No!Yes!; 2010-08-11 at 19:40.
 

The Following 4 Users Say Thank You to No!No!No!Yes! For This Useful Post:
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#2
Please let me know if anybody knows the Ebay API and options to fetch the Item Photo with fixed size (width/height) constraints.
__________________
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
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#3
Is this what you get:



In this case I suspect ebay changed something inside the structure of the HTML page and the page parsing command/script needs to be reviewed.

Could you please confirm?
__________________
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

Last edited by No!No!No!Yes!; 2010-05-23 at 09:40.
 
Posts: 76 | Thanked: 4 times | Joined on Apr 2010
#4
Yes this is exactly what I get
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#5
OK, QBW Exported Data in first post should be fixed and working as of now 201005231945 CET
Beecon's a little bit wider and taller, a "fold" command should force lines to wrap at 60 chars length and hopefully not overlap picture which has been moved at bottom right.

__________________
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: 76 | Thanked: 4 times | Joined on Apr 2010
#6
That's MUCH better - many thanks. One residual issue I can see (maybe something I need to change) - the time left reads the time as 12:01 and doesn't change (although the time left does)
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#7
Originally Posted by Lake View Post
That's MUCH better - many thanks. One residual issue I can see (maybe something I need to change) - the time left reads the time as 12:01 and doesn't change (although the time left does)
Could you please post screenshot?
__________________
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: 76 | Thanked: 4 times | Joined on Apr 2010
#8
Here you go

 

The Following User Says Thank You to Lake For This Useful Post:
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#9
Originally Posted by Lake View Post
Here you go

Well ... auction has ended ... that time/date won't change any more forever!
Why not trying with another object still not expired?
__________________
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: 76 | Thanked: 4 times | Joined on Apr 2010
#10
Hi

I appear to have lost data on item number, current bids etc. I don't know why since I haven't changed any of the text settings. Screenshot below.



What settings should I check?

Thanks
 
Reply

Thread Tools

 
Forum Jump


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