Hi,

First post.  I love Custom Clock and I'm putting more and more
information onto it.  I recently bought a home energy monitor (TED
5000) and want to display how many watts I am currently using in my
house (updated every 5 seconds or so).  The info comes from the
webserver on the TED 5000 (in XML format).  I wrote a script on my
squeezecenter host to download the power data, parse it, convert it to
an image, and have apache2 serve it...thinking there was a way to
display a URL image in Custom Clock but I don't think there is.  How
should I go about getting this data into Custom Clock and updated every
5 seconds or so?

For background info my script is:

watts=$(curl -s httb://ted5000/api/LiveData.xml | grep -m1 PowerNow |
tr '<>' '  ' | awk '{print $2}')
convert -background "#000000FF" -fill yellow \
-font Palatino-Bold -pointsize 36 label:${watts}W \
/var/www/watts.png

Pretty simple, but if I could be pointed to the right place maybe one
line of Perl (as a plugin?) would do the trick.  Hopefully there is a
way to display the text directly based on a URL or perl script.

Thanks.


-- 
eschvoca
------------------------------------------------------------------------
eschvoca's Profile: http://forums.slimdevices.com/member.php?userid=40492
View this thread: http://forums.slimdevices.com/showthread.php?t=68269

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to