I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
picture frame app

New Messagepicture frame app (modified 0 times) marius
Profile
Hi,
i hacked up some qnx 6.0 sample source into a simple picture frame. Shows 640x480 jpgs full screen, cycles thru full directory of them, local or mounted. Comes with source in case u don't like it. Anyone interested? Any suggestion as to where to post it?

marius

11-12-2001 01:08:43

New MessageRE:picture frame app (modified 0 times) Desprato
Profile
Sounds great, I'm not sure about this site but audreyhacking.com has a files section. You should try to get in contact with the webmaster over there.
11-12-2001 02:11:28

New MessageRE:picture frame app (modified 0 times) gwright
Profile
In the meantime Marius, could you email me a copy. I would love to take a look at it.

GlenMWright at hotmail.com

11-12-2001 05:13:59

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
marius,

Either zip or tar it and kick it to 'audrey at dilligaf dot d2g dot com' and I'll put it up and give the link here to get it.

dill

11-12-2001 09:40:52

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
Here it is:
http://dilligaf.d2g.com/audrey/picframe.zip

There is also a link to it on my main Audrey page:
http://dilligaf.d2g.com/audrey/

dill

11-12-2001 11:34:48

New MessageRE:picture frame app (modified 0 times) bstadil
Profile
dilligaf,

Any chance that you could redo the colors on your site? Its very hard to read. I use Opera under Linux but I checked MS/IE and it is equaly hard.
Thanks


Bjorn
11-12-2001 11:54:12

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
Hmmmm, I found it pretty easy on MY eyes.

Which colors are hard to see?
Background - black
Text - light blue
Headers - orange
Links - blue
Visited links - red
Mouse over links - purple (this one is kinda hard I know)

Does it show up in those colors for you?

I'll try some different settings in the next day or so and see what I can come up with.

dill

11-12-2001 12:30:41

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
I thru in a white background.

Lemme know if that is readable.

http://dilligaf.d2g.com/audrey/indextest.html


dill

11-12-2001 12:52:11

New MessageRE:picture frame app (modified 0 times) bstadil
Profile
dilligaf,

MUCH better, Thanks.


Bjorn
11-12-2001 14:50:40

New MessageRE:picture frame app (modified 0 times) jhd3rd
Profile
Hey marius, thanks, it looks great and is just what I've been wanting in a picture frame. Just one thing - how do I stop it? I've tried every key, tapping on the screen, and poked in source code for a minute, but I can't find the kill swith.

BTW, for those that don't know, there is a great little program called Irfanview available at http://www.irfanview.com . Besides being able to view every image format known to man, it also has a cool batch resize and rename feature that is perfect for taking a group of pictures and resizing them to 640x480 and renaming them in numerical order.

11-12-2001 19:08:24

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
Bjorn,

No problem. The idea of webpages is to get information out. If someone has problems seeing it, they don't come back.

If you try to go to my test page in the near future and it isn't there, use the name indexwhite.shtml

I just did the test one real fast before I left today. I'll be changing it around to use includes so I will have only one page to change instead of the two I have now.

dill

11-12-2001 19:59:54

New MessageRE:picture frame app (modified 0 times) marius
Profile
Hey jhd3rd,
glad u like it . I tend kill it with ctrl-c on the console part. Otherwise slay should do it Not too versed in the Photon app building (yet?). I also wonder whether that keeps any resources hanging? Like the shared memory buffers? Anyone? I'll have a look at a more graceful way to shutdown..

marius

11-12-2001 21:15:53

New MessageRE:picture frame app (modified 0 times) marius
Profile
Oh, i forgot this: it's actually a plain old window but the frame is moved just out of the screen. So alt-space opens a little dialog of which 'close' is one of the options..

marius

11-12-2001 21:18:14

New MessageRE:picture frame app (modified 0 times) jhd3rd
Profile
Well I feel pretty stupid now, because of course <alt><esc> works just fine to shuffle windows just like always. I could have sworn I tried that. Oh well, thanks again for the program.
11-12-2001 22:04:43

