maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   mbarcode (https://talk.maemo.org/showthread.php?t=34996)

lardman 2010-11-16 21:44

Re: mbarcode
 
I see no problem with this usecase. We need to implement a plugin selection dialog in any case, in which one could check the default plugin to handle a given payload. Then all we'd need to do is create a setting such that the results window is not displayed if not wanted (it provides the copy button, but with a default plugin has no other use).

Regarding opening the web-browser, there are two ways it can open - either in a new window, or in the same window; a settings dialog for the qrcode plugin could allow the user to select which of these happens.

I'll add these to my ToDo list :)

lardman 2010-11-16 23:25

Re: mbarcode
 
Right, hugopl (in #pyside) pointed out that my widget variable is being decref'd as soon as the window is created, so simply making the widget a member of the class (e.g. adding it as self.widget in __init__() sorts that out and displays the window).

Looks like Python scripting is go!

I'll come up with an example code tomorrow, and also one which uses DBus to notify/start external apps (e.g. Map apps for geo:// payloads).

LordVan 2010-11-17 06:57

Re: mbarcode
 
@flux might be interesting to see this as an option for mbarcode as a plugin or something but i duno if mbarcode does support automatic action.

lardman 2010-11-17 09:58

Re: mbarcode
 
Quote:

Originally Posted by flux (Post 875289)
I would like to whip out my N900, point it towards the boxes and have my web browser be redirected to the said URL without needing other interaction; should I point to another box, the browser should be redirected to that new page, again without any interaction other than moving the camera.

So you want mBarcode to continue scanning in the background while you view the webpage? Well this is certainly doable once I add the right combination of settings (use default plugin, don't show results page, continuous scanning).


Quote:

Originally Posted by flux (Post 875289)
Now, maybe mbarcode isn't the application for this special use case. But it'd be nice if it were :). An alternative to use mbarcode would in my mind be a fork that would use a webkit widget for displaying the page. That way it could still provide its own menu for options.

You are of course welcome to fork if you really want to, but I'd prefer to add options to mBarcode such that it becomes suitable for your (and anyone else's) usecases.

lardman 2010-11-17 14:32

Re: mbarcode
 
Ok, so MECARD decoding now works, I'll push an update to extras-devel later on today (mbarcode-plugin-qrcode)

rfa 2010-11-18 02:54

Re: mbarcode
 
How would I implement this: http://www.ebayinc.com/content/press...20100623006637 or something like this?

I realise this is an iPhone app, so would RedLaser need to do it, or would I be able to? (If I could write the plugin for mBarcode)

LordVan 2010-11-18 06:34

Re: mbarcode
 
sounds like basically they want to save ppl with iPhones from having to type the EAN,.. code into whatever selling app .. since afaik there's no ebay listing app for the n900 this is not really much of an option - u can of course use mbarcode to read the ean , copy and paste it into ebay-webform .. unless you are planning to write an ebay listing app .. ^^

lardman 2010-11-18 08:37

Re: mbarcode
 
Quote:

Originally Posted by rfa (Post 876703)
How would I implement this: http://www.ebayinc.com/content/press...20100623006637 or something like this?

I realise this is an iPhone app, so would RedLaser need to do it, or would I be able to? (If I could write the plugin for mBarcode)

Yes we could really do with a plugin that takes the EAN, and then does a lookup and search for where and what price you can buy the item. Android has had one of these for ages (and in fact was what prompted me to start writing mBarcode, unfortunately it's taken a while!). i.e. http://scan.jsharkey.org/

Now that we have working Python plugins, it should be significantly easier to do the weblookups/scraping required to do this. If there's any exsiting Python code out there that we could start with to save writing the whole thing from scratch, that would be good :)

lardman 2010-11-18 08:38

Re: mbarcode
 
Quote:

Originally Posted by LordVan (Post 876775)
sounds like basically they want to save ppl with iPhones from having to type the EAN,.. code into whatever selling app .. since afaik there's no ebay listing app for the n900 this is not really much of an option - u can of course use mbarcode to read the ean , copy and paste it into ebay-webform .. unless you are planning to write an ebay listing app .. ^^

It can't be that hard and would also be a worthwhile thing to do, but I've got quite a lot on my plate already so if someone else fancies having a go that would be good :)

E.g. http://developer.ebay.com/devzone/sh...s_nv_json.html

LordVan 2010-11-18 08:51

Re: mbarcode
 
Quote:

Originally Posted by lardman (Post 876848)
It can't be that hard and would also be a worthwhile thing to do, but I've got quite a lot on my plate already so if someone else fancies having a go that would be good :)

E.g. http://developer.ebay.com/devzone/sh...s_nv_json.html

The problem with that (for me) is that whenever ebay has those free listing days they add a note saying that u can't use any listing tools, but have to use the webpage .... suckers ;)


All times are GMT. The time now is 08:47.

vBulletin® Version 3.8.8