I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
Digital Frame and more

New MessageDigital Frame and more (modified 0 times) roncri
Profile | Email
Got my Audrey a couple of days ago and have been busy getting it useful. I thought I post on how I’m using my Audrey.

First I got all the latest updates plus shell, thanks to the guy hosting the DNS spoof. I then installed the virtual keyboard.

What I wanted was to put my Audrey in the kitchen by the phone. I would use it as a digital picture frame, and as a web based interface to a recipe database and an address book/phone database. I’ve got the digital picture frame and recipe database working now and am working on the address book/phone database.

A little background on my home setup. My entire house is wired with Cat5 and I have a Windows 2000 web and print server setup downstairs.

When I start up the Audrey browser, it goes to my Audrey homepage on the web server downstairs. From there you have three links, recipe, contacts, and screen saver. The screen saver is pretty cool. I have a folder on my web server called pictures. All I do is drop 640 x 480 *.jpg’s into the folder. My screen saver page is a ASP page that looks at the folder, creates an array of all the images in the folder and then randomly displays one of them. I use a meta tag at the top of the page to handle an automatic refresh of the page which I have set at 60 seconds but it could be anything that you want. This way if I have a new photo that I want to add to the rotation, all I have to do is drop the photo into my picture directory. The ASP handles the rest. I link the picture itself to the Audrey homepage so touching the screen while the it’s in “digital picture frame” mode takes it back to the homepage. If anyone’s interested in the code, drop me some e-mail.

-Ron
p.s. 640x480 fills the screen perfectly with no scroll bars if the browser is in full screen mode.

01-14-2002 18:09:01

New MessageRE:Digital Frame and more (modified 0 times) caderoux
Profile | Email
Ron,

I've got something similar but 640x480 doesn't work - I force the image to something slightly smaller using WIDTH and HEIGHT attributes in the IMG tag. I'll post my ASP when I get home. It would be good if you could post yours so I could try it out.

I have plans for configuration, where the ASP would check the hostname (I have 6 Audreys) and offer a different selection of pictures based on the time of day, Audrey placement in the house, season, etc.

TIA,

Cade


Cade Roux
01-14-2002 18:22:36

New MessageRE:Digital Frame and more (modified 0 times) adam714
Profile
roncri,

Feel like sharing that code?

01-14-2002 19:41:34

New MessageRE:Digital Frame and more (modified 0 times) caderoux
Profile | Email
This is my script - I call it pixie:
<pre>
<%@ LANGUAGE=VBSCRIPT %>

<%
Option Explicit
Response.Expires = 0
%>

<% Function MainContent() %>
<%
Dim fso
Dim fo
Dim f
Dim ct

Set fso = CreateObject("Scripting.FileSystemObject")
Set fo = fso.GetFolder(Server.MapPath("."))

ct = 0
For Each f In fo.files
If ( InStr("jpg,gif", LCase(Right(f.Name, 3))) > 0 ) Then
Redim Preserve a(ct + 1)
a(ct) = f.Name
ct = ct + 1
End If
Next
Set fo = Nothing
Set fso = Nothing

Randomize
%>
<img width="615" height="461" border="0" hspace="0" vspace="0" src="<%= a(CInt(Rnd() * CSng(ct - 1))) %>">
<% End Function %>

<html>
<head>
<meta http-equiv="Refresh" content="30;URL=default.asp">
</head>
<body margin="0" bgcolor="black">
<%= MainContent() %>
</body>
</html>
</pre>


Cade Roux
01-14-2002 23:54:23

New MessageRE:Digital Frame and more (modified 0 times) roncri
Profile | Email
Whoa, I've had a lot of request for the code so I've posted a zip up at http://www.cybercatt.com/DFP.zip. Remember, this code needs to runs under IIS 5.0 on a Windows 2000 server.

-Ron

01-15-2002 00:55:58

New MessageRE:Digital Frame and more (modified 0 times) roncri
Profile | Email
Weird, our code uses a lot of the same stuff. About the only big difference I can see is my body tag is
<body bgcolor="#ffffff" TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">.

Yep, that's it. I tried your body tag in my code and got scroll bars. Useing the body tag above takes care of it.

-Ron

01-15-2002 01:00:49

New MessageRE:Digital Frame and more (modified 0 times) caderoux
Profile | Email
Thanks, I'll check out your code.
Cade Roux
01-15-2002 11:36:07

New MessageRE:Digital Frame and more (modified 1 times) bazhob
Profile
Deleted
01-15-2002 17:06:39

New MessageRE:Digital Frame and more (modified 0 times) ABJim
Profile | Email
Anyone know how to make this work on a Mac? I can serve it to audrey and the index.asp page works, but the links do not.

Jim

01-15-2002 17:37:37

New MessageRE:Digital Frame and more (modified 0 times) roncri
Profile | Email
Are the *.asp pages running on the Mac or are you having trouble using a browser on the Mac? As far as I know, you have to have the pages running on a Windows 2000 machines that is capable of processing ASP.

-Ron

01-16-2002 16:01:53

New MessageRE:Digital Frame and more (modified 0 times) ABJim
Profile | Email
I'm afraid you may be right. What I did is tell the Mac's built in server ("WEB SHARING") to use the folder AUDREY that I downloaded as the server folder and the file index.asp as the file that will be served. Then i put my address 192.168.1.101 in audrey...that brings up the menu page...recipes and all that. When I click on the Screensaver, I get a text page, not a picture. Since the mac did serve the index page correctly and audrey could read it, i figured I was in...but no luck. Ideas?

Jim

01-16-2002 16:19:12

New MessageRE:Digital Frame and more (modified 0 times) caderoux
Profile | Email
You'll need IIS or PWS running on a Windows machine. ASP requires server side processing. If you read the script, it's really not that difficult to convert it to your favorite scripting flavor supported on your favorite web server. It just reads the files in the directory and serves one up at random. No database or anything really fancy (yet).
Cade Roux
01-16-2002 18:24:19

New MessageRE:Digital Frame and more (modified 0 times) adam714
Profile
i have roncri's script running under PWS on a 98 box. it works fine except i can noto get rid of the white border around the pictures, any suggestions?
01-21-2002 10:29:31

New MessageRE:Digital Frame and more (modified 0 times) adam714
Profile
another question:

how do you make pictures show sequentially instead of random?

01-21-2002 12:13:02

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