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
Channel Content on Your Server
Restore some channel functionality

New MessageChannel Content on Your Server (modified 0 times) Fran
Profile
I'm going to describe a simple method for restoring the functionality of the Channel knob; my method is to host all relevant Channel files on my server, thereby simplifying the maintenance of Graphic, Icon and Index.shtml files (and free-up some space on my Audrey). This will also, down the road (for me anyway), allow Windows-based applications to cache content (e.g. like HomeSeer).

You might want to read the background material, below after the '+++++,' if some of the concepts in this section are foreign to you.

What I did, for each channel, is to re-create the standard channel directory structure on the server where my share is located. You have to have a share mounted for this method. My share is Gwendelyn:/AudreyData. Every directory except for /Template, that is; I just put my Index.shtml under my .template directory because I deliberately broke the redirect links defined in boot.sh. So, under Gwendelyn:/AudreyData I have twelve directories in the form
/Channels/ChannelXX/.template/Index.shtml
/Channels/ChannelXX/Graphic/Graphic.gif
/Channels/ChannelXX/Icon/Icon.gif
Where XX is in {01..12}. I couldn't use File Manager to name the /.template directory, so I used a DOS window.

Comment out the call to boot.sh in /kojak/go. (Alternatively you could re-define the links in Boot.sh to point the .template directory to your share /Channels/ChannelXX/Template directory.) Also, re-define the links at /data/XML/Channels/.ChannelXX (note the "." in ".Channel") to point at your share /Channels/ChannelXX directory. Do this by
cd /data/XML./Channels
rm .ChannelXX
ln -s /AudreyData/Channels/ChannelXX .ChannelXX
Make sure you have mounted your share in Boot.sh before you define the links - I created a script 'mountGwen.sh' with two lines, a 'sleep 5' followed by the fs-cifs mount command and called it from /kojak/go right where the call to boot.sh had been. Now re-boot.

That's it! You now have easily maintainable channel content on your server.

Incidentally, the directory /data/XML/Channels/.countertop/Template has the index.shtml file for that annoying "AudreyChannel" screen (because I think you know what the buttons do by now ...). Change this in the same manner as for Channel01 .. Channel12 (i.e. define the Channel00 on your server) and THIS will be the channel your Audrey always comes back to when she gets "lost"

++++++++++++++++
Some background for folks who want to continue hacking the Channel functionality. This post will serve to collect the information on Channel functionality, file organization, format, etc., in one place. Many thanks to Deviant and larsomatic for their work in this area - they saved me a good bit of time in my implementation. Deviant: did you get your Channel server working?

The files /data/ChannelSelector/AvailableChannels, CoreChannels and UserChannels define what Channels are available to begin with and which are assigned to what slots in the Channel selector palette (i.e. what you get when you turn the knob). You can have any number of Channels in AvailableChannels, and the file is a series of lines in the format:
AvailCh#,Name,ChDirName,UpdateURL,Comment
In my implementation, I don't care about this file, but I want to document its format. The AvailCh# is just an integer 1..n, Name can be anything, ChDirName has to be a valid directory string, UpdateURL is a don't care (since the Channel server at asparato.net is gone) and Comment is anything you want. This information is used for (a) populating the selector palette via action palette => select channels (b) providing the directory structure which gets built when you're (c) getting an update from the UpdateURL.

As pointed-out by Deviant and larsomatic, the directory structure for each Channel on the Audrey is standard. Its root level is /data/XML/Channels/ChDirName. Below that are the directories .template, Graphic, Icon and Template. Some Channels have additional directories, but these were related to the specific implementation of that channel content, using XML to define/hold Channel preferences, navigate etc. and are not relevant to my objective.

CoreChannels and UserChannels are files which contain the ChDirName associated with each slot in the selector palette. They are broken into two files (6 ChDirNames each) because in the action palette => select channels only the UserChannels can be edited. You could give them any names, filling them with ChDirNames 'Channel01' through 'Channel12' using vi. You would then create the directory structure (see below) and establish inks at /data/XML/Channels/.ChannelXX (note the "." in ".Channel") to point at the ChDirName you define. If you define the UserChannels through the action pallette, you can use the info in AvailableChannels to pick what gets assigned and the links to /.ChannelXX will get made for you.

