It's run on a Asus WL500gd with openwrt 0.9.

I managed to cross-compile imagemagick for openwrt, but I stumbled into a
major problem later.  Imagemagick requires ghostscript, and that I never
succeeded to cross-compile that huge package for openwrt.

 

Ghostscript and imagemagick are available for NSLU2 though.  So it should be
possible to use imagemagick on that device.

 

http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable/ghostscript_8.5
0-2_armeb.ipk

http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable/imagemagick_6.3
.5-3-1_armeb.ipk

 

I have made a simple web-interface to control some switches and
potentiometers via cgi-scripts too, but it's still a major hack and under
development.

Perhaps I can show it in a few days. I don't want to give out the URL to
Christian Schumann's web-interface even if it's password protected.

 

/Christian

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Conway
Sent: den 23 augusti 2007 13:03
To: [email protected]
Subject: Re: [Owfs-developers] Error trap works great on NSLU2 with owfs

 

Christian,

What platform does this run on ?

 

I like the graphic....do you happen know if imagemagic runs on an unslung
NSLU2 ?

Did you implement control of any outputs from a web interface ?

 

thanks for sharing

cheers

 

rob

----- Original Message ----- 

From: Christian Magnusson <mailto:[EMAIL PROTECTED]>  

To: [email protected] 

Sent: Thursday, August 23, 2007 6:11 PM

Subject: Re: [Owfs-developers] Error trap works great on NSLU2 with owfs

 

Sorry, I copied an old script, and here is a bit more simplified error
check. Only test error-status "$?" is needed.

 

 

#!/bin/ash

 

readsensor () (

    VAL=`owread -s 3002 $1/$2 2>&1`

    ERR=$?

    [ $ERR != 0 ] && {

        date >>$DEBUGFILE

        echo >>$DEBUGFILE "ERROR: owread $1 failed 1st time: $VAL"

        VAL=`owread -s 3002 $1/$2 2>&1`

        ERR=$?

        [ $ERR != 0 ] && {

            echo >>$DEBUGFILE "ERROR: owread $1 failed 2nd time: $VAL";
false; return;

        }

    }

    # save last value to a file as well (mostly for web-server)

    [ "$2" = "temperature" ] && echo "$VAL" > /tmp/last_val.$1.$2

    echo "$VAL"

    true;

)

 

writesensor () (

    VAL=`owwrite -s 3002 $1/$2 $3 2>&1`

    ERR=$?

    [ $ERR != 0 ] && {

        date >>$DEBUGFILE

        echo >>$DEBUGFILE "ERROR: owwrite $1/$2 $3 failed 1st time."

        VAL=`owwrite -s 3002 $1/$2 $3 2>&1`

        ERR=$?

        [ $ERR != 0 ] && {

            echo >>$DEBUGFILE "ERROR: owwrite $1/$2 $3 failed 2nd time.";
false; return;

        }

    }

    true;

)

 

VAL=`readsensor $SENSOR PIO`

ERR=$?

[ $ERR != 0 ] && exit 1

 

/Christian

 

 

  _____  

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/ 

  _____  

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to