New MessageRE:picture frame app (modified 0 times) marius
Profile
Ok, it's definately best to stop picframe with the alt-space sequence. Hitting ctrl-c on the console part most likely will leak shared memory. Or so it seems. Not familiar with this QNX stuff. Anyone?

marius

11-13-2001 01:22:52

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
Marius' update is at the same link on my site now. It won't allow ctrl-c.

dill

11-13-2001 01:39:02

New MessageRE:picture frame app (modified 0 times) jonnylbluejeans
Profile
Neat app.

Any chance you can modify it to randomly pick any image in a directory? I have a HUGE directory of images that I use for my website, and I'd rather not put them in sequential order.

11-13-2001 21:24:29

New MessageRE:picture frame app (modified 0 times) GOAT
Profile
Hi, a newbie here

Two minor questions, does my audrey have to be connected to a server in order for this to work? If not, about how many jpeg's could I fit on my audrey?

The big question...how do I get this app into my audrey and working? I am not familiar at all with QNX, but I am very good at following instructions. So step by step instructions would be nice, but I'll understand if you don't have the time.

11-14-2001 01:14:57

New MessageRE:picture frame app (modified 0 times) marius
Profile
jonny: it comes with source you know It's definately possible. I'm not too familiar with the directory contents reading functions on QNX.. Perhaps u use some cheap trick with symbolic links in sequence to your original pics? I'll have a look at it but i'm kinda short on time the next couple of weeks..

GOAT: u don't *need* a server connection for it to run. 640x480 jpgs are let's say 150k each so u should be able to stick tens of them on Audrey itself.As for getting it on Audrey.. do u have shell access? ftp? fs-cifs? Steps to get all those are sort of documented..

On another note, i figure we could concatenate tons of jpgs onto a 32M cf and have picframe read them from there.. something like a cheapo tar format of size|data and have picframe write a tmp file from which PxLoadImage() happily loads.. no network access required for operation at least.

marius

11-14-2001 02:38:32

New MessageRE:picture frame app (modified 0 times) jonnylbluejeans
Profile
Marius - speaking of the CF Card... I saw your decompiled devb-cf. What's the word on that? Are we any closer to being able to mount the CF card as a drive?
11-14-2001 05:16:45

New MessageRE:picture frame app (modified 0 times) marius
Profile
Well, the listing will help trying to figure out how to talk to it at the hw level. I'm not familiar with QNX device drivers but it seems to follow their regular pattern. Have to learn more. I figure someone with QNX device driver background plows thru this listing in no time. From the listing i got there are -c, -b, -p and -h options. I seem to get different responses from trying to mount when starting 'devb-cf -b' ( i guessed 'c'haracter device, 'b'lock device? ) but i don't know what i'm doing really Help needed!

marius

11-14-2001 14:35:18

New MessageRE:picture frame app (modified 0 times) GOAT
Profile
Marius,

Thanks for the initial info. I have shell (from the root) access and I can get my PC to act as an FTP server to download files to my Audrey. I've downloaded GIF's before, but how do I download your app into my Audrey and where would I put it? Where would I put my jpegs in my Audrey? Lastly, I'm not familiar with "fs-cifs"?

11-14-2001 21:24:03

New MessageRE:picture frame app (modified 0 times) marius
Profile
Hi GOAT,
fs-cifs allows u to mount a shared directory from your window machine onto a local directory on Audrey. Let's say your windows machine is called WinBox at IP address 192.168.1.100 and has a share called Photos, on Audrey open root console and enter command
'fs-cifs -a //WinBox:192.168.1.100/Photos /Photos guest guest &'.
U now should have a /Photos directory on Audrey and see all your pc hosted files in there. U can stick picframe in that same directory. Now with in that /Photos directory on Audrey u can start the picture frame with './picframe pic%d.jpg &' ( assuming your pictures are called pic1.jpg, pic2.jpg, .. ). If u don't have fs-cifs or need more info on it, search this board.. there's good stuff on it as to how to have it started automatically etc.