Graphic.gif is the 120 X 60 pixel image you see when you turn the channel knob. Icon is the 90 X 33 pixel icon that appears in action palette => select channels. Index.shtml is the HTML to be loaded when you stop on any given Graphic.gif. This HTML could do almost anything, like being actual content, doing a javascript redirect (location.replace("newURL")), doing a redirect to some of the flash applications called out by LeBorg, invoking an application on Audrey, etc.

Audrey always looks at the /data/XML/Channels/.ChannelXX/.template link to determine what content to display for the channel when you turn the knob. While the filename is always Index.shtml, the /.template link would change to different Audrey directories /Channels/.empty, .notAvailable, .updating, or .waitingForUpdate as a function of what state the ChannelUpdate was in.
++++++++++

09-21-2001 07:12:55

New MessageRE:Channel Content on Your Server (modified 0 times) bazabba
Profile | Email
Thats some great info! ThANKS!!
09-21-2001 11:08:24

New MessageRE:Channel Content on Your Server (modified 0 times) rseidl
Profile
I hope you dont think me terribly lazy, but could you post a .zip version of your windows directory that you mount on the Audrey ?

If you dont want to host it, you could also email it to me (audrey at canoma.com) and I will upload it for others to get.

Thanks !


Robert
http://www.canoma.com/audrey
http://www.canoma.com/audrey/controlpanels
09-21-2001 14:51:43

New MessageCan't get the graphics to work (modified 0 times) terry
Profile
Hi Fran,

Thanks for the procedure to move the channels on to a machine with a full sized keyboard and some more tools! <yeah>

I seem to have it kinda working. I get the channel content off of my PC but it is not showing the new graphic in my ChannelXX/Graphic directory but the original one that was on the Audrey? Any ideas.

Thanks

Terry

09-22-2001 13:07:49

New MessageRE:Channel Content on Your Server (modified 0 times) Fran
Profile
Terry,

It sounds like the links /data/XML/Channels/ChannelXX/.template are pointed at your server, but not the links /data/XML/Channels/.ChannelXX (note the '.' in '.ChannelXX'). You should define the /data/XML/Channels/.ChannelXX links to point at your server directory structure, but DELETE any links defined in /kojak/boot.sh (I just commented out call in /kojak/go). If there are existing links in that file, you'll have to re-boot.

Hope that helps. I'll try to zip-up some example content tonight.

09-22-2001 17:36:05

New MessageRE:Channel Content on Your Server (modified 0 times) Fran
Profile
Terry,

My previous post is probably mistaken because I forgot to document this: Audrey seems to cache the Graphic.gif file at boot-up (has something to do w/ an application and directory called 'Filmstrip'). So, whatever is on your server at the time (or if the Channels were pointed locally, in Audrey's /ChannelXX/Graphic directory) will be on the Channel selector. You have to modify your Graphic.gif and then re-boot.

09-22-2001 18:19:47

New MessageRE:Channel Content on Your Server (modified 0 times) terry
Profile
Fran,

Thanks for the reply. It must have been the caching graphic. I was having problems getting the fs-cifs to work from go - I needed a longer sleep. I just rebooted and I have my graphics.

09-22-2001 19:14:43

New MessageRE:Channel Content on Your Server (modified 0 times) _3dog
Profile
Hi Fran,
I am able to follow your instructions posted at http://www.audreyhacking.com/modules.php?op=modload&name=Content&file=index&menu=1313&page_id=26 without any problem until the very end when, after doing
vi index.shtml
and typing in
<html><body>
<meta HTTP-EQUIV="refresh" Content="0;URL=http://ENTERADDRESSHERE">
</body></html>

You say:
Enter the address of the site you want to go to. Then save the file.

Pardon my foolishness but.. how do you "save the file"? I tried just closing it but that did not work, I figure there must be a command. I know nothing about Linix commands, I assume there is one for save, I just don't know what it is.
Thanks
3dog

05-29-2003 12:07:41

New MessageRE:Channel Content on Your Server (modified 0 times) Fran
Profile
Sure, _3dog. After you're through editing the file, hit the 'esc' key (on Audrey it's the 'snap shot' key on the lower left of the keyboard), then ':' This will bring you down to the vi command prompt. From there, type 'wq' and <return> (the 'wq' is for write and quit). This will drop you back out to the shell prompt, and your file should have been saved with the edits. Let me know if you need more help.
05-29-2003 22:14:54

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