From: Roussell, T. <TRo...@dr...> - 2006-04-13 13:50:57
|
The new web interface looks awesome Brent. BTW you may already know this but it's possible to get IE to correctly display 32bit PNGs with Alpha transparency with a few hacks. Here is an example: http://www.mongus.net/pngInfo/ FireFox is probably an all-around better choice though. :) Terry -----Original Message----- From: mis...@li... [mailto:mis...@li...] On Behalf Of Brent DeShazer Sent: Wednesday, April 12, 2006 11:00 PM To: Misterhouse Subject: [mh] New weather module and a new web interface I'm working on a module to talk to the wview weather software available from http://www.wviewweather.com/ . I got everything working using a stand-alone script and just got finished migrating it to user-code in Misterhouse. Everything works except after each string is received, the wview is reporting a "write error" and closes the socket to the client. This is forcing me to call a "start" on the Socket_Item object I create after each data read. This works but seems unnecessary and inefficient to me. I'm sure I'm probably missing something but I can't see it, I've tried looking through lib/Socket_Item.pm and bin/mh to trace this out but no luck so far. Attached is the user-code that is exhibiting this problem (weather.pl). I'm also including the quick-and-dirty test-code I used to get the data decoding figured out (decodewview.pl) for comparison, which doesn't exhibit this disconnect problem. Once I get this fixed I'll migrate this over to a module in /lib and post it back to the list. It's written to work with the existing %Weather hash so it should be virtually plug-and-play, just like the wx200 stuff. Oh, and I'm still on 2.98 if that makes any difference. I still need to diff out the modifications I made to the stock 2.98 distribution, install the latest release and incorporate them and then post the updates to the list. Hopefully after that I'll be able to keep up... As a teaser I've also attached a couple of quick screen-shots of the new web interface I'm developing, in case anyone is interested. I'll warn you that its probably not going to be very Audrey-friendly, I'm designing it to run under Firefox on my Fujitsu 3500 tablets (and all the other household PC's). It will be incorporating some Web 2.0/Ajax stuff and it uses a lot of transparent .PNG files, so a modern browser that supports XMLHttpRequest (I.E. qualifies here) and alpha-channel PNGs (but not here) is required... Thanks for any help and feedback, Brent =20 =20 Confidentiality Notice: This e-mail message, including any attachments, = is for the sole use of the intended recipient(s) and may contain = material that is confidential, privileged and/or attorney work product. = Any unauthorized review; usage, reliance, disclosure or distribution by = others or forwarding without express permission is strictly prohibited. = If you are not the intended recipient, please contact the sender by = reply e-mail and delete and destroy all copies of the original message. = Thank You. |