marius

11-14-2001 23:10:04

New MessageRE:picture frame app (modified 0 times) davinci27
Profile
Hey marius, I hacked up a Mostly QNX image that includes the screen saver from QNX. I had someone ask me if this app could be ported to a screen saver module. I don't know where to begin, so I was wondering if you or anyone else in this thread would be interested in trying to move it over.

Thanks
davinci27

11-18-2001 17:57:37

New MessageRE:picture frame app (modified 0 times) marius
Profile
Hi Dave,
sensible idea. I happen to be travelling these weeks so i won't be hacking anything any time soon. I haven't even gotten around to try your image. It sounds good!

marius

11-18-2001 21:47:42

New MessageRE:picture frame app (modified 0 times) wauger
Profile
I was thinking the same thing about porting the marius' picframe app into a screen saver module. That way the an focus on the audrey would go right back to the desktop or some open photon app. Has that progressed any farther? That would a very cool thing!!!!
02-10-2002 14:27:31

New MessageRE:picture frame app - Getting 500 error (modified 0 times) sonofaglitch
Profile
Is the dillgaf site having problems? I am unable to reach it.

Would like to check out that pictureframe app!

02-10-2002 19:40:18

New MessageRE:picture frame app (modified 0 times) jukebox
Profile
Dill, what's going on.. Access Forbidden..
Hope you get that straight again soon.
02-11-2002 11:16:06

New MessageRE:picture frame app (modified 0 times) Vermifuge
Profile | Email
Ok after having some problems running this program i finaly got it working. One thing. Is there an exit command?
02-12-2002 20:18:17

New MessageRE:picture frame app (modified 0 times) mheeli
Profile
Hi , I've taken Marius's picframe (hope you don't mind) and modified it to randomly display a JPG file from a specified directory. It will also terminate when you touch the screen.

More details at http://homeseer.infopop.net/3/OpenTopic?a=tpc&s=697298074&f=9352978952&m=1042996104

Mheeli.

02-18-2002 06:25:34

New MessageRE:picture frame app (modified 0 times) Vermifuge
Profile | Email
This fits my needs much better! thank you
02-18-2002 11:56:51

New MessageRE:picture frame app (modified 0 times) santur
Profile
The RandomPic by Mheeli works fine, but it does not show the pictures don't occupy the full screen. It only covers subset of the screen. Is it possible to provide an option for full-screen view.

Thanks

02-19-2002 21:29:31

New MessageRE:picture frame app (modified 0 times) dilligaf
Profile
Whoa!!! I am sorry everyone.

I seldom access my site from outside my network and didn't know there was a problem getting to it.

I also haven't checked the Audrey sites in a while :(

My site seems to be up and working now. I wonder if D2G was having problems.


dill
http://dilligaf.d2g.com/audrey/
http://dilligaf.d2g.com/audrey/indexwhite.shtml
02-19-2002 21:45:57

New MessageRE:picture frame app (modified 0 times) mheeli
Profile
santur,

That's strange, mine shows in full screen. Did you resize your pictures to 640x480? I used IrfanView to batch convert mine.

Mheeli.

02-20-2002 06:54:36

New MessageRE:picture frame app (modified 0 times) santur
Profile
Mheeli,

That fixed the problem. I used Irfanview to convert the pictures to 640x480 as you suggested and it works great! Thanks for making it user friendly. Now, I plan to write a script to mount the Windows share and invoke the "randompic" program so I can start it from the "Action" button. BTW, I got "insuffient memoery" on pictures of size 1024x780 which probably makes sense as Audrey can't display it.

santur

02-20-2002 22:10:38

New MessageRE:picture frame app (modified 0 times) santur
Profile
Mheeli,

Just found one problem. "randompic" fails when it ends up trying to read a non JPEG file like the hidden file "Thumbs.db". Is there any way to put a check to make sure that it only reads JPEG files and not any other type of files in the directory.

Thanx

santur

02-20-2002 22:44:16

New MessageRE:picture frame app (modified 0 times) jbhasin
Profile
The Picture frame app is great. The one question I do have is ... how do I prevent the Audrey from timing out and powering off the display? I'd like to have the picture frame up all the time. Any Suggestions?

Thanks

Jaspal

02-23-2002 13:48:05

New MessageRE:picture frame app (modified 0 times) booya
Profile
from root shell type..

# echo 0 >/config/SYSTEM_ScreenSaveSecs

02-23-2002 17:47:13

New MessageRE:picture frame app (modified 0 times) Livin
Profile
mheeli

can you post the SHTML page you call RandomPic from?

I've tried this and it does not work:

<html><head><title>Photos</title></head><body>
<!--#exec cmd="/picframe/randompic" -->
</body></html>

this one worked with PicFrame:
<html><head><title>Photos</title></head><body>
<!--#exec cmd="/picframe/picframe /picframe/pic%d.jpg 4000" -->
</body></html>

02-23-2002 23:47:06

New MessageRE:picture frame app (modified 0 times) Livin
Profile
mheeli... I got it to run using:

<!--#exec cmd="/picframe/randompic /picframe" -->


A few things I've noticed that a bit bothersome... I'm nit-picking, sorry...
1) there is a "bar" on the right ride of the screen making the pic just a bit less than full screen.
2) a few of my pics, the ones that are not full screen width, are not centered on the screen?

