Topic: Picasa widget doesnt show pictures

I loaded the widget, logged in to my picasa account, selected the album, but all my chumby displays on the screen is "loading album vacation" and a blank screen.

2 (edited by jvc 2007-11-23 12:42:55)

Re: Picasa widget doesnt show pictures

I wrote the widget. A few questions...

Are the photos in a public album?
Does it play in the virtual chumby?
How many photos are in the album?

Re: Picasa widget doesnt show pictures

It is in a public album
Yes it works on the virtual chumby
It has 96 photos for a total of 34MB.

Does it have to download the entire album, or does it download one picture at a time?

Re: Picasa widget doesnt show pictures

it currently downloads all the pictures which is probably the problem. I am just using the small photos from the feed (google offers 3 sizes) so it shouldn't download 34 megs.

You may want to try and create a chumby album with fewer pics. Picasa allows you to copy photos between albums.

Re: Picasa widget doesnt show pictures

I created an album with 18 pics and 5MB and it works.   Guess I can't put my 2GB of pictures on Picasa and see it on the Chumby.  smile

Re: Picasa widget doesnt show pictures

cool - good to hear.

7 (edited by jvc 2007-11-24 22:25:13)

Re: Picasa widget doesnt show pictures

I've updated the widget to progressively download photos instead of the previous method of downloading the album. In short you you should see the slideshow start much quicker.

The side effect of this is that your photos won't be in order as the speed they are downloaded is dictating when they are shown

unfortunately you may see the slideshow go offline until chumby re-releases it because I have updated the widget

Re: Picasa widget doesnt show pictures

jvc,

This widget is indeed very cool and one I had intended to write over the Christmas holidays...  but you beat me to the punch!

I have it working and I like it very much.  The modification you made to progressively load the pics was a nice change to make. 

I only have 1 other request that I hope you could make.  I would love to randomize the pictures that are shown.  I hate having to manage the exact pictures that I want to show in my album.  I would much rather have a single album devoted to chumby that I could just occasionally throw a picture or two into without having to weed out earlier pictures just to make sure it shows up.

Having it randomize which pictures are shown would alleviate this problem and keep us from having to see the same pics all the time.

Thanks so much for your work.

Re: Picasa widget doesnt show pictures

spacemutt, I am not sure what you mean... One thing you can do is create dedicated album in picasa and copy other pictures over to it from other albums.

Are you just talking about shuffling the order of the pics in a certain album?

Re: Picasa widget doesnt show pictures

Yes.  Simply shuffling the order of the pictures would be acceptable.

Basically I am trying to ease the burden of keeping the pictures fresh.  I realize that I could go out to Picasa as often as I wish and move stuff in/out of my album.  However, I would much rather just throw a couple of new pics into my album whenever I felt like it and not have to worry about micromanaging the album just to make sure they showed up. 

For example, to make sure any new pics I place in my album show up, I currently have to whittle the album list down to a size that would ensure that all of the pictures have time to show.  Let's say I show the widget for 90 seconds and I display each picture for 5 seconds with a 2 second fade.. that means I might get 10-15 pics to show up and they are pretty much always the same pictures and in the exact same order.  So I would have to manually maintain my list to keep it to that number of pics if I wanted new pictures to show up.  Now suppose that  I wanted to tweak my channel and have the widget go for a longer period of time... or perhaps I want a different channel with nothing but this widget that plays a lot more pics... then I would have to create an entirely new album or something... all of which is more maintenance and more time consuming.

If you could provide a shuffle option then I could simply have 1 album with as many pics as I wanted and not have all these album management issues.

I realize that there would have to be some limit on what you could load.  So depending upon how it is coded I could see that if I had a channel that simply ran this widget "Forever" and I had an album with 100GB if pics, then that might be a problem due to memory constraints.  So maybe you could have 2 parameters to configure instead:

1.  Is Shuffled? (bool)
2.  Max pics to load  (int)

Or better yet, maybe the code could load on pics on demand and try to stay just a few pics ahead of the display.  Then you could free up the pics that have already been displayed before loading the next one.  That way it truly could run "Forever" and show all the pics in the album.

Of course I say all of this without any knowledge of what you have to work with in the Flash/Chumby environment.. just my general programming background.

Heck, while I am at it and I have the author's attention (this is great!)....  I love the feature of touching the screen and moving to the next pic, any chance of coming up with something that would allow you to pause briefly on a pic as well?

