Talk:Wiviz

From DD-WRT Wiki

Revision as of 07:39, 23 March 2007 by Daveparker01 (Talk | contribs)
Jump to: navigation, search

Does DD-WRT v23 SP2 (09/15/06) mini - build 3932 breaks wiviz ?

It does so for me! togo 23:27, 4 Oct 2006 (CEST)

What hardware version are you having Wiviz problems with?
I have a WRT54G version 3 ... Meanwhile I found that
ln -s /jffs/www/wiviz/ /tmp/www/wiviz
makes it possible to see the page, HOWEVER Wiviz does not seem able to connect to the wl interface that gives it data! This interface seems to be acomplished by means of a Wi-Viz daemon that is being woken and called by the wiviz-get.sh CGI which is called by the wiviz.js invoked by the loaded wiviz.html page...

I can currently not see any evidence of the demon (which is probably usr/sbin/wiviz) runs while the wiviz page is open! However executing usr/sbin/wiviz manually works and deliver usefull output to the console. togo 08:05, 8 Oct 2006 (CEST)

I suspect something is wrong in the www/cgi-bin/wiviz-get.sh shell script which says:

#!/bin/sh
WIVIZ_PATH=/jffs/usr/sbin/wiviz
echo Content-type: text/html
echo 
killall -USR1 wiviz >/dev/null 2>&1
if [ 0 -ne $? ]
 then #### Wi-Viz daemon not running, start it
  $WIVIZ_PATH >/dev/null </dev/null 2>&1 &
  killall -USR1 wiviz > /dev/null
 fi
echo "<html><head><script language='JavaScript1.2'>"
cat /tmp/wiviz-pipe
echo "</script></head><body></body></html>"


These are the files that come with the current wiwiz tar.gz :

usr/lib/ipkg/lists
usr/sbin/wiviz
www/wiviz/pip-idle.gif
www/wiviz/pip-idle.png
www/wiviz/wiviz.html
www/wiviz/ap-wep-idle.gif
www/wiviz/ap-wep-idle.png
www/wiviz/adhoc-idle.gif
www/wiviz/adhoc-idle.png
www/wiviz/station.gif
www/wiviz/station.png
www/wiviz/ap-idle.gif
www/wiviz/ap-idle.png
www/wiviz/wiviz.css
www/wiviz/ap.gif
www/wiviz/ap.png
www/wiviz/station-idle.gif
www/wiviz/station-idle.png
www/wiviz/adhoc.gif
www/wiviz/adhoc.png
www/wiviz/wiviz.js
www/wiviz/ap-wep.gif
www/wiviz/ap-wep.png
www/wiviz/pip.gif
www/wiviz/pip.png
www/cgi-bin/wiviz-get.sh
www/cgi-bin/wiviz-set.sh


I've run into a problem that no one here has mentioned that strikes me as really so potentially broad-reaching that I'm kind of questioning my sanity in bringing it up, but...

I'd been struggling to get wiviz running under v23sp2 (vpn) with an smb jffs mount. The problem I had was *not* that wiviz (the program that gathers data from wl) wasn't working; rather, it was that when I loaded up the page and it started "monitoring", every time the display would want to refresh, my browser would ask me how I wanted to deal with "wiviz-get.sh" (open w/ editor, save to disk ,etc). After a bit of snooping, I found that the problem is that the httpd server (or whatever is pretending to be one in this case) is not returning http response headers for this cgi program *at all* (and I can't imagine that this is an isolated case).

I "fixed" my particular problem by altering wiviz-get.sh thusly:

#!/bin/sh

WIVIZ_PATH=/jffs/usr/sbin/wiviz

echo "HTTP/1.0 200 Ok"   # HTTPD SHOULD DO THIS
echo "Server: httpd"     # DITTO
echo "Date: `date`"      # DITTO (and date format's wrong in this example)
echo Content-type: text/html
echo
echo                     
killall -USR1 wiviz >/dev/null 2>&1
if [ 0 -ne $? ]
 then #### Wi-Viz daemon not running, start it
  $WIVIZ_PATH >/dev/null </dev/null 2>&1 &
  killall -USR1 wiviz > /dev/null
 fi
echo "<html><head><script language='JavaScript1.2'>"
cat /tmp/wiviz-pipe
echo "</script></head><body></body></html>"

Any others with similar experiences? SVDasein 08:39, 23 Mar 2007 (CET)

Memory Problerms?

It appears that the Linksys WRT54G V4 does not have enough memory to download the file. This is what I get:

/jffs # wget http://lament.rutka.net/wiviz-jffs.tar.gz
wget: wiviz-jffs.tar.gz: No space left on device

--~~rh --

Drifting hosts

If there are alot of hosts on the screen it seems that one (or more) of them will drift away, pushing the rest of the hosts off the opposite edge of the screen so you end up with a blank screen because all the hosts ran away. -the procedure to fix this is editing the wiviz.js as listed on the article!