Also,
Are there switches to make it "not random" and roll through the pics "in-order" - this would be nice, some of the pics seem to display more often than others and I'd like it to just roll through them one at a time.

thanks

02-23-2002 23:57:26

New MessageRE:picture frame app (modified 0 times) santur
Profile
I found another issue. Now after displaying 4 or 5 images, "randompic" crashes saying "insufficient memory to sore image data". Is there a way to clean-up memory or to make the program efficient?

Thanks,

Santur

02-24-2002 21:30:31

New MessageRE:picture frame app (modified 0 times) Livin
Profile
santur...
that means that the audrey cannot load the pic... it is too big (bytes). reduce the size of your pic. Make sure it is no larger than 640x480 also.
02-24-2002 23:42:01

New MessageRE:picture frame app (modified 0 times) santur
Profile
All my pictures are resized to fit 640*480. It seems that if I have less than 5meg available than the randompic fails after displaying 4 to 5 images. If I do "slay Browser" than I get enough memory to run "randompic". Is there any other way to reclaim the memory.

Thanks,

Santur

02-25-2002 22:33:38

New MessageRE:picture frame app (modified 0 times) mheeli
Profile
Santur,

I had Browser, Mail, Datebook, address_book running and still RandomPic just keeps going. The average filesize of my pics are around 65-70K. How big are yours?

Mheeli.

02-25-2002 23:39:59

New MessageRE:picture frame app (modified 0 times) mheeli
Profile
I've slighty modified the first version to make it more stable. It seems that fs-cifs mount to Win2k is not that great and if I start running RandomPic on more than one Audrey (I have 4) from the same share directory , it crashes.
So I modified the code to copy the picture to /tmp first then display it. It is now a lot more stable and can be run on more than 1 Audrey at the same time.

I think it's time for me to hand over the source code to someone else to take it a bit further as my C programing ability (or lack of) is very limited.

I'm sure some of you C experts can clean up the code , trap the error (mostly memory) and resume instead of terminate, better Random module etc..

Note:
There might be some of you that run RandomPic and it just display 1 or 2 picture then terminate. It also happened to me when I changed from fs-cifs to fs-nfs2. Looks like fs-nfs2 eats more memory than fs-cifs

Please goto http://homeseer.infopop.net/3/OpenTopic?a=tpc&s=697298074&f=9352978952&m=1042996104 to download.

Mheeli

04-05-2002 21:33:10

New MessageRE:picture frame app (modified 0 times) allyourbase
Profile
Marius,

Any idea what

Unknown symbol: Log

is that I get when starting up picframe from the shell?
I am running the updatewithshellplus image

thanks

01-19-2003 13:04:24

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3