Thanks so much.

Re: Picasa widget doesnt show pictures

+1 on the shuffle option.  Seeing the same exact pictures ever time the widget loads is kinda boring, especially if the dwell time for the widget is less that the time it takes to view all the pics.

Your widget is one, if not the, reason I'm going to get a chumby for my parents.  So all us kids can push pictures to their kitchen table. After the recent update that added the ability to manually go to the next pic and the configurable picture dwell time, a shuffle option would be the only thing more I'd ask for.

Thanks for making this widget!

12

Re: Picasa widget doesnt show pictures

ok. I updated the widget again (so you may see it go offline again but Chumby has been very good about getting it back online).

The shuffle option is now configurable and the albums should start much quicker. it's turned off by default so you will need to go to the configuration screen.

One other major change is that I replaced by XML parsing routine and I am seeing 5X speedier updates than I had previously.

I'm thinking about the max photos options but I need to put some thought behind how to integrate it. The configuration app is also getting pretty stuffed so I need to   put more time in this before I stuff any more options in..

Enjoy!

Re: Picasa widget doesnt show pictures

You seriously rock!  This is extremely cool.

I think the "max pics to load" is only a problem if the album is too large for the chumby to load it all..  in other words what would happen if I configured this widget to run "Forever" and I have 10 GB of pics in the album?  I don't know...

The "pause on a pic" is another nice one but I am sure it is low on your list.  I would just like it just for those cases where I want to say "Hey soandso, check out this pic of you at suchandsuch" and it is gone before they make it over to the chumby to take a look.

Thanks for the awesome widget.. I was hoping for this widget since I purchased the chumby.

Re: Picasa widget doesnt show pictures

If it helps you as you continue working on it, my usage scenario is something like this:

1.  1 public Picasa album with at least 100 pics, possibly a lot more.
2.  My main channel will show the Picasa widget for 60 seconds followed by a couple of other widgets for another 30 seconds (like a clock).

I could configure the Picasa widget as

Photo Duration: 5s
Fade Time: 2s
Shuffle Photos: Yes
Max Pics To Load: 10 pics

In this manner, every time the Picasa widget was shown, I would see 8-9 new random photos from the album.  In my example I have used Max Pics to Load to make the widget more efficient by not loading more than I know will display anyway.  But it could be set to something small like "3", which would give it a different behavior of seeing the same 3 pics several times before the next widget is displayed.

Sorry for the long posts but I hope they are helpful to you... Thanks again!

Re: Picasa widget doesnt show pictures

Nice job on the widget. I have one suggestion, and that is to make not only publicly viewable albums viewbale, but also private ones.

What prevents from passing creds? It, Username/pass.... Is there a limitation for this?

Great work, I love it.

J

16

Re: Picasa widget doesnt show pictures

Spacemutt,

another thing that may solve your problem in the meantime is to add multiple picasa widgets. The "too large of an album" issue will probably show up when the xml is loaded from google as the feed they provide is pretty massive. I have to pull the entire feed per album anyway so putting a max pics option up front won't relieve  this.

As for having 10 gigs of photos, I am just pulling the larger thumbnail they provide not the original uploaded size.

Re: Picasa widget doesnt show pictures

Oh well... back to reality.   It was so much better making design suggestions in a vacuum void of any real life issues or data smile

Thanks again and I look forward to any future revisions you make.  Keep up the good work.

18

Re: Picasa widget doesnt show pictures

JKing3, I'm going to put the private albums on the to-do list. It looks you can use the auth key that appears in the URL to get access to private albums/pics. Album lists appear to be unavailable this way so configurating it won't be as simple as it is now.

19

Re: Picasa widget doesnt show pictures

I have private albums working in a beta - if you would like to try it see this thread:

http://forum.chumby.com/viewtopic.php?pid=6215

20 (edited by sippykup 2008-01-05 02:32:40)

Re: Picasa widget doesnt show pictures

I just tried this widget out for the first time, and it still seems unusably slow on decent-sized albums (the one I tried it with has 266 photos.)

I wrote my own simple picasa widget in OpenLaszlo.  It loads up quickly (takes about 5 seconds for the 266-photo album), and randomizes the photos.  Here's the source if you want it.  What sucks is that I noticed that picasa doesn't have an open crossdomain.xml on their site, so all requests have to be proxied.  How are you dealing with that?

