[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php-weathermap] Weathermap 0.96 released



On Tue, 21 Apr 2009, Howard Jones wrote:

> Your config is a good test case... lots of things I didn't try in my own
> testing!

You're welcome to whatever you want from it.  You will note various bits 
of it are ready and waiting for the new features (especially templates) of 
0.96.  I will tidy up some of the commented out stuff in it once that's 
sorted.  If any parts of the config are useful as examples, feel free to 
use them, or tell me which you like and I will write them up for you.

(And feel free to take note of any of my "I wish I could do this..." 
comments in there too :)

...

> You can get all 4 fixes by downloading just the Weathermap.class.php,
> WeatherMapNode.class.php and WeatherMapLink.class.php files from
> http://www.network-weathermap.com/svn/repos/trunk/

Well, now it runs without errors (although I got the new warning about the 
BWLABELPOS order).  But I don't get the image.  Looking closer, the HTML 
being generated contains the physical file path as the src for the div 
class="weathermapimage", rather than the web path:

<div class="weathermapimage" style="margin-left: auto; margin-right: auto; 
width: 850px;"><img id="wmapimage" 
src="/net/www/blahblah/htdocs/weathermap/2009/04/21/core.23:22.png" ...

Same config under 0.95 produces the desired result:

<div class="weathermapimage" style="margin-left: auto; margin-right: auto; 
width: 850px;"><img src="/weathermap/2009/04/21/core.23:29.png" ...

The weathermap command is generated by a script which incorporates the 
date and time into the paths, however an example command line is:

/usr/local/weathermap/src/weathermap-test/weathermap 
  --config=/usr/local/weathermap/core.conf 
  --htmloutput=/net/www/blahblah/htdocs/weathermap/core.html 
  --image-uri=/weathermap/2009/04/21/core.23:31.png 
  --output=/net/www/blahblah/htdocs/weathermap/2009/04/21/core.23:31.png

Has something changed in respect to the handling of the image-uri and 
htmloutput and output options?

> There will be a 0.96a at some stage, but it would be good to get
> confirmation that these fixes really do fix things :-)

Getting there I think ...

Thanks,

Jethro.

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Jethro R Binks
Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK

Copyright 1994-2005, by Howard Jones. howie@thingy.com