Re: Web Browser

I'm working on a transit information display using the Infocast (see http://portlandtransport.com/archives/2 … d_1.html). Would anyone who has a development environment for QTweb consider building a version that opens in some kind of kiosk mode (no toolbars, etc.) or which disables the popup blocker (so I can use window.open to get a window without the toolbars)?

Right now I have to have the user touch the screen to trigger the window.open.

Thanks!

Re: Web Browser

It's wonderful news to have internet access on the Infocast!!!

My question: Is it possible to install the same or similar web browser into the SONY DASH?
Look forward to reading your comments.

Re: Web Browser

That's a question best addressed to Sony.

The implementation mentioned in this thread will not work as-is because the Sony dash does not allow external applications to be run.

Re: Web Browser

What a shame the DASH does not allow external applications to be run. Perhaps Sony's decision was intentional to avoid cannibalizing other products.

Do you believe there may be a future opportunity to have some form of internet/browser access on the DASH?

Re: Web Browser

No, my understanding is that it's locked down because it's required by the Digital Rights Management to play NetFlix and DRM-encumbered WMA files.

Again, I can't speculate on Sony's plans for the dash, since it's their product, not ours. It's probably best to ask them on their forum - it's linked from our forum.

Re: Web Browser

Any idea why Insignia behaves different than Chumby when it comes to executing local apps from a laptop web browser such as mentioned here? http://forum.chumby.com/viewtopic.php?id=249
I know Insignia does not have the httpd daemon on by default;  I implemented the chumby lighttpd and can browse the apps;  But when it is clicked, the web browser is trying to download the file than execute it within insignia;  Chumby kills the control panel and executes the widget correctly.

32

Re: Web Browser

cow009 wrote:

Any idea why Insignia behaves different than Chumby when it comes to executing local apps from a laptop web browser such as mentioned here? http://forum.chumby.com/viewtopic.php?id=249
I know Insignia does not have the httpd daemon on by default;  I implemented the chumby lighttpd and can browse the apps;  But when it is clicked, the web browser is trying to download the file than execute it within insignia;  Chumby kills the control panel and executes the widget correctly.

This post belongs in the thread you mentioned or in a new thread under Insignia Infocast.  This thread is specific to running a Web Browser on the Infocast (not a web server).

But to answer your question - make sure that the permissions on the CGI scripts are set executable and that they use Linux style line endings.

Re: Web Browser

The web browser works great, but I'm curious is there any way to launch it from within the Chumby/Insignia UI?

Also I noticed it appears the webkit browser doesn't have/support flash currently.  Anybody been able to install it?

Re: Web Browser

Ken,
1st, wow, great job.  I just got an Infocast on Friday and the Black Friday sale, and tried out your web browser this afternoon.

2nd, a question: is there any chance that it can run along with the normal apps and features, with a menu selection to go to the browser, rather than having to reboot to switch to and from the web browser?  I don't really know the Chumby or Infocast architecture, so I don't know if this would be feasible or not.

Re: Web Browser

I've been thinking there might be a way to do something like this, http://kennethfinnegan.blogspot.com/201 … drive.html , but with the web browser instead of the web server.

I have confirmed that at the very least it appears that the flash drive is not required once the BB8 has been rebooted and the QT window has been launched, and it will even successfully relaunch the QT browser app/window if all the open ones are closed, even after the flash drive has been removed.  So it leads me to believe that there is something that is running resident we might could latch on to. 

The main issue i could see is since the QT app opens what appears to be a different 'desktop' than the standard Infocast/Chumby OS that we may have an issue with overlapping displays or switching between them.

Any chumbists been able to launch any arbitrary code on the BB8 via the local GUI?

Re: Web Browser

This browser is just what I need for my project - huge thanks... but I cant seem to get it to launch maximized.  Any easy way to do this?  (or, better yet, launch in full-screen mode?)

Re: Web Browser

Amen to full full-screen mode!

38

Re: Web Browser

damen wrote:

This browser is just what I need for my project - huge thanks... but I cant seem to get it to launch maximized.  Any easy way to do this?  (or, better yet, launch in full-screen mode?)

You can force the browser to full screen by calling browser->resize() in BrowserApplication::newMainWindow in demos/browser/browserapplication.cpp:

BrowserMainWindow *BrowserApplication::newMainWindow()
{
    BrowserMainWindow *browser = new BrowserMainWindow();
    m_mainWindows.prepend(browser);
    browser->resize( 800, 600 );
    browser->show();
    return browser;
}

Additionally, if you would like to remove the window chrome (min/max/close buttons and bar), you can do so by calling browser->showFullScreen() in the same function:

BrowserMainWindow *BrowserApplication::newMainWindow()
{
    BrowserMainWindow *browser = new BrowserMainWindow();
    m_mainWindows.prepend(browser);
    browser->resize( 800, 600 );
    browser->showFullScreen();
    browser->show();
    return browser;
}

39

Re: Web Browser

ViennaMike wrote:

Ken,
1st, wow, great job.  I just got an Infocast on Friday and the Black Friday sale, and tried out your web browser this afternoon.

2nd, a question: is there any chance that it can run along with the normal apps and features, with a menu selection to go to the browser, rather than having to reboot to switch to and from the web browser?  I don't really know the Chumby or Infocast architecture, so I don't know if this would be feasible or not.

To add a button for launching the browser from the control panel, you'd have to develop your own control panel.  While it's technically possible to run the browser and the control panel at the same time, both Flash and Qt currently require different input events (hence the modified touch screen driver).  For this hack, you should always stop the control panel prior to launching the browser...

Re: Web Browser

<i>Additionally, if you would like to remove the window chrome (min/max/close buttons and bar), you can do so by calling browser->showFullScreen() in the same function:</i>

Ken, I would be eternally grateful if someone with a development environment built a binary that did this!

41

Re: Web Browser

chrissm wrote:
Ken wrote:

Additionally, if you would like to remove the window chrome (min/max/close buttons and bar), you can do so by calling browser->showFullScreen() in the same function:

Ken, I would be eternally grateful if someone with a development environment built a binary that did this!

OK, just built a new browser binary with those changes.  Simply replace your existing /mnt/usb/demos/browser/browser with http://files.chumby.com/browser/browser … fullscreen.

Re: Web Browser

Thanks, Ken! Just so I'm clear is that file an archive of some kind, or is it the actual binary? If it's the binary, I just save it on top of the existing browser/browser binary? (first try at that doesn't seem to be working)

43

Re: Web Browser

It is the actual binary.  You will need to rename it to browser and copy it over your original one at /mnt/usb/demos/browser/browser.

Re: Web Browser

Ken, you are quite simply the man!  thanks

Re: Web Browser

Hey Ken, when I try to use that new binary you posted I get an error...
/mnt/usb/demos/browser/browser: symbol lookup error: /mnt/usb/demos/browser/browser: undefined symbol: _ZN9QListData11detach_growEPii

any ideas?

Re: Web Browser

My 8" infocast freezes with this new binary...

Re: Web Browser

@chrissm: you are probably seeing the same error we did, but it appears to be hanging because the debugchumby script runs the browser in a while loop.  Since the browser keeps crashing, you are stuck in the loop...  We changed the end of the debugchumby script to capture the error and remove the loop so that the system can finish booting.

I'm recompiling now, if that fixes the problem for us, then I'll post an archive of that build...

48

Re: Web Browser

I'll rebuild everything and post a new zip shortly.  It's possible that my libraries got out of sync from what I had originally posted on the wiki.

49

Re: Web Browser

OK, turns out I had accidentally linked against the Qt 4.7.1 libraries.  I've posted a new version of the fullscreen browser binary here - http://files.chumby.com/browser/browser … fullscreen

Simply copy the new browser binary over your old one (make sure to rename it to browser) and you should be good to go.

/mnt/usb-1CCA-16FE # wget http://files.chumby.com/browser/browser_qt-4.6.3-fullscreen -O demos/browser/browser
--13:31:54--  http://files.chumby.com/browser/browser_qt-4.6.3-fullscreen
           => `demos/browser/browser'
Resolving files.chumby.com... 69.43.206.56
Connecting to files.chumby.com|69.43.206.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 459,012 (448K) [text/plain]

100%[===============================================================================================================================================================================================>] 459,012      258.89K/s             

13:31:56 (258.12 KB/s) - `demos/browser/browser' saved [459012/459012]

/mnt/usb-1CCA-16FE # md5sum demos/browser/browser
9b314d3c83688c1a9b9e74f66e8e63be  demos/browser/browser

50 (edited by damen 2010-11-30 13:52:09)

Re: Web Browser

I'm gonna be a pain now (sorry).  the new browser binary works, and is awesome.  But I was hoping to get rid of literally EVERYTHING (no URL bar, no shortcuts, etc..).  I'd like them to literally see nothing but the webpage itself.  kind of drifting OT from the thread, but is that possible to do?  (I dont want my users to be able to do anything but what I give them, basically)

edit: haha, you dont have to post a binary for me if thats a pain, just point me in the right direction.  I really appreciate all the assistance.