<canvas width="320" height="240">

    <dataset name="photos" type="http" request="true"
            datafromchild="true" cacheable="true"
            src="${'http://picasaweb.google.com/data/feed/api/user/' + user + '/album/' + album + '?kind=photo&thumbsize=320'}">
        <handler name="ondata">
            photoURLs = photos.getPointer().xpathQuery('/feed/entry/group/thumbnail/@url');
            imgA.setResource(photoURLs[Math.floor(Math.random() * photoURLs.length)]);           
            imgB.setResource(photoURLs[Math.floor(Math.random() * photoURLs.length)]);
            LzTimer.addTimer(control.del_timer, 5000);
        </handler>
    </dataset>
   
    <view id="control">
        <attribute name="del_timer"
                value="$once{new LzDelegate(this, 'go')}"/>
        <method name="go">
            if (imgA.opacity == 1) {
                imgA.fadeOut.doStart();
                imgB.fadeIn.doStart();
            } else {
                imgB.fadeOut.doStart();
                imgA.fadeIn.doStart();
            }
            LzTimer.addTimer(del_timer, 5000);
        </method>
    </view>

    <view id="imgA" width="320" height="240" opacity="1" bgcolor="#000000"
            stretches="height">
        <animator name="fadeIn" duration="500"
                attribute="opacity" from="0" to="1"
                start="false" motion="linear">
        </animator>
        <animator name="fadeOut" duration="500"
                attribute="opacity" from="1" to="0"
                start="false" motion="linear">
            <handler name="onstop">
                parent.setResource(photoURLs[Math.floor(Math.random() * photoURLs.length)]);
            </handler>
        </animator>
    </view>
   
    <view id="imgB" width="320" height="240" opacity="0" bgcolor="#000000"
            stretches="height">
        <animator name="fadeIn" duration="500"
                attribute="opacity" from="0" to="1"
                start="false" motion="linear">
        </animator>
        <animator name="fadeOut" duration="500"
                attribute="opacity" from="1" to="0"
                start="false" motion="linear">
            <handler name="onstop">
                parent.setResource(photoURLs[Math.floor(Math.random() * photoURLs.length)]);
            </handler>
        </animator>
    </view>

</canvas>

21

Re: Picasa widget doesnt show pictures

Thanks for sharing. With a 266 picture album the XML would be huge and I am take an extra step with the data and parse it into an Object that makes the code more readable/usable for me. It's cool to see and hear an xpathQuery is  quicker and I will have to look at that method. I haven't used xpath in actionscript since the xfactorstudios version which is a bit heavy for a chumby app.

Right now the app uses my personal server on Dreamhost as a proxy. I did come across this site the other day which may help.

http://nocrossdomain.com/

Re: Picasa widget doesnt show pictures

The XML is 56 KB for the 266 picture album.  I wouldn't exactly call that huge. smile  A proxy seems to be the only way that I can see to get the picasa pictures served up.  The nocrossdomain.com thing sounds like a cute trick, but I tried it, and my version of Flash (9.0) is smart enough to request the crossdomain.xml from the redirected URL, and still block me from getting to it.  I hope the chumby community isn't sucking up too much of your Dreamhost bandwidth. smile

23

Re: Picasa widget doesnt show pictures

The widget is currently using about 9GB/mo in requests. Fortunately dreamhost provides 4000GB/mo(+40GB added per week) so I have a while to go before I would have a problem.

Yeah - 56KB isn't a large file size it's just the complexity that seems to slow the widget during the re-processing into the Object formats. I swapped out  my XML2Object code once already and that made a big difference in response times. I could take that step out but the readibilty of the objects helps me with the video, album loading of the config widget and future stuff I want to do with maps.

I am surprised to hear about the nocrossdomain.com proxy not working. Have you tried it on the Chumby to see if FlashLite acts any different with it?

Re: Picasa widget doesnt show pictures

Yeah, I had the same thought, so I tried it on the Chumby, but no dice.  In my browser, I can watch Flash tell it to make the request, get redirected, and actually retrieve the data.  However, before it will give it back to me, it sends a crossdomain.xml request to google, and then won't actually return the data to the swf.  It's possible I'm just misunderstanding something, so let me know if you're able to get it to work for you.

25

Re: Picasa widget doesnt show pictures

I am getting the same behavior with nocrossdomain.com here

This doesn't help with programmatic access but if you can use some of these solutions for individual feeds if you don't have access to a proxy

http://forum.chumby.com/viewtopic.php